Sponsored by Sony Pictures
Do you believe the 2012 Mayan Prophecy? view!
whowillsurvive2012.com - The Mayan Calendar predicts the end of time: 2012. See the trailer for 2012, opening November 13.
78 Comments
- r121, on 10/12/2007, -2/+31Depends on your meaning of easier. The command line is efficient and easy to get things done when you know how, which is why many people like it. The GUI is definitely easier to figure out and get going with, but there are a lot of more advanced things that simply cannot be done in a point and click interface.
- filmil, on 10/12/2007, -2/+16This is in fact a list of commands of GNU bash, and not of linux, isn't it.
Give credit where credit is due, please. - Llan, on 10/12/2007, -5/+17As soon as there is a self-explanatory GUI that does all these things, give me a call. I might be in the nursing home by then, but it'd still be nice to know.
- discobean, on 10/12/2007, -0/+12If scripting and CLI is so useless and difficult, and GUI is so self explanitory and the way to go, then explain to me, why would Microsoft bother with a new scripting language, namely Powershell??
http://www.google.com/search?q=powershell - Hootyea, on 10/12/2007, -2/+13This is a repost of something posted a few months ago. I'm not complaining, because apparently this is new enough for people to be digg-worthy (which is the spirit of digg). However, this guy linked to the BASH only. The guy has some small other stuff, go to his home page to find out some Windows commands (nothing huge).
http://www.ss64.com/ - atdigg, on 10/12/2007, -5/+16It's also easier to help people, for example it's easier to say:
type "apt-get install apache2" in console
than to explain:
1. Start Synaptic
2. search for apache2
3. right-click and select install
4. Click "apply".
That's only an example, in many cases a command can be conveyed easier in writing that a GUI action. - inactive, on 10/12/2007, -2/+12"Examples?'"
mkdir -p directory/{1,2,media/{tv,movies,pictures}} ; mv ./*.mov ~/directory/media/movies
That took me all of 20 seconds to write when it would of took me at least a couple of minutes in the GUI - Gdjrptryjg, on 10/12/2007, -0/+10"GNU Commands - An Incomplete List"
- Llan, on 10/12/2007, -2/+11Oh Comment Trolls, if only you had a grasp on the basics of communication.
- Eoxx, on 10/12/2007, -1/+10The point is :
What is better :
Having efficient background tasks that can be run (and combined) using line command AND using a GUI layer you can also launch it (you can always do task by the GUI if you will) ... Not to mention these commands are highly powerful but use little resources ...
Having a GUI interface only tool (that is by definition limited) with limited access to background tasks ?
I would also say : is it better to use a registry (binary) that runs in memory (min 20 megas in your face) or (human understandable) configuration text files that get to the point and don't pollute your memory ?
Windows admin are (most of the time) limited to the interface .... Unix admin can handle multiple machines with one text console tool using simple shell commands ... - noof, on 10/12/2007, -0/+9Try and find every file that contains the word "digg", sort the resulting files in descending order and append "#of files^length of that file" to the end of every file with a GUI. That's quite easily done with one line command-line if you're good at it.
- bigtomrodney, on 10/12/2007, -0/+8This is certainly a good reference, but it shold be made clear that this is not a bash scripting guide, just a collection of commands. Many of the commands are not bash specific such as cfdisk, eject, fdformat etc.
Good resource, but it is not a good idea to give misinformation at an early stage of learning. - Agret, on 10/12/2007, -2/+9"Actually it takes me a second to do it in a GUI."
It takes you a second to create a folder, 2 sub-folders and then move every movie in a folder to another one? I highly ***** doubt that. For one it's going to take you more than a second to type out the first folder name. You fail. - redhatcat, on 10/12/2007, -3/+9'"but there are a lot of more advanced things that simply cannot be done in a point and click interface."
Examples?'
Scripting. - Agret, on 10/12/2007, -0/+6It doesn't get annoying needing to learn how to navigate a clunky menu and spend hours re-typing the same junk every time you want to do something different?
- cope, on 10/12/2007, -0/+6this is nowhere near a full list..
they don't even have "jobs" - Agret, on 10/12/2007, -2/+8definitely knowing the commands. Even if a GUI is self-explanatory I still spend like 20 minutes finding the option I want to use. Especially for more complex tasks.....
- Agret, on 10/12/2007, -1/+7If you want a full list of Linux commands just hit your TAB key twice. When you find one you want information on type "man [command]" or "info [command]". Sites like this are redundant, you should use the tools the OS has given you to work out commands =/
- Wojzilla, on 10/12/2007, -0/+5At least with Linux the option is there, only now is microsoft introducing a nice CLI.
Imagine you're a sys admin, would you rather go to each workstation and repeat the same n steps every time or write a short script and have it execute at logon?
I would rather write a script than do it manually, as a MS/Linux admin its a LOT easier to find resources on BASH scripting than it is on WSH/VBS etc, the lack of guides and possibly the lack of command line tools means I end up installing cygwin just to get some script goodness happening in a windows environment.
Keep in mind as an end user you can get away with just a GUI in Windows/Linux/OSX, but i often find myself running for the console regardless of the platform, and you know what I do find it easy! - meg33k, on 10/12/2007, -1/+5GUIs are nice for interactive work (ie. I can packet watch with tcpdump but I'd rather do this in Ethereal). Automation is more suited to scripting. If you've never had occation to script then you muct like to do things the hard way. Even in GUIs there are loads of examples where scripts are deployed, just look at labmice and see all of the WSH examples. And even the impending release of the new 'power shell' for windows shows that there is a very realy reason for the command line.
- dready, on 10/12/2007, -0/+4Yeah, the title of the page is kind of misleading.
While some of the "commands" listed are built-in bash commands (eg. alias, cd), all the others are full UNIX programs.
Useful nonetheless. - Markie1006, on 10/12/2007, -0/+4'.' is synonymous with the 'source' command.
There is very subtle difference between running a script 'foo' as opposed to sourcing it with '. foo'.
If you run the straight script 'foo', you're actually spawning a subshell to run that command in. Any variables that are set or modified within that script are lost when the script exist.
Sourcing the script however '. foo' runs it using the existing shell you run it from, so any variables created/modified are still available.
One primary use for this if you have a bunch of different versions of an application and you want to setup the variables based on what the user chooses after login. - inactive, on 10/12/2007, -0/+4Not useful, missing lots of commands.
- bigtomrodney, on 10/12/2007, -0/+4Or type 'apropos ' and find the name of relevant commands.
- amlynch, on 10/12/2007, -0/+3Isn't there one of these stories EVERY DAY Good lord can we stop. if you want to know all 8 trillion and 56 linux commands look it up!
- wstryder, on 10/12/2007, -0/+3ImageMagick is a good example of a useful CLI app that really speeds up things. For creating thumbnails I always use:
$ for i in *.JPG; do convert -resize 100x100 -quality 70 $i tn_$i; done
If you have something like 200 3MB pics then it's a lot faster to do that from the CLI than waiting for Gimp to load them all. - Splattapuss, on 10/12/2007, -1/+3It would be interesting to see someone manage 20 remote servers through their GUI. Mostly impossible and pretty much improbable. The CLI is often the only way to go.
Though it should be noted that those are not all BASH commands. A bunch are other scripts and applications that come pretty standard on Linux.
Good for a beginner though - inactive, on 10/12/2007, -0/+2yttrx@whale:~$ ls -la /usr/bin | wc -l
3497
yttrx@whale:~$ cat bashcommandsfromdigg | wc -l
190
These are neither bash commands, nor are they a complete list of anything. Inaccurate. - martinus, on 10/12/2007, -0/+2You can generate a list like this quite easy with this command:
whatis -s 1 -w "*"
List all system admin commands:
whatis -s 6 -w "*"
List all file formats and conventions (e.g. /etc/passwd)
whatis -s 5 -w "*"
See the manpage for man for other section numbers. Thanks to the power of pipes this is quite handy to find e.g. compression utilities:
whatis -w "*" |grep compress
There are endless possibilities! :-) - nkassi, on 10/12/2007, -0/+2Also, "FULL" command list. *****. The universe of Linux command is much bigger. "Common" comand list" would be more apropriate.
- jarvuss, on 10/12/2007, -1/+3Why do I see a new article for "list of linux commands" on digg every week. Lame, no digg.
- martinus, on 10/12/2007, -0/+2oops, it is
whatis -s 8 -w "*"
to list all system administration commands. - mapkinase, on 10/12/2007, -5/+6I am typing here w/ any fear of being redundant:
man bash, man. man bash. - falloutsyndrome, on 10/12/2007, -0/+1updating yum repositories, changing user privleges, and configuring your X-server wich you can't do with a gui because your X server is your gui in most linux installs. If you've ever used automator you know its a ball of ***** too.
- Hootyea, on 10/12/2007, -3/+4@Rub3X.
It's like the days of DOS. Remember how you'd right a batch file for the sake of it? Then you'd start righting huge things, formating things under a text editor and *****. Then we got to Windows. When I'm forced to give my mother advice on how to get her IP via the command prompt, she doesn't even know what that is.
I'll agree with you, BASH is far more ellegant than a batch file. A batch file feels like you're talking to a robot, a BASH script feels like you're making art.
It's simply the main-stream bastardization of Linux. A good and a bad thing. - asdf25, on 10/12/2007, -0/+1@JQP123
I think you can get the best of both with the standard Linux method of making a powerful and versatile CLI program to do all the real work, and a separate graphical interface that uses the CLI program. Well-made Linux GUI's are just as good as those of Windows but the entire package is typically much more powerful because it's also easily scriptable and usable from the command-line. - asdf25, on 10/12/2007, -0/+1@Agret
jeff@jeffgentoo ~ $
Display all 2597 possibilities? (y or n) y
!
./
411toppm
:
AbiWord-2.4
ControlPanel
GET
HEAD
HtmlConverter
Magick++-config
Magick-config
POST
Wand-config
.....
That's just about the worst advice I've ever heard. - zoombusa, on 10/12/2007, -0/+1I wish with these linux command lists they would give more complex examples of the commands. Just looks like a an extension of the man pages.
bookmarked nonetheless... - inactive, on 10/12/2007, -6/+7..scripting with windows? Called batch files. Hacks.bat and then put any windows commands in it. As for your your first comment, zero fill them, copy raw images, mount drives, and a ton of other things by default in Windows like you can in default Linux command line. Linux command line is awesome. It's really a shame all the ububtu users know almost nothing about it. ( Yes I had to throw in the last part cause I
- treehead, on 10/12/2007, -0/+1This is not a full list. Not even close. No digg.
- DnasTheGreat, on 10/12/2007, -0/+1Stuff that can't be done in a GUI at all or at least not as efficiently? (Note, this is for *NIX, Windows commands aren't as powerful.)
Scripting.
Communicating of actions.
Text manipulation - a BIG one. You simply cannot design a GUI to do text manipulation like a CLI can without practically making your application a graphical CLI.
Automation of grunt work
Remote administration
Doing the same bit of graphics work to 1000 images
A failsafe when the GUI goes down
Efficient system monitoring, etc. without having to start up a program that uses 10MB of RAM - sbrown123, on 10/12/2007, -0/+1deleted
- Claymore, on 10/12/2007, -1/+2Here is a nice one put out by O'Reilly:
http://www.linuxdevcenter.com/linux/cmd/ - vistic, on 10/12/2007, -1/+2That website seems to also have a similar list for XP commands:
http://www.ss64.com/nt/
Good site. - Shadowman, on 10/12/2007, -4/+5How did it get to the front page without referring to "Ubuntu"?
- skymt, on 10/12/2007, -0/+1"Examples?"
Two shell scripts in my ~/bin (the second one is brand new, untested):
#!/bin/zsh
for i in *.ps ; do
ps2pdf $i
done
#!/bin/bash
address=$1
if ${address:0:7} == "mailto:" ; then
$address=${address:7}
fi
gnome-open "https://mail.google.com/mail/?view=cm&fs=1&to=${address}" - Agret, on 10/12/2007, -0/+1@asdf25 it is the FULL list after all, the digg story isn't called "Linux Commands - A short list" like it should be....
- JQP123, on 10/12/2007, -1/+2Excellent example to illustrate the fundamental philosophical differences between *nix and WIndows. Obviously, Windows is more focused on ease of use, *nix is more focused on efficiency. Both have their place.
It all comes down to what people expect from computers and technology. Should users accomodate the computer or should the computer accomodate users? Which is more important, user efficiency or computer efficiency? Which is more valuable, computer skills or problem solving skills?
Which philosophy will most people embrace? Which will form the basis for computing in the future? The answer is particularly significant for anyone who plans to earn a living from computer technology. - nkassi, on 10/12/2007, -1/+2@i440: Looks to me like you might be a contestant for "WHO HAS THE MOST BURIED COMMENTS EVER". It's quite funny actually. My guess is that you are trolling on purpose just to win some sort of bet or something of the sort.
- JQP123, on 10/12/2007, -0/+0"It would be interesting to see someone manage 20 remote servers through their GUI. Mostly impossible and pretty much improbable."
Not at all. This is just what "Active Directory" and "Remote Desktop" are designed to do. I know a few people who seem to earn a pretty good living managing remote servers with these tools. -
Show 51 - 78 of 78 discussions



What is Digg?