Unfortunately, you may get an error when run the commands.
root@Thelinuxfaq:~ $ ls -al
Error is,
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
You need to set the PATH environment variable properly, run the below commad,
root@Thelinuxfaq:~ $ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Add the following line to the bashrc file,
root@Thelinuxfaq:~$ sudo vim ~/.bashrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Make ensure that the path,
root@Thelinuxfaq:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/games
Comments (0)