RSS



Go Back   bit-tech.net Forums > bit-tech.net > Article Discussion

Reply
 
Thread Tools
Old 6th Sep 2007, 09:53   #1
CardJoe
Player Character
bit-tech Staff
 
CardJoe's Avatar
 
Join Date: Apr 2007
Posts: 7,940
CardJoe is a splendid one to beholdCardJoe is a splendid one to beholdCardJoe is a splendid one to beholdCardJoe is a splendid one to beholdCardJoe is a splendid one to beholdCardJoe is a splendid one to beholdCardJoe is a splendid one to beholdCardJoe is a splendid one to behold
Linux CLI 101

http://www.bit-tech.net/hardware/200...inux_cli_101/1

We've been covering a bit of Linux lately, but what about all these commands? And how do you know what you're really looking at? Ken Gypen takes a stab at demystifying everyone's biggest Penguin-based nightmare - the CLI.



Digg! For Love
__________________

Last edited by Bindibadgi; 6th Sep 2007 at 11:49.
CardJoe is offline   Reply With Quote
Old 6th Sep 2007, 10:06   #2
naokaji
whatever
 
naokaji's Avatar
 
Join Date: Dec 2006
Location: Belfast
Posts: 1,879
naokaji will become famous soon enough
simply great article... should help alot for those that want to use linux but arent "experts" yet
__________________
920 D0, EX58-UD5, 6GB OCZ 1333 @ 1600 7-6-6, 4870x2, 128 GB Samsung PB22-J SSD and 2 old 500GB WD's, Seasonic M12 700W, Cosmos S

Quote:
Opportunity is like delivery by DHL, it does not come to you, you have to track it down and chase it
naokaji is offline   Reply With Quote
Old 6th Sep 2007, 10:10   #3
steveo_mcg
What owl?
 
steveo_mcg's Avatar
 
Join Date: May 2005
Location: Edinburgh
Posts: 3,975
steveo_mcg has a spectacular aura aboutsteveo_mcg has a spectacular aura about
Good article, where was it a year or two ago when i was trying to learn this stuff
__________________
No boom today, boom tomorrow... there's always a boom tomorrow.
steveo_mcg is offline   Reply With Quote
Old 6th Sep 2007, 10:20   #4
<A88>
Trust the Computer
 
<A88>'s Avatar
 
Join Date: Jan 2004
Location: Bournemouth
Posts: 4,797
<A88> will become famous soon enough
Excellent article- really welcomed!

<A88>
<A88> is offline   Reply With Quote
Old 6th Sep 2007, 10:27   #5
riggs
^_^
 
riggs's Avatar
 
Join Date: Jul 2002
Location: Lincs.
Posts: 1,643
riggs is on a distinguished road
Again, another great little Linux article...thanks!

A question for you Glider; if you had to recommend just one Linux reference book, which would it be?
__________________
Hell hath no fury like a hippo with a machine gun
PSN ID: buster2006
riggs is offline   Reply With Quote
Old 6th Sep 2007, 11:06   #6
revlob
Modder
 
Join Date: Sep 2005
Location: UK
Posts: 58
revlob is on a distinguished road
Ooh! I've been using top for years, but hadn't heard of htop, which looks much nicer. Cheers for that.
revlob is offline   Reply With Quote
Old 6th Sep 2007, 11:36   #7
Woodstock
So Say We All
 
Woodstock's Avatar
 
Join Date: Sep 2006
Location: New Zealand
Posts: 1,657
Woodstock is on a distinguished road
wow, a cli guide thats made for those who dont know anything lol, why couldnt i have found that when i needed it more lol (not that i didnt find it useful). im hoping youve got some more linux articles planned.
__________________
Hell hath no fury like a hippo with a machine gun.
Woodstock is offline   Reply With Quote
Old 6th Sep 2007, 12:20   #8
djDEATH
gert rubbish or summat
 
djDEATH's Avatar
 
Join Date: Mar 2006
Location: BRISTOL
Posts: 370
djDEATH is on a distinguished road
i think this is a good article, as someone who doesn't need this help, i understood it thoroughly, however, for people who genuinely want to get stuck into this stuff, it kinda throws you in at the deep end, some friends i emailed this link to who genuinely do want ot learn some bash and basic unix/linux admin, emailed back asking what VMware is and what on earth we need that for to ssh into a linux box.

i found it very intuiive, but the style of writing is very reminiscent of linux geeks, assuming a lot of basic PC knowledge. Fair enough for a site like this i guess, but it will have a lto of people stumped at stage one i think.

do you really need to install VMware in order to learn bash? an unneccesary level of complication for an otherwise plain and simple guide.
__________________
BEASTIE Lian-Li PC-07b ASUS M2N-E nForce 570 Ultra OCZ StealthXtreme 600W PSU
Phenom X3 8750 BLACK EDITION @ 3.103 Ghz (14.5 x 214 FSB, HTT @ 1070 Mhz) Gainward 8800GT Golden Sample @ 730/1825/1000 Mhz
4GB (2x2GB) OCZ Blade PC8500 CL5 Samsung Spinpoint F3 1TB WD Caviar SE 250GB
djDEATH is offline   Reply With Quote
Old 6th Sep 2007, 12:30   #9
DeX
Mube Codder
 
DeX's Avatar
 
Join Date: Jul 2002
Location: London, UK
Posts: 4,103
DeX is on a distinguished road
Great article but I think there's a few things you should have mentioned:

1) If you want the power of bash on windows there's Cygwin
2) If you need help with most commands there's usually an option called --help (I think it would be useful to mention this as well as the man command at the very start)
3) Did you even mention command pipes? That's something that should be near the beginning too.
4) Grep is command I've found invaluable. You don't need to use regular expressions to use it if you don't want to but that power is always there if you need it.
5) And perhaps a mention of the find command. Windows is useless for searching for files and I always get confused by find so that would be useful
6) Command aliases can be very useful. For example I have one for ls which makes it default to ls -alrt

Sorry, I know you couldn't possibly cover everything (this list turned out longer than I expected). As I said, it's a great article!
__________________
Play my game: Shyguy's Cave of Death!
If you dont have the time to check your spelling and grammar, you dont have the time to post! -Liquid K9
DeX is offline   Reply With Quote
Old 6th Sep 2007, 13:10   #10
Da Dego
Brett Thomas
 
Da Dego's Avatar
 
Join Date: Aug 2004
Location: Cleveland, OH USA
Posts: 3,906
Da Dego is on a distinguished road
hey guys, I just had to put a comment in here, mostly to djDeath and DeX.

First of all, thanks for the great comments, I'm glad to know that our linux articles are hitting a very often-missed target. Which leads me to -

As DeX said, you can't have EVERYTHING in here - or else it becomes more than just 101. Remember, DeX, the purpose of this first article is to familiarise yourself with how to move around, assuming you don't even know what "cd" means. Pipes, grep and aliases are all a bit out of the scope. Of course, that's what a CLI 102, 201, etc. are for... So don't worry, we'll get there.

For DJ Death's comment, that was one reason LiveCD was mentioned in the very beginning. You can boot up using nothing but the Ubuntu guide, though VMWare Server makes for a little nicer (and I'd say cleaner) approach. That being said, you're right - an intro on how to install VMWare Server would not have gone amiss, though the basic steps are present.
__________________
"Frankly that seems overkill. iluvtrees2 arguing with spec is the intellectual equivalent of a bunny rabbit taking on a pissed-off lion." - Nexxo
Da Dego is offline   Reply With Quote
Old 6th Sep 2007, 14:06   #11
1e8o
Supermodder
 
1e8o's Avatar
 
Join Date: Oct 2005
Location: Netherlands
Posts: 272
1e8o is on a distinguished road
This belongs in the software tab right?
__________________
NEW!!! X2 4200+| 2 x XFX Geforce 6600 gt in SLI | Asus A8N-SLI Deluxe | 4 x hitachi 250 gb sata hdd + Maxtor 160 usb 2.0 total of 1160 GB | 2 x 1024 MB DDR-400 (2 GB ) | Tagan U force 580 Watt | Saving money for an macbook and an Iphone (2nd edition)
1e8o is offline   Reply With Quote
Old 6th Sep 2007, 14:13   #12
Jamie
bit-tech Staff
 
Jamie's Avatar
 
Join Date: Mar 2001
Location: Oxford, UK
Posts: 7,620
Jamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of light
Quote:
Originally Posted by 1e8o
This belongs in the software tab right?
If only we had one...
__________________
bit-tech hosted by tsohost.co.uk
twitter | flickr | xbox live | last.fm | moot
Jamie is offline   Reply With Quote
Old 6th Sep 2007, 14:26   #13
Bindibadgi
Richard Swinburne
bit-tech Staff
 
Bindibadgi's Avatar
 
Join Date: Mar 2001
Location: Omnipwntent
Posts: 28,228
Bindibadgi is a splendid one to beholdBindibadgi is a splendid one to beholdBindibadgi is a splendid one to beholdBindibadgi is a splendid one to beholdBindibadgi is a splendid one to beholdBindibadgi is a splendid one to beholdBindibadgi is a splendid one to behold
Damn it. I should have checked and this would probably have been better in bits... or not?! Nm.
Bindibadgi is offline   Reply With Quote
Old 6th Sep 2007, 16:25   #14
DougEdey
I pwn all your storage
 
DougEdey's Avatar
 
Join Date: Jul 2005
Location: Southampton
Posts: 13,933
DougEdey is just really niceDougEdey is just really niceDougEdey is just really niceDougEdey is just really nice
Doesn't "mv" stand for "move" which makes more sense then "copy and delete the original"?
__________________
Burnout: Paradise Stats!XBL: DougEdey Bindi
PSN ID: DougEdey
Twitter

DougEdey is offline   Reply With Quote
Old 6th Sep 2007, 16:26   #15
steveo_mcg
What owl?
 
steveo_mcg's Avatar
 
Join Date: May 2005
Location: Edinburgh
Posts: 3,975
steveo_mcg has a spectacular aura aboutsteveo_mcg has a spectacular aura about
Quote:
Originally Posted by DougEdey View Post
Doesn't "mv" stand for "move" which makes more sense then "copy and delete the original"?
True, but thats what it does. Some people find that easier to visualise.
__________________
No boom today, boom tomorrow... there's always a boom tomorrow.
steveo_mcg is offline   Reply With Quote
Old 6th Sep 2007, 16:31   #16
shaq
What's a Dremel?
 
Join Date: Sep 2006
Location: London, UK
Posts: 15
shaq is on a distinguished road
Great article Glider!

I use Nautilus on my Ubuntu installation occasionally, but when I need to some serious file manipulation, I bring out ksh!

And then when things get really serious, that's when I fire up PERL...

Can we get a PERL 101?... :-)
shaq is offline   Reply With Quote
Old 6th Sep 2007, 16:33   #17
Jamie
bit-tech Staff
 
Jamie's Avatar
 
Join Date: Mar 2001
Location: Oxford, UK
Posts: 7,620
Jamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of lightJamie is a glorious beacon of light
Quote:
Originally Posted by shaq
Can we get a PERL 101?... :-)
Then Ruby, Python, Java, C?
__________________
bit-tech hosted by tsohost.co.uk
twitter | flickr | xbox live | last.fm | moot
Jamie is offline   Reply With Quote
Old 6th Sep 2007, 16:43   #18
Bluephoenix
Spoon? What spoon?
 
Bluephoenix's Avatar
 
Join Date: Dec 2006
Location: Daytona Beach, FL
Posts: 936
Bluephoenix is on a distinguished road
Quote:
Originally Posted by Jamie View Post
Then Ruby, Python, Java, C?
and what about PHP? (lol, what can I say, it rhymes )

excellent article though, now maybeI'll be able to educate my friend on how to use the media server rather than always being at a loss and asking me.
Bluephoenix is offline   Reply With Quote
Old 6th Sep 2007, 16:47   #19
shaq
What's a Dremel?
 
Join Date: Sep 2006
Location: London, UK
Posts: 15
shaq is on a distinguished road
Quote:
Originally Posted by Jamie View Post
Then Ruby, Python, Java, C?
Sorry I asked!

reason I mentioned it is that I've always found PERL really easy to use for more complex file manipulations...

It's also really easy to pick up.


Now Python I've heard good things about... I'm hoping to pick it up soon, so yes, a Python tutorial would be handy...
shaq is offline   Reply With Quote
Old 6th Sep 2007, 17:15   #20
Glider
/dev/null
 
Glider's Avatar
 
Join Date: Aug 2005
Location: Belgium
Posts: 4,102
Glider has a spectacular aura aboutGlider has a spectacular aura about
Quote:
Originally Posted by riggs View Post
Again, another great little Linux article...thanks!

A question for you Glider; if you had to recommend just one Linux reference book, which would it be?
A general Linux book, hmm, hard... My first tought (don't laugh) is Google... Linux' strength is it's great online documentation, certainly for a distro like Gentoo... If it isn't in the handbook or the wiki, you have some exotic stuff going on.

Quote:
Originally Posted by DougEdey View Post
Doesn't "mv" stand for "move" which makes more sense then "copy and delete the original"?
mv stands for move, but it does a copy & delete...

Quote:
Originally Posted by Bluephoenix View Post
and what about PHP? (lol, what can I say, it rhymes )
PHP is about one of the nicest languages I've learned...

EDIT: @DeX, piping, grepping, sed, ... all usefull, all easy, but all require that you understand the basics first, basics being tree structure and the likes... The goal of this guide was a bare introduction, and I do mean bare
__________________
There Are 10 Types Of People, Those Who Know Binary and Those Who Don't

Last edited by Glider; 6th Sep 2007 at 17:21.
Glider is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:02.
Powered by: vBulletin Version 3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.