|
Ressler76
|
Posted : Mon, 09 June 2008 20:34:16
Subject :
Re: Command line help
Can we get a little more advance. I mostly know the basic commands and looking for more so in combining commands to get things done A good example is Last week I was asked to pull up the oldest 100 files and list them in to a log so after 1 1/2 hr of looking I came up with ls -lar | head -100 > Home\newFile I understand even for me as simple as this is, it was a little work to search to understanding of how and what to do to get this done. are there any resources that may help out in this area, I am still really lost when it comes to using the command line to get basic info on networking and system stuff.
Thanks
-Ressler76
|
|
Khabi
|
Posted : Tue, 10 June 2008 00:22:04
Subject :
Re: Command line help
Really, your best bet is just to keep playing around with commands and see what they do (the man pages help alot!). When you get asked to do something google around and see what other people have done and learn those commands.
Truthfully, even after 9+ years (holy crap.. I just realized i've been using linux for a long ass time... I feel old now) I still find commands that I didn't know about. For example, I just realized last month that the command 'tac' echos a file from last line to the first line (think of the 'cat' command and reverse it).
Really, I would say read up on this: http://tldp.org/LDP/abs/html/
A good working knowledge of bash scripting will go along way.
Other then that, I would say learn these basic commands:
cat, tail, head, awk, sed, sort, uniq, wc, and echo
On top of that, try and learn basic logic operations from that bash link above.
for, loop, while, read, and if statements.
At the very least, that should give you a good start into the command line.
|