User login

shell

Much smarter command line history up/down behavior - with search

You may know about ctrl+shift+R for reverse case-insensitive search (or whatever it stands for) and that is still useful if you remember one very unique keyword from the middle of a command.

Compare two strings in a bash script

bash script compare text

if [ $var == "value" ]
then
echo is the same
fi

http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/

(Numbers are -eq)

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

bash script check for existence of any argument

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

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