[kwlug-disc] top 10 command line commands

Insurance Squared Inc. gcooke at insurancesquared.com
Tue Dec 15 16:53:33 EST 2009


Ah yes, logs.  I routinely use:
tail -f /path/to/log/file
which allows me to watch the log file in realtime.  If the log file is 
busy, I pull out only the stuff I want to see like this:
tail -f /path/to/log/file | grep pattern

So I'll do
tail -f /var/log/httpd/error.log | grep 64
because my ip has a 64 in it, so I just see my hits to a web page.



Paul Nijjar wrote:
> Here are some of mine, which have some overlap with other people (but hopefully not a lot):
>
> apg : generate passwords (this has options too. It is an add-on package)
>
> screen : make command windows tolerable
>
> ls -ltc : tell me which files have been most recently changed (useful for seeing whether logfiles are being updated as expected)
>
> watch -n 10 -d <command> : show me the output of a command every 10 seconds, and highlight differences. I often use "df" as the command when I am copying big files. 
>
> du | sort -rn | less : show me the subdirectories that hog the most space in the current directory 
>
> apt-cache search <string> : find me a package that will help solve my problem. 
>
> cd <directoryname>
> zip -r <directoryname> <directoryname> : Make a zipped package that can easily be moved to USB key or opened on a Windows system without hassle. (One of those <directorynames> is supposed to be a file, but I don't care.) 
>
> exit : get out of my shell so I can get off the computer and get my life back. 
>
> - Paul
>
>
>       __________________________________________________________________
> Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
>
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
>
>   

-- 
Glenn Cooke
Insurance Squared Inc.
(866) 779-1499
www.insurancesquared.com

Insurance Agent Discussion Forum:
www.americaninsurancebroker.com






More information about the kwlug-disc mailing list