141 Comments
- ScreenRant, on 02/27/2008, -6/+72Wow, I've been a UNIX user for years and I didn't know about most of those tips. Good read if you're a UNIX or Linux command line user.
- ifnotme, on 02/27/2008, -2/+45I can't believe that this is of broad interest, but if you use the command line regularly it has some useful tips. I knew about half of this and I took me 10 years to learn.
- MixMastaKooz, on 02/27/2008, -1/+43Whoa, a real, bonafide tech link on the front page! And not some Apple Rulez/Windoze Sucks/Console War/Blu-ray story, but just good old fashioned geeks seeking out some command line fu. Nice!
- jawnboy, on 02/27/2008, -3/+28If you didn't mean to be rude you must be a real ***** when you are trying.
- friedcalamari, on 02/27/2008, -3/+27I hate UNIX because it made me type "man mount".
- neopherine, on 02/27/2008, -3/+23Nice tips, but here is more:
10 Basic Linux Security Tips to Implement
http://www.linuxhaxor.net/2007/11/21/10-basic-linu ...
13 Types of Shell (Some You Never Probably Heard About)
http://www.linuxhaxor.net/2007/12/12/13-types-of-s ... - Firehed, on 02/27/2008, -0/+15#10 - stop piping cats. That seems like it's probably an idea for the better regardless of whether you're using Unix.
- mancat, on 02/27/2008, -0/+14What is your point? You can be a Unix user for years and get by just fine without doing any serious scripting or command grouping at the shell. Yes, it helps to know these things, but is it necessary? No.
If you think that only idiots don't know these things, well... I hope you don't have that pipe dream of Linux winning the desktop. - chrislouden, on 02/27/2008, -8/+21DUPE! pay attention people it was front page 1 year 73 days ago
http://digg.com/linux_unix/Learn_10_good_UNIX_usag ... - theaceoffire, on 02/27/2008, -0/+12I knew this stuff and I have only been at it for negative 393239 years.
- m0tbaillie, on 02/27/2008, -3/+15Err, a lot of those things are the more obscure features of everyday commands that most people would never need to know unless they want to be SUPREME L33T D00DZ or some *****. I have used Linux for years as well and didn't know about the majority of those flags. Calm down.
- daftman, on 02/27/2008, -1/+10only when dos have cool tools like grep, awk, tar, etc
- 1337jared, on 02/27/2008, -2/+11no
- bzaks, on 02/27/2008, -6/+15This is a FABULOUS guide... I really liked the directory creation... I'm going home to my ubuntu box and using that a.s.a.p.
- phosphodyson, on 02/27/2008, -1/+10Moron, they're not BASH 101 basics. They are UNIX command line basics. bash is only the latest in a long line of UNIX shells, including sh, ksh, csh, tcsh...
- eosp, on 02/27/2008, -1/+9get: command not found
- orirawlings, on 02/27/2008, -0/+8page one of a linux for dummies should be explaining what linux is and why people would use it. if you aren't already aware of the commands used in the article then all of this would go straight over your head. it should be included for sure, but not right away by any means.
- mrBitch, on 02/27/2008, -0/+7Correction : OS X is not just "unix-like". OS X is a fully compliant Unix O/S. Google it.
Mac users don't corner the market on ignorance.
There are ignorant Windows users, and there are ignorant OSX users.
Does this mean (by your own standards) that ignorant Windows users are MS fanboys? - counterplex, on 02/27/2008, -0/+7Try that with a really large file and it will be a little more than 0.005s wasted :)
- antdude, on 02/27/2008, -1/+7You don't have remote ssh? :)
- counterplex, on 02/27/2008, -1/+7bwaaaaaaaaaaaaaahahahahahahahahahahah :'-)
- CharlesSaint, on 02/27/2008, -2/+8At least he probably knows the difference between "your" and "you're". Pretentious bitch.
- falafelkiosken, on 02/27/2008, -2/+7or OS X user ;)
- hoodmonkey, on 02/27/2008, -0/+5With a shovel.
- warpbackspin, on 02/27/2008, -7/+12While the bad behaviour of #2 is bad, their solution is not good.
a. It's kind of error-prone.
b. The -C option doesn't work that way on all versions of tar.
Much better to cd to the directory you want to extract to, and then give the pathname to the archive file, where ever that might be.
(If you make a mistake with the pathname doing it their way, you just created a bunch of files in the wrong place, which is potentially disasterous. If you type the wrong pathname this way, you just get an error message.) - runep, on 02/27/2008, -0/+5The {}s are expanded by the shell, so it is not only in combination with mkdir that it is useful.
- Aensland, on 02/27/2008, -0/+5Facepalm: you're doing it wrong.
- jacekpoplawski, on 02/27/2008, -0/+5On modern keyboards there are also keys like "home" and "end". Hope that helps.
- L0t3k, on 02/27/2008, -0/+4One of the nice things about *nix systems... consistency over DECADES.
- counterplex, on 02/27/2008, -0/+4The directory creation was the only new one to me - not the fact that you can create multiple directories using {} but that you can create entire hierarchies using that syntax. I suppose it's a natural extension of the method but I'd never tried it.
- LoveWidescreen, on 02/27/2008, -1/+5Not bad, but I'm disappointed that he didn't include this sequence for copying files while not risking the files to problems that can arise with cp and mv, especially on symbolic links in Solaris:
tar cf - {dir} | (cd {dest_dir}; tar xvf -)
e.g. tar cf - my_MP3s | (cd my_new_MP3_directory; tar xvf -)
As long as {dir} is a relative pathname (no beginning slash) it copies the directory cleanly and efficiently with no need for temporary space. More importantly, it keeps symbolic links as symbolic links and retains all ownership and permissions information. This is the best way I've found to copy files, especially to an entirely different file system which can f*ck up symbolic links. - Stonekeeper, on 02/27/2008, -0/+4Wow, a quick summary of 13 shells without one link to their homepage.
- TnTBass, on 02/27/2008, -0/+4You said that last time about this command:
touch sister - bobmagoo, on 02/27/2008, -0/+4come on admit it, you liked it
- dood, on 02/27/2008, -0/+4This sort of elitism doesn't really help "the cause". The cool thing about the unix-like OSs is that you can do the same task in so many ways.
- jakethecake, on 02/27/2008, -0/+4yeah. a newish gnu tar figures that out, without the z flag.
- fracai, on 02/27/2008, -0/+4cat | grep does have it's uses though.
For example, is the term you're searching for in secure.log "failed" or "denied"?
cat secure.log | grep denied
nothing? Arrow up, backspace (or position the caret with the mouse and ctrl-k), change denied to failed, enter
ah, there it is.
If you have the need to search a large number of terms it can be annoying to have to not type at the end of the command. - k3nt, on 02/27/2008, -0/+4I was once working on a programming project with a classmate that wasn't very familiar with Linux. As he watched me working in the "scary" command line, he eventually exclaimed, "OHHHHH, you can hit 'TAB' and it knows the filepath you want?"
^_^ The tips in this article are pretty good, but some conveniences it is hard to imagine life without. - MWeather, on 02/27/2008, -0/+3Could be worse. You might need to mount sister after you touch sister
- Acglaphotis, on 02/27/2008, -0/+3I always pipe cats : (.
- p0tent1al, on 02/27/2008, -1/+4/palm forehead
- inactive, on 02/27/2008, -0/+3UNIX (all caps) is the official trademark you moron. It doesn't mean that it's an acronym dumbo.
- andycr512, on 02/27/2008, -0/+3You might use Adblock+. I got fed up enough to keep it on while browsing Digg a long, long time ago.
- rudy23, on 02/27/2008, -1/+4its you
- theaceoffire, on 02/27/2008, -0/+3Page one should contain the author, title, date written, and copy write.
- jakethecake, on 02/27/2008, -0/+3You don't want to count on the -p flag to not touch the dir on AIX/HPUX etc, with their old mkdir bins. Usually the -z flag does not exist. So you would have to gunzip it separately. But that's details. You just want to nitpick, don't you :P
- rkef, on 02/27/2008, -1/+4$ ls -1 | xargs file
because
$ file *
is too simple? - fahrvergnuugen, on 02/27/2008, -0/+3Dugg for there being a tech article on Digg
- gurm, on 02/27/2008, -0/+3Sort of like Ctrl-R in bash?
- thepxc, on 02/27/2008, -0/+3Wait, what?
The whole point of less is that you can scroll (or search! through it at your leisure... what the ***** is the point of ruining that by piping it to grep _afterwards_?
No kidding... -
Show 51 - 100 of 146 discussions



What is Digg?