Shell scripting
cheatsheets:
bash basics
conditions
- check if file exists:
[ -f /path/to/file ] && do something if [ -f /path/to/file ]; then do something; fi
find biggest folders of current directory
du -hs * | sort -rh | head -5
[ -f /path/to/file ] && do something
if [ -f /path/to/file ]; then do something; fi
du -hs * | sort -rh | head -5