109 Comments
- stuffok, on 10/10/2007, -8/+86when in linux all you have to do is talk to the man
- bluenova, on 10/10/2007, -5/+29For those digging down for not understanding the comment, all you have to do is type man in front of any command to get the full manual for it.
- DWTebriel, on 10/10/2007, -0/+21I'll be honest. I just recently switched over to Linux this year. Whoever posted this is my hero. As we all know in IT, we gotta keep picking up new skills at all times. Linux/Unix is definitely one of them.
- bobcrotch, on 10/10/2007, -0/+19Even though this is super basic it could help out people just switching to unbuntu and such when they have no idea what to do at a terminal.
Hey anything that helps folks get comfortable with Linux is ok in my book. - cvp1, on 10/10/2007, -1/+19(Shameless plug that will inevitably be dugg down): FOSSwire.com, the site this cheat sheet is from, has a lot of awesome tutorials that are geared toward new Linux users. Our editors, Peter and Jacob also link to articles and news that are interesting and relevant (though we like to do reviews and tutorials like this more often).
- GHenrik, on 10/10/2007, -2/+16I liked it as a PDF. It keeps the list organised and hints you should print it out. Otherwise it would just be another list.
- jacobmp92, on 10/10/2007, -1/+12Fixed & reuploaded - thanks!
- EXreaction, on 10/10/2007, -0/+9Kinda short, but it will still help me a lot (I am just getting into Linux command line with my new web host). :)
- jcaino, on 10/10/2007, -0/+9is it really that hard to hit ctrl-f?
not to mention, evince will semi do this... - jpwhitmore, on 10/10/2007, -3/+12i just recently switched to ubuntu. Do you guys know of any other great tutorials? I don't even know where to start
- ulmen, on 10/10/2007, -0/+9i translate it to russian:
http://ulmencave.blogspot.com/2007/08/unixlinux-cheat-sheet.html - cabazorro, on 10/10/2007, -1/+9Ctrl-a go to beginning of line
Ctrl-e go to the end of the line
Ctrl-p go to previous command
Ctrl-d delete letter behind cursor
Ctrl-w delete letters from cursor to the beginning of the word
Ctrl-f move cursor one space forward
Ctrl-b move cursor one space backward
Ctrl-u delete all text behind cursor (NOT the whole line)
Ctrl-emotions (don't snicker when some dude boasts she/he knows Unix and you see them using the arrow keys and backspace to modify their commands) - aclements, on 10/10/2007, -0/+8They technically got ctrl-d wrong. It marks the end of a file, which is essentially what happens when you log out. The shortcut just has a lot more uses than that however.
- jacobmp92, on 10/10/2007, -0/+7Replying to three parent comments at once:
find - too long documentation and possibilities to neatly fit onto the sheet
locate - added, thanks
whereis - also added along with which, thanks - shavenlunatic, on 10/10/2007, -0/+7hardly a 'guide' as it's just a list of commands and shortcut key combos.. commonly reffered to as a "cheat sheet" for people who can't remember them...
- shavenlunatic, on 10/10/2007, -1/+7and for anyone who clicked "view 1 reply to this comment".. you KNEW what joke was coming before you clicked...
- jacobmp92, on 10/10/2007, -2/+8That's not very printer friendly.
- compgeek, on 10/10/2007, -1/+6very handy. I've been messing with linux for about 4 years but even I don't use some of these commands very often. printed and stuck on the side of my linux server for easy reference and dugg
- shavenlunatic, on 10/10/2007, -0/+5you can command stools in linux?.. l337
- RockStrongo1, on 10/10/2007, -1/+6there's a typo in the mv command.. the example is incorrect.
- TheMidnight, on 10/10/2007, -1/+6finger user
*snort* - tigro, on 10/10/2007, -0/+5worthless
in your ~/.bashrc file put the line:
set -o vi
then to move around just hit [esc] and:
^ go to beginning of line
$ go to end of line
k go to previous command
X delete backwards
x delete forwards
dw delete word
l move cursor 1 space forward
h move cursor 1 space backward
d^ delete all text behind cursor
anything you delete gets put in the register so you can paste it with p - jacobmp92, on 10/10/2007, -2/+6There is an ODT to download if you want to convert to other formats. ("modify" link under image)
- outlaw686, on 10/10/2007, -1/+5but the man confuses me sometimes :S
- Urusai, on 10/10/2007, -0/+4or whereis!
- shavenlunatic, on 10/10/2007, -2/+6in soviet russia, cheat sheets translate you!
(sorry.. couldn't resist obvious joke)
*grabs shovel* - aaneton, on 10/10/2007, -0/+4Killall = a critical mistake! Granted most beginners don't use commercial UNIXes but it's worth pointing out that in Solaris systems killall, kills all processes no questions asked. It could be a BIG oops when you try to shutdown a process and the system shutdown completely.
There should be a different cheat sheet for each Unix flavor. - jacobmp92, on 10/10/2007, -0/+4The duggmirror links should get you the site if it is down, but I also have the most recent (11:00 AM EST) versions on my personal site:
http://files.codechunk.net/fw/fwunixref.pdf
http://files.codechunk.net/fw/fwunixref.odt - trogdoor, on 10/10/2007, -0/+4Also it isn't like most commands where in the event it doesn't understand an argument it will display the equivalent of foo --help and not actually run, with killall it simply ignores any arguments and just happily kills *everything*. for Solaris ( and for any other *nix if you want ) use pkill instead.
- jacobmp92, on 10/10/2007, -0/+3Just watch out when typing "man finger".
If someone saw you typing that over your shoulder.... - speedyrev, on 10/10/2007, -0/+3Finally got through..
Link to PDF
http://fosswire.com/wp-content/uploads/2007/08/fwunixref.pdf - Rileyper, on 10/10/2007, -0/+3OH NOES!!!!!!!!!!!!!!
DIGG effect - cvp1, on 10/10/2007, -0/+3Hey everyone! Sorry about the complication. The issue is with our database server - WP-Cache stuck it out for quite some time too and then finally gave in with the DB server.
We have a temporary low bandwidth page set up now - just visit the Digg link or http://fosswire.com/ - one of our editors mirrored the Cheat Sheet PDF and ODT on his personal site so it can be easily downloaded.
Thanks! - Archon810, on 10/10/2007, -0/+3rpm -Uvh is technically upgrading, rpm -ivh is installing.
Out of everything listed, I like killall the most, especially with -r option that allows to kill using regex.
killall -r "SLASH.pl$" would kill all running perl scripts for instance (digg ate the slash character, so I spelled it out)
Also, if someone can tell me how to use grep -r in a context where I want to find in specific files, I'd be eternally grateful (like grep -r "beer" *.conf)... The shortest method I know if find . -name "*.conf" | xargs grep "beer" :( - Fartag, on 10/10/2007, -0/+2Maybe type your command line one time like:
function gfind () { find . -name "$2" | xargs grep "$1"; }
into bash command line, or .bashrc for more permanence, etc.
Then your command can work : gfind beer "*.conf" - ortichi, on 10/10/2007, -0/+2you right, man
- swizzcheez, on 10/10/2007, -0/+2Missed one of my favorites: watch
- MCDupree, on 10/10/2007, -1/+3Helping me right now.
- Archon810, on 10/10/2007, -1/+3end of input rather.
- dankluv, on 10/10/2007, -0/+2site is down / requesting mirror!
- WikzoDK, on 10/10/2007, -1/+3Thanks, a good one to print out :)
- williebee, on 10/10/2007, -1/+3kill -9 `pgrep firefox` (stupid flash)
pkill firefox
Please add to the mix :-) - Archon810, on 10/10/2007, -0/+2that's not recursive.
- DarkN00b, on 10/10/2007, -0/+2Why did sqrt7744 get dugg down? that is a useful piece of info.
- Archon810, on 10/10/2007, -0/+1Yup, that's what I resorted to on my machines, except I named it fgrep (before knowing that fgrep is an actual utility too). Problem is there are hundreds machines that are not mine [at work], so a shorter solution would be nice.
- Archon810, on 10/10/2007, -0/+1Wow, I didn't know about this one but always wanted to find something like that. SO useful, I'm tired of writing perl while loops with sleep commands inside.
- ifuckurmouth, on 10/10/2007, -0/+1Dont forget "man touch", "man mount" or "man yum".
- tjolson, on 10/10/2007, -3/+4"There should be a different cheat sheet for each Unix flavor."
There is:
http://bhami.com/rosetta.html
while it doesn't have Ubuntu specifically noted, you can see the commands are usually different for each flavor of Unixes. - Birdoftruth, on 10/10/2007, -0/+1wow guys thanks
- 2oonhed, on 10/10/2007, -0/+1awesome matrix.....don't know why the children dug you down.
-
Show 51 - 100 of 104 discussions



What is Digg?