[kwlug-disc] top 10 command line commands

Kyle Spaans 3lucid at gmail.com
Tue Dec 15 09:36:53 EST 2009


ps au | grep "pattern"    ps aux | grep "pattern"
w or who   (useful when you're logging into a remote system)
uptime
scp file example.com:path/to/storage/
scp -r example.com:stuff/ .
`some command` | cut -d' ' -f1,4   (use a space as the delimiter char,
take fields 1 through 4)
`some command` | sort | uniq -c  (how many times did this line appear
in the output?)
wc file      wc -l file
file file  (:P, gee, I wonder kind of file "file" is?)

and probably my favourite: as an example let's change the format of some files
for f in *.html; do html2text $f > `basename $f .html`.txt; done



More information about the kwlug-disc_kwlug.org mailing list