Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # disk free
- df -h
- # free memory
- free -m
- # unblock from firewall
- nano /etc/csf/csf.deny # find ip and comment out
- csf -r
- # recursively download a dir via ftp
- wget -r ftp://user:pass@server.com/
- # transfer dirs over ssh
- scp (see tutorials)
- # show processes, kill a specific process
- ps aux
- kill <pid>
- # directory sizes
- du -h --max-depth=1 . | sort -n -r
- # find big files
- find /etc -size +100k -size -150k
- # search and replace over dirs
- sed -r 's/thisip/thatip/g'
- find ./ -type f -exec sed -i 's/apple/orange/g' {} \;
- # fix locales
- sudo dpkg-reconfigure locales
- # rsync (from remote server)
- rsync -avz thegeekstuff@192.168.200.10:/var/lib/rpm /root/temp
- #some permission stuff from https://wiki.archlinux.org/index.php/Chmod
- # hit directories (recursively) in a folder "/" after directory is IMPORTANT
- find directory/ -type d -print0 | xargs -0 chmod 755
- # hit files (recursively) in a folder "/" after directory is IMPORTANT
- find directory/ -type f -print0 | xargs -0 chmod 644
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement