Sponsored by Dragon Age: Origins
Follow the Dragon Age: Origins development team on Twitter view!
twitter.com/DragonAge - EA presents BioWare's new dark fantasy epic Dragon Age: Origins. '9/10' from Game Informer.
48 Comments
- amiable_indian, on 10/12/2007, -3/+14Google + Manpages, That should be enough to get you started with bash commands.
- MoneyShot, on 10/12/2007, -0/+7Here's my bash tip 'o the day:
You all know that "cd .." takes you to the parent directory. But did you know that "cd -" returns you to the previous directory you where in? Rather handy. - crdlb, on 10/12/2007, -0/+7@bmartin
But it is slow; locate uses a database so it is nearly instantaneous. - flag564, on 10/12/2007, -2/+6"It is easy to understand. Just because all your files aren't in C: doesn't mean its wrong. Linux file system structure is more organized than windoze.
Despite the moronic use of the term "windoze" ( like whatever the hell "windoze" is supposed to mean), I will actually take what you posted seriously.
But I will just say that if you think people will understand folders like "bin" and "ect" as opposed "My Computer" and "Program Files" then you are beyond clueless as to how 99.9% of the computing world thinks.
Using terminals and cryptic folder names may seem geek chic to some, but to most people that wish to use their machines with the same logic they would use in the real world, it is just nonsense.
Don't believe me? Just let it keep going the way it is and see how far Linux gets.
I'm sure 2034 will be the year of the desktop Linux too. - bmartin, on 10/12/2007, -1/+5Learn to use find, it's simple and robust. "find / -name *" should find any file you need.
- whovian, on 10/12/2007, -2/+5Google: Bash Reference Manual
Google: Advanced Bash-Scripting Guide
Bookmark and prosper. - dkoon, on 10/12/2007, -4/+7This thread clearly show how easy it is to use Linux. Also please note that you are a noob (a.k.a. ***** Idiot) if you have the Click-N-Find mentality (The Bad Mentality), and you want to ask an expert (The Person Who WTFPWN You) about Command Line Interface (The Cool Mentality), they will tell you to Read The ***** Manual. Linux is totally taking over the Mass market, way to go!
- Snarfy, on 10/12/2007, -0/+2grr, digg ate my backslash. There needs to be a backslash directly preceeding the semicolon.
- junkalam, on 10/12/2007, -5/+7uumm...google ?
- kutsal, on 10/12/2007, -1/+3@crdlb
Using locate assumes you have an operating system that has locate installed, and that updatedb is setup to run every whenever it needs to run. For instance on Solaris, unless you get it from sunfreeware.com, there is no locate.. So you're left with "find / name".... - SloppyJoe, on 10/12/2007, -0/+2Silly n00bs. The people who go to the college where I work (CS students in general) are all afraid of the command line. I'm glad to see some howtos on the subject. In general people need to get more comfortable using a computer without all the fancy graphics. I'm not saying never use a graphical environment, I always use one, but I always have a shell window open too. There are many things that one can do on the command line with a few simple words that is a bit more involved in a GUI.
- williebee, on 10/12/2007, -0/+2It's "/var/lib/slocate/slocate.db" in Ubuntu.
- beers, on 10/12/2007, -0/+2try:
http://linux-newbie.dotsrc.org/
i learned a lot of things the hard way and using google and the man pages surely helped. practice makes perfect (i can always use more practice). - B3nno, on 10/12/2007, -0/+2I agree, in my CS class we have a linux lab once a week, and I see everyone else fumbling with the command line, or trying not to use it at all. I used to explore and experiment with my window's command line, very useful once you get the hang of it.
- JimXugle, on 10/12/2007, -0/+2cd /
updatedb
locate [Filename] - burtonbe, on 10/12/2007, -0/+2a favorite command that prints a report of the 20 largest files on your system:
find / -size +10000k -printf "%s "%p"n" | sort -nr | head -n 20
Note: keep in mind that you'll have to place backslashes in front of the quotes around the %p and the newline character. Digg's comment system doesn't allow me to post them. - Snarfy, on 10/12/2007, -1/+3The always useful 'find in files':
find . -name foo -exec grep -l bar {} ;
Lists all files named foo which also contain the word bar. - rmerrick, on 10/12/2007, -0/+1@kutsal
The article is specific to Linux. Nearly all distros has locate. - canadianbaking, on 10/12/2007, -0/+1 I think you mean 'locate -u;wait 5 minutes;locate -i foo', and hope 'foo' isn't in a temp directory (where locate won't find it).. This of course assumes you're not using FreeBSD locate where 'locate -u' won't even work..
D*mn .. that little dog isn't looking so bad now is it? - DatDamWuf, on 10/12/2007, -3/+4not bad, at least it talks about locate, most of these only cover find
- kutsal, on 10/12/2007, -2/+3Provided you opted to install the documentation packages (why wouldn't you?) that came with your favorite distribution:
man [insert command]
whatis [insert command]
apropos [insert command]
The phrase RTFM [Read The ***** MANual] comes from Unix guys opening a terminal window and typing "man [insert command]" every time some "noob" asked them something like this: "Uhh.. What does [insert command] do exactly?"...
[sarcasm]Oh, Google helps too. Syntax is similar. In the search box, type: "man [insert command]"... [/sarcasm] - hockeyrink, on 10/12/2007, -0/+1AHA!
I knew that I was going to run into this one day. When I started my learning curve with Linux about 2 years ago, I kept a hints & tips file on my server which I added useful hints to on an ongoing basis.
One of the things I needed to figure out what how to find stuff. Dada! (BTW, use "updatedb" to create a search database and "slocate" or "locate" to search it)
I hereby share it the way it 'tis. Not organized (actually, most recent entries at top), but DANG, BABY, it's been helpful for me with my forgetful "Uhhh...how did I do that? Where did I read it?".
http://downloads.solarbotics.com/misc/linux_hints.txt
I tried to paste the contents, but I'm not gonna fight with DIGG's spell-checker... - vornan19, on 10/12/2007, -2/+3@KeakTheSneak
http://www.ss64.com/bash/
First Google hit
I moved from MacOS 9 to Linux shortly after OS X came out. It took me two weeks to configure my fstab to mount my flash drive. Nowadays Linux distros come with such good hardware detection it almost isn't fun anymore.
A little more info on my use: I boot into the CLI (init=3), always have a terminal open, and absolutley hate Windows. But ya'll knew that last one, right? - tropicflite, on 10/12/2007, -0/+1find * | grep foo
- captainnico, on 10/12/2007, -1/+2locate -i foo
And I didn't have to stare at an animation of a small dog, and receive dozens of irrelevant results. - Petrushka, on 10/12/2007, -0/+1http://beagle-project.org/
- williebee, on 10/12/2007, -0/+1That is a good list, but I didn't see "apt-cache search foo"
A quick way to find if apt exists on repositories.
This is my favorite command.
find /* -name '*.jpg' -exec rdjpgcom {} ; #note: digg removes backslash before semi-colon. It must be there.
Finds hidden messages in jpg files. - williebee, on 10/12/2007, -0/+1 kio-locate + konqueror is great for find config files.
- HalfGiraffe, on 10/12/2007, -0/+1In what way is this an article for "newbies" (as stated in the introduction above)? It's obviously written for experienced system administrators (in fact the author even says it's for admins who are migrating from Windows). Even at that, it's so poorly organized and rambling to be nearly incoherent.
Worst "newbie" article I've ever seen. - freddo, on 10/12/2007, -0/+1For man pages: http://www.freebsd.org/cgi/man.cgi
- Snarfy, on 10/12/2007, -0/+1I like find better than locate because what I'm looking for isn't always in the locate-db. "locate foo | grep bar" doesn't work if the value was added five minutes ago. 'find' always works. Locate is like the windows explorer 'find in files'. Sometimes it works, sometimes it doesn't.
- amiak, on 10/12/2007, -1/+2man chill
- mtgarden, on 10/12/2007, -0/+1and all of the comments about using "locate" or "find" or whatever are not really helpful. Lets see... how many distributions use slocate instead of locate? And which ones use find instead of slocate or locate? And how many distributions have all three? Oh wait, they usually pick one and remove the rest.
I love linux, but this differentiation between distrobutions has slowed down my ability to adopt linux and my ability to assist other new users. For that matter, it makes it tough for me to get assistance. I have to find someone who uses this particular distribution to assist me....
BTW, I am writing this from SLED 10.1, I also run an Ubuntu server and a Slackware penetration testing box, so I do like linux. - 1611av, on 10/12/2007, -0/+1"And I didn't have to stare at an animation of a small dog, and receive dozens of irrelevant results."
And I can type any word into the upper right bar of any Finder window and watch the search progress as I type...all without a dog. It's called Spotlight, released over a year ago in OS X 10.4. Microsoft is finally catching up, Linux is still painful. - freddo, on 10/12/2007, -0/+1about locate, I'd suggest adding an alias with case insensitive, regex and file exists options:
alias loc='locate -ire' - maxhrk, on 10/12/2007, -1/+1I only wish I could just simply do "find linux" lazily. :) noob people want simpilicity i guess.
- mydave, on 08/05/2008, -0/+0I find this idea pretty good. it will be nice.
http://www.sooslic.com
http://www.trgovinca.org - troon, on 10/12/2007, -0/+0locate foo | grep bar
much quicker and easier - spudlyo, on 10/12/2007, -1/+1I only recently learned about -mmin by reading the find manpage, it's nice to be able to see modified time in minutes as opposed to days.
- glev2005, on 10/12/2007, -0/+0find sucks because u need to know what directory the file is in already, or wait for a year...whereis or which is good to find where the binaries for commands live
- inactive, on 10/12/2007, -4/+4I've really felt that there needs to be a central repository of bash commands for noobs. I haven't been able to find one anywhere, does anyone have suggestions?
- spuwaaaa, on 10/12/2007, -0/+0As far as a repository of commands, there's linuxdevcenter.com/ linux/ cmd/
As far as the year of Linux desktop 2034, isn't that the year after the singularity? - spuwaaaa, on 10/12/2007, -0/+0As far as central repository there's http://www.linuxdevcenter.com/linux/cmd/
as far as year of the Linux desktop 2034: isn't that the year after the singularity? - strabes, on 10/12/2007, -3/+3works especially well with commands like "man mount"
- molecule, on 10/12/2007, -2/+1locate sucks
- JavertHolmes, on 10/12/2007, -2/+1http://www.digilife.be/quickreferences/QRC/UNIX%20commands%20reference%20card.pdf is a nice start in my opinion. Just by browsing it you may find things that you can "man" later on. Some commands are a bit outdated, but it may be very helpful depending on your expertise.
- breakaway, on 10/12/2007, -4/+2It is easy to understand. Just because all your files aren't in C: doesn't mean its wrong. Linux file system structure is more organized than windoze.
Also, I'd rather type "locate xyz" into a terminal to find a file rather than doing it through a GUI, because there are more steps involved. - flag564, on 10/12/2007, -5/+3That whole tutorial caused my eyes to gloss over.
Seriously, I felt like I was using DOS back in 92.
Who the hell wants to use a computer like thin the the 21st century?
Tip to the Linux guys: Find a better way to quickly find files! Make the FS easier to understand.


What is Digg?