[kwlug-disc] top 10 command line commands

john at netdirect.ca john at netdirect.ca
Tue Dec 15 12:20:02 EST 2009


I've got a few too:

ssh remotehost "cd /datadir && tar -cf - ." | tar -xvf -

To move a mass of files from one system to another

Another might be:

find /somedir -ctime +7 -exec rm {} \;

To delete filess oilder than 7 days. 

Still more

ls -ltr and ls -lsr

To list files sorted by time or size. 

pkill pgmname

To kill a program. 

John Van Ostrand , CTO, co-CEO
Net Direct Inc.
564 Weber St. N. Unit 12
Waterloo, ON N2L 5C6
Ph: 519-883-1172
Fx: 519-883-8533
http://www.netdirect.ca


----- Original Message -----
From: "Insurance Squared Inc." [gcooke at insurancesquared.com]
Sent: 12/15/2009 09:13 AM EST
To: KWLUG discussion <kwlug-disc at kwlug.org>
Subject: [kwlug-disc] top 10 command line commands



I want to write a post on the top 10 linux command line commands.  (for 
two reasons.  One, cause it's useful.  Two, because I only have a top 2, 
so I believe learning another 8 is going to help me work better :).

Here's the top 2 of my top 10:
grep -R string *   (find a string in a directory tree - useful for 
finding files with bits of code)
perl -p -i -e 's/stringa/stringb/g' *   (search and replace.  yeah, I 
know it's perl. I use it frequently).

What would your top 10 command line commands be?  Ones that you use, are 
useful and flexible?

g.



_______________________________________________
kwlug-disc_kwlug.org mailing list
kwlug-disc_kwlug.org at kwlug.org
http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org




More information about the kwlug-disc mailing list