snippets for linux commands like find and replace, nohup, scp
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
find . -type d -name 'linux' 2>/dev/null
find . -name "*.php" | xargs grep -niP 'thingy'
find \( -name "*js" -o -name "*jsp" -o -name "*jspf" \) | xargs grep -niP 'thingy'
find . -type f -name "*.php" -exec sed -i 's/numRows/rowCount/g' {} \;
$ du -hs ~/.local/share/Trash
96M /home/tamer/.local/share/Trash
nohup scp <params> & > nohup.out 2 > &1
nohup scp -r -p root@www.example.com:/var/www/ /var/www/ & >nohup.out 2>&1
nohup scp -r -p root@www.example.com:/var/www/logs /var/www/ & >nohup.out 2>&1
cat file.iso > /dev/sdb
sync
killall -9 nginx
mount -o loop file.img /mnt/image
mkfs.ext2 /dev/sdb2
e2label /dev/sdb2 RoboTamer
history | grep -i "search term"
dpkg -l | grep php5
service program_name start
service program_name stop
insserv -d program_name
insserv -r program_name
First Created: 2015-01-28T20:07:00Z
Last Modified: 2026-04-05 19:35