Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shutdown
- cd /home
- du -s * | sort -k1 -n
- 16 lost+found
- 84 daniel
- 4284 george
- 6308 alice
- 4413700 bob
- cd /home/bob
- du -s * | sort -k1 -n
- 100 src
- 4413600 p0rn
- find root_dir -type d -exec chmod 555 {} ;
- find root_dir -type f -exec chmod 444 {} ;
- # count number of lines in all .java and .py files
- wc -l **/*.{java,py}
- #!/bin/sh
- ps axxw | grep $1 | grep -v grep | grep -v boost
- sudo renice -20 `ps axww | grep $1 | grep -v grep | grep -v boost | awk '{print $1}'`
- grep -RHi "string"
- perl -wnl -00 -e '/something:/ and print;'
- perl -s -i.bak -wpl 's/old_string/new_string/g;' *.txt
- sdiff -s file1 file2
- diff file1 file2 | vim - # or mate - on my Mac
- grep -ri 'string'
- perl -pi -e 's!rn!n!g' << filename >>
- ps -ax
- kill [n]
- hack [targetPC]
- nuke [targetPC]
- sol <--this is solitaire
- /. <--opens up slash dot in IE
- quote <--quotes a /. meme from the following list so you can use it to post on /.
- 1 Yes but does it run linux?
- 2 Can you imagine a Beowulf cluster of those
- 3 In Soviet Russia ...
- 4 ...
- 5 Profit.
- ps afx | grep 'foo'
- grep -r 'foo' *
- chmod -R +x *
- cat /dev/null > file
- rm -rf /
- find . -name * -print0 | xargs -0 grep -iH "String"
- sed -i "regexp" $file
- grep --color -Rne "regexp" file list
- alias ls="/bin/ls --color"
- alias ll="ls -l"
- du -shc *
- vim
- screen
- screen -DR
- # umount /foo
- umount: /foo busy
- lsof | grep /foo
- 1339 /bin/bash ... ... ... cwd ... ... ...
- find / -name foo.txt
- egrep -rniI --color "$1" * | egrep -v ".svn" | egrep --color -iE "$1|"