User login


bash "No such file or directory" error even though .bashrc has proper include path

bash "No such file or directory"

Every time I opened Terminal:

bash: /home/ben/.bashrc-agaric: No such file or directory

But my ~/.bashrc was clear of calling that file.

And source .bashrc produced no errors. So where was it still calling the old file path?


sudo vi /etc/bash.bashrc

(On Ubuntu. The global bash file may be in other places also.)

Check to ensure at least one parameter passed in to bash script

bash script check for existence of any argument

if [ $# -ne 1 ]
echo "USAGE: scriptname arg1 arg2"

Merge all text files in a folder into one file

concatenate all files in directory (GNU-Linux)

cat ls -rt > newfilename

Note the backticks.

Syndicate content