119 Comments
- Philluminati, on 10/10/2007, -1/+47It would be good to learn vi rather than nano. It's used on more systems, (especially legacy systems) and not to mention it's easy to use when you've learnt it properly and have some experience.
All in all, you'll be a better prepared systems admin with vi because people will expect you to know it in a corporate environment. Nano is easier, I won't deny it, but vi (and vim) is an essential linux and unix tool every professional linux person should know, IMHO. - allywilson, on 10/10/2007, -3/+29why the hell is 'startx' in there?!
- mvent2, on 10/10/2007, -0/+18No thanks, people don't typically pay for downgrades.
- cs02rm0, on 10/10/2007, -0/+13To kill a specific process - e.g. one specific java app instead of all of them.
- Philluminati, on 10/10/2007, -0/+8Ctrl and Plus, Plus, Plus
ahhh...that's better! - inactive, on 10/10/2007, -1/+8My thoughts exactly, allywilson. Also, why the hell is "nano" in that list. Use Vi or Vim people! Geez. Vi is on every single Unix-based OS ever. If you get used to using crap like Nano, you will find yourself stuck and looking stupid at some point in your career. I can't count the number of times that I have had self-proclaimed "Linux experts" respond with "Huh?", when asked to "Vi a file." during an initial interview.
- mcmlxxii, on 10/10/2007, -0/+7Ooo hahahaha fetch my corset my sides are splitting. No really.
- voyvf, on 10/10/2007, -2/+9sounds like somebody can't handle vi's learning curve. :D
- venkat23, on 10/10/2007, -1/+8here is more detailed linux commands list http://www.debianadmin.com/basic-linux-commands-with-man-pages.html
- lowesch, on 10/10/2007, -0/+6bad habit to use killall as it means literally killall on solaris boxes.
better use pkill instead. - sinnuendo, on 10/10/2007, -0/+5Use htop instead of top. http://htop.sourceforge.net/
- Philluminati, on 10/10/2007, -0/+5The truth is you need to know about 60 to 100 linux commands at least, half of which are distro specific, like "apt get upgrade" (debian) or "yum clean" (redhat), or "service network restart" (redhat) or "modprobe" etc.
- timestar, on 10/10/2007, -1/+6Did you click on this page just to post that comment? Oh well I suppose you have a lot of time on your hands while waiting for windows update to finish.
- sacherjj, on 10/10/2007, -0/+5Why? If you don't use RPM, why do you need to know it? Just use aptitude and apt-get instead.
- marx2k, on 10/10/2007, -1/+6I imagine this list is for noobs. vi is not for noobs.
- frostieDude, on 10/10/2007, -0/+5Yeah, if you are not already an expert at something, you should never try to learn!
- philz, on 10/10/2007, -1/+6"apachectl start" (2) should be on the list, as the server does not appear to be running...
- Philluminati, on 10/10/2007, -2/+7OK. It should probably be something like "vi is powerful and efficient once you've learnt it".
- mym6, on 10/10/2007, -0/+5That's a good start and it sounds like you're using Ubuntu. Be sure to explicitly type 'vim' rather than 'vi' as vim is much more user friendly right off the bat. You'll have color coding and better keymapping. Here's a list of some vim commands that I use on a daily basis:
While not in insert mode press the following key sequences to get what you want (without the * of course)
* dd - deletes the current line where the cursor is
* d # down arrow - where # is a number of lines you wish to delete so if you need to delete 5 lines you'd type d 5 and press the down arrow. This works in any direction in fact
* dw - deletes the current word or up to a non alphanumeric such as - or .
* yy - copies the current line, similar to d # down, you can also do y # down arrow to copy multiple lines
* p - pastes deleted (dd, d# or dw) lines below the current line, shift p will paste above where you are
* a - starts in insert mode one space to the right of where you currently are, shift a will cause you to go to insert mode at the end of the current line
* i - puts you in insert mode, shift i moves the cursor to the beginning of the line
* >> - shifts the current line over by a full tab unless you've set shift width to something else (set sw=#). # down arrow - shifts # lines over, again, use < to reverse this.
There are a few other neat things you can do with vim but those are some of the most useful. After that you'll want to learn some simple regular expressions so you can do search a replace. - schestowitz, on 10/10/2007, -3/+7Nice list, but a very subjective thing.
- sirmo, on 10/10/2007, -1/+5Buried for use of nano.
- netblender, on 10/10/2007, -1/+5vi xargs tee sed awk nice who whoami last lsof ps halt history whatis which watch dd screen wall dmesg find more (or less) tcpdump clear reset finger mailx du df free...
agreed about the startx command - /etc/init.d/gdm (start|stop|restart) would be more usefull.
buried for nano and startx - TrekkieDude, on 10/10/2007, -0/+4She isn't "using" windows to do this either! She is using an application. If she uses Thunderbird, or Opera Mail, it will be the same on Windows, Linux, or OS X! She really doesn't care what the underlying Operating System is she just double clicks the "Mail" Icon in the same way she clicks the Word processor Icon or the Browser Icon.
- bubbagump, on 10/10/2007, -0/+3'man' being number 14 tells me this list is worthless. The #1 command should be the one that tells you how to use other commands.
sad.... - J-0-E, on 10/10/2007, -0/+3When you're making a short list of "must-know" commands, why list 3 or 5 that do similar things?
- trogdoor, on 10/10/2007, -0/+3vimtutor
- daftman, on 10/10/2007, -0/+3No, the correct analogy that you should be using is that "Walking is easy once you learnt it properly." Walking is hard to learn at the start but once you are used to it, you can do it without thinking about it. Same as vi(m)
- trogdoor, on 10/10/2007, -1/+4dig dugg?
- RyTakahashi, on 10/10/2007, -0/+3Does it make you feel like a big 1337 hax0r to have been born knowing all UNIX commands. I mean, since you were never a beginner, you must've been bred in some Huxelian hatchery where they chemical implanted all of your uber-skills.
Shut up and get back down to your parent's basement. - frostieDude, on 10/10/2007, -0/+3grep was on the list.
- HAKdragon, on 10/10/2007, -0/+3Redhat's "service" command through me off when I tried to use other distros. It's easy to use, but I wish I knew about /etc/init.d/ when I was using Redhat.
- asyncra, on 10/10/2007, -0/+3Funniest thing about this is it comes from a FreeBSD user site. FreeBSD 6.2 (most recent production release) does not have startx, nano or zip installed by default.
- inactive, on 10/10/2007, -0/+3Most of these commands are not present on UNIX systems. Though Solaris 10 did add a good selection of the GNU toolset, you still cannot count on things like nano and locate being present unless you are on GNU/Linux. There are some things that are consistent across pretty much all UNIX and GNU/Linux platforms. These commands are not. Learn them anyway; if you don't already know them, you are not likely to be using a UNIX system (except, maybe OS X) any time soon anyway. =)
- sacherjj, on 10/10/2007, -1/+4I use scribes for most of my editing, when I don't have to be root. I've started learning vi for editing system files (with sudo). All I know how to do is hit i to insert and ESC :wq. :) Getting me by though.
- ralphc, on 10/10/2007, -0/+3My office has Linux, AIX, Solaris and HP-UX - vi is the only common denominator.
- kaczus, on 10/10/2007, -0/+3rpm is distribution specific, i use pacman, others use emerge, synaptic etc.
- wattersm, on 10/10/2007, -0/+2Sounds about right, my entire day is spent inside linux shell sessions.
- natnu, on 10/10/2007, -0/+2kind of an odd set... I know I haven't had to use 'startx' in years (well, you know...) Also, 'tail' but no 'head'? And which do you use more, 'dig' or 'more'?
- wattersm, on 10/10/2007, -0/+2Any sys admin worth a damn can handle 200 servers in their sleep.
- HardBap, on 10/10/2007, -0/+2A more comprehensive list from a couple weeks ago...http://digg.com/linux_unix/Unix_Linux_Cheat_Sheet
- vade79, on 10/10/2007, -0/+2I agree, it just never has 'flowed' for me naturally...while it does do a ton more, it is generally not enjoyable to me on the basic of levels of using it...although i wouldn't mind if another (console) text edtior had syntax highlighting/etc as classy as vi's is.
- trogdoor, on 10/10/2007, -0/+2*Don't run this command* it's a fork bomb. http://en.wikipedia.org/wiki/Fork_bomb
- marx2k, on 10/10/2007, -0/+2Welcome to 3 comments ago
- reyalp, on 10/10/2007, -0/+2i think these lists are useless anyway
xinit more useful than startx - LordofShadows, on 10/10/2007, -0/+2I like nano better than vi, but then again I wouldnt use either for much more than config editing. Knowing every command key in vi is about as useful to me as knowing every command line option to
- underthelinux, on 10/10/2007, -0/+2wait, his windows is updating too? crap we're going to crash skype!
- frostieDude, on 10/10/2007, -1/+3Maybe because you want to see just some of the files?
- pyrates, on 10/10/2007, -0/+2Dugg because of the command dig and because the g in it stands for groper. Gotta love that.
- netblender, on 10/10/2007, -1/+3not if you know how to use IT
- Pile, on 10/10/2007, -0/+2OMG, thank you so very much for showing me the command to delete a file and make a directory!
What a lame, lame story. -
Show 51 - 100 of 118 discussions



What is Digg?
Check out the new & improved