Code: Select all
[ -f "$HOME/Startup/network_tray" ] && echo File exists
Code: Select all
[ -d "$HOME/Startup" ] && echo Directory exists
Code: Select all
VAR=""
[ -z "$VAR" ] && echo Variable is empty???
Maybe to know if the file is executable or not
Code: Select all
[ -x "$HOME/.xinitrc" ] && echo File is executable???
Cordialement.