83 Comments
- inactive, on 10/10/2007, -1/+45http://digg.com/linux_unix/Unix_Linux_Cheat_Sheet
Superior. - inactive, on 10/10/2007, -0/+22I wasn't going to bury this until I saw the last line in the description. None of the commands are ubuntu-specific.
- Dhalgren, on 10/10/2007, -0/+14Doesn't a Cheat Sheet usually fit on one page without links between them?
- HarryBauzonia, on 10/10/2007, -3/+16Ubuntu is only a Linux distribution, not the OS itself.
Therefore none of the commands are "Ubuntu specific".
I'll refrain from marking this as inaccurate because the link is useful and the commands are valid. God save us from noobs who've just discovered Linux through Ubuntu. You're kind of cute at first, but grow annoying after awhile. - ldog, on 10/10/2007, -0/+11"rm: Use this command to remove or delete a file in your directory. It does not work on directories that contain files."
Sure it does. Just add a "-rf"
Strange that the list mentions that other commands have options. - Buckbeak, on 10/10/2007, -1/+11Marked as Lame!. Do they even know what a cheat sheet is? Hint: it's a SHEET, not a fricken 5 page article.
- Deived, on 10/10/2007, -0/+9Agreed. The one on this article is 5 pages with ads (even if you "print this story"). The superior is... in fact... a sheet. And a nicely arranged one at that.
- manicallday, on 10/10/2007, -0/+9You never had to use command line? How about dumpster diving in the registry for awhile. That's always pleasant.
- MasterThief117, on 10/10/2007, -0/+9All on one page:
http://www.computerworld.com/action/article.do?command=printArticleBasic&articleId=9030259 - trogdoor, on 10/10/2007, -0/+8I use the terminal in OS x all the time, and guess what, it's the same bash shell that Linux uses except that for instance instead of starting firefox by typing "firefox" like I do in pretty much every other *nix I have to type:
/Applications/Firefox.app/Contents/MacOS/firefox - douggmc, on 10/10/2007, -0/+8Dang it ... I thought this was cool and great at first then I read that this cheat sheet is for Ubuntu Linux ... but I use Debian Linux.
:rolls eyes: - UNL1M1T3D, on 10/10/2007, -0/+7That is if he knows what the registry is.
- astrosmash, on 10/10/2007, -2/+7They missed one:
/etc/rc.d/init.d/httpd restart - jcarlock, on 10/10/2007, -0/+5Superior by far. And its actually a pdf... One page also.
- Netrilix, on 10/10/2007, -1/+6Intuitive? Since when? The only reason it's intuitive to people like us is because we've used them for so long. Watch someone who has never used a computer before try to use Windows. It's not intuitive. Hell, watch my Comp Sci professor at UNH try to use Windows, after using Linux for years and years, not having used Windows since 3.1.
- shucklak, on 10/10/2007, -0/+3Because its free
- trogdoor, on 10/10/2007, -1/+4Because it is not as powerful. There is a reason they kept the terminal, without it I would find using OS x unbearable.
- dgrant, on 10/10/2007, -1/+4Didn't really learn anything knew there...except lshal and lshw (both for listing hardware). Never knew those existed.
- Haplo, on 10/10/2007, -0/+2"rm: Use this command to remove or delete a file in your directory. It does not work on directories that contain files."
I wish I could do rm -rf / as root on the computer this clueless writer is using... - shavenlunatic, on 10/10/2007, -0/+2this is true.. dugg for pointing to something infinitelymore useful and story buried as homosexual
- kaph, on 10/10/2007, -0/+2They must have read your comment.
- thtroyer, on 10/10/2007, -0/+2It's really not that bad. I prefer using the command line now for some operations simply because it's easier and faster. Sure, there's a bit of a learning curve, but don't let that stop you.
Besides, the command line is become less necessary for Linux users to learn. I wouldn't encourage avoiding it, but with some distros, you can have a fully functional system without ever touching the command line. - wesw02, on 10/10/2007, -0/+2This is awful, the formating is like a crap article and the list is weak. There are hundreds out that much much better.
- williebee, on 10/10/2007, -0/+2Do you have this one? "sudo apt-get install lshw"
- UNL1M1T3D, on 10/10/2007, -0/+2Because the command line is so much more powerful. Also I wouldn't let the command line keep you away from Linux. Nowadays you can get away with doing most simple things without it. You may still have to occasionally use it, but nothing to bad.
- douggmc, on 10/10/2007, -1/+3Ben can suck on my balls.
- jcarlock, on 10/10/2007, -0/+2Lame, terrible cheat sheet. Of all the commands, pwd, cd, chmod? Seriously, this got dugg at all? The link in the very first comment is so far aboe this BS...
Sorry, buried. - virtualsnyper, on 10/10/2007, -0/+2Doesn't Cheat Sheet imply that its an easy to use 1 PAGE reference... *sigh
- bobcrotch, on 10/10/2007, -0/+1Tab Completion? Yeah, not exactly intellisense but it's very sweetah.
- BassJunkie, on 10/10/2007, -0/+1I also agree, this isn't even a sheet so the description is totally wrong! More like a introduction to basic CLI! I've only been using Linux for about 6-8 months now and appreciate articles like this but find myself wanting to learn more commands then the basics! and besides the one ghindo pointed out is much nicer and is actually stuck up on my wall near my main PC :-D
- div2n, on 10/10/2007, -0/+1Heck, why not find? You can do some pretty neat stuff with find -exec. But I guess that is a bit more advanced than a cheat sheet might call for.
- pkrumins, on 10/10/2007, -0/+1Here are cheat sheets just for ed, sed and awk:
ed cheat sheet: http://www.catonmat.net/download/ed.text.editor.cheat.sheet.pdf
sed cheat sheet: http://www.catonmat.net/download/sed.stream.editor.cheat.sheet.pdf
awk cheat sheet: http://www.catonmat.net/download/awk.cheat.sheet.pdf
And well, I have made some more:
perl's pack/unpack and printf cheat sheet: http://www.catonmat.net/download/perl.pack.unpack.printf.cheat.sheet.pdf
perl's special variable cheat sheet: http://www.catonmat.net/download/perl.predefined.variables.pdf
Visit http://www.catonmat.net for the same cheat sheets in different formats (.txt, .doc).
I have made some 10 more, will be putting them out soon! - shavenlunatic, on 10/10/2007, -0/+1so.. infact.. you DID learn something new...
- duhblow7, on 10/10/2007, -0/+1How can you have `sed` but no `awk`?
- init100, on 10/10/2007, -0/+1Actually, >> is the append operator. It will add the output of a command to the end of the specified file, if it exists. The > is the ordinary output redirection operator, which overwrites the specified file if it already exists.
- weizbox, on 10/10/2007, -0/+1would have been nice if they didn't make you go to 4 different pages full of ads...
First comment links to a much better one. - inactive, on 10/10/2007, -0/+1Care to explain?
- roamzero, on 10/10/2007, -0/+1Is there a Unix/Linux shell that supports some sort of intellisense for those of use that might like the flexibility of a shell but not the typing involved?
- antdude, on 10/10/2007, -0/+1Good call and I am a dork. :)
- shavenlunatic, on 10/10/2007, -0/+1how about mine?
- maz2331, on 10/10/2007, -1/+2Just be REALLY careful to never do a "rm -rf /" (as root or via sudo) or "rm -rf ~/" or you'll be REALLY sorry. Linux will let you delete the entire filesystem, even open files. The first and you're reinstalling, the second and all your home directory data suddenly goes "poof".
- makosharkattack, on 10/10/2007, -0/+1No thanks.
- pixelbeat_, on 10/10/2007, -0/+1Not very useful/unique and full of adds. The original linked from digg is better IMHO :)
http://digg.com/linux_unix/Linux_Command_Line_Cheatsheet - antdude, on 10/10/2007, -0/+1lshw: The lshw command lists hardware on your system, including maker, type, and where it is connected.
I don't have this in my Debian box. :( - MrTea, on 10/10/2007, -0/+1By the way, when using a pipe or redirection just remember what goes on which side of the pipe; i.e $src | dest, $src >> dest, etc. For example, to redirect the contents of $uname -a to a text file called unameout, you use $uname -a >> unameoutput
- inactive, on 10/10/2007, -0/+1...myep, been posted several times.
Please, people, RSS feeds - learn them, use them. I just saw this in my reader from maybe july - and there aren't *that* many Linux articles to where it would slip by you. - th3wiz4rd, on 10/10/2007, -0/+1Wow, that's pretty weak sauce... I was expecting to see at least one command I don't use every day.
- shavenlunatic, on 10/10/2007, -0/+1annoying isn't it.. and ironic as "Ubuntu" is supposed to distract away from the command line
- init100, on 10/10/2007, -0/+1Try pressing the TAB character when typing a command. The shell will fill in as much as it can. Let's say you have two files with long names, foobarbaz1234 and foobarbaz1235. If those are the only files in the current directory whose name starts with the letter 'f', you can type "cat f" and press TAB. The shell will fill in "oobarbaz123". Press TAB again, and it lists all files matching what you have already typed. Type a '4' or a '5', and you've got the complete filename.
Another nice feature that I use heavily is the searchable command history. Press the up arrow to get the last command, press it again to get the command before that, etc. Doing that many times would be tedious, so instead type CTRL-R and a few characters matching the command line you want to run, and it finds a candidate. If you want to search even further back, just type CTRL-R again, and it will use the same search phrase.
Finally, when manipulating existing command lines, the key combinations CTRL-A and CTRL-E are very useful. The first moves the cursor the the beginning of the command, and the second moves the cursor to the end of the command. - shavenlunatic, on 10/10/2007, -1/+2well, i recently (well..last november) discovered Linux via Ubuntu.. but I have made a point in knowing the difference between Ubuntu Bundled apps and Linux Command line stuff.. for new people to Linux it is handy to read up on the history and, even if you're not planning on using them, read up on other distros.. you will look less silly and reffering to bash commands as ubuntu commands won't be an issue :)
-
Show 51 - 80 of 80 discussions



What is Digg?
Digg is coming to a city (and computer) near you! Check out all the details on our