Bash: .../bin: no such file or directory

my .bashrc file:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
alias c='clear'
alias la='ls -Alip'
alias s='sudo'
alias neofetch='c && neofetch'
######################################
if [ -d ~/.bashrc.d ]; then
	for rc in ~/.bashrc.d/*; do
		if [ -f "$rc" ]; then
			. "$rc"
		fi
	done
fi

unset rc


############################

neofetch

############################

export PATH=</home/martin/tools/jdk-17.0.4.1+1>/bin:$PATH

This line is your problem. Remove the < and >.

2 Likes

Welcome to the community @0uk4x , please do take a look at the introductory posts in the #start-here category if you’ve not had a chance yet.

Can I also please request you to use better topic summaries @0uk4x ? You’ve opened two topics with “how to fix this error”—that doesn’t tell others much and they’ll be less likely to look into the topic. The more descriptive the topic summary, the easier it is for folks to understand what the topic may be about :slight_smile:

2 Likes