Bash check if a directory exists

To check if a directory exists in bash, use

To check for absense of a directory, use !

See bash […]

Read More…

Bash if statement

Check if first augment to script is –help

Check if a file exists and is executable

Check if a binary file exists and is executable

Check if previous command was sucessfull or not

Check if variabe set or not

[…]

Read More…

bash

Bash shortcuts

Enable color prompt Edit .bashrc, add following

Logging Linux Commands for all users Bash if statement Bash Script to Monitor Disk Usage Bash check if a directory exists […]

Read More…