CommandLineFu.com
#1
Posted 15 February 2009 - 02:54 AM
This is neat. It's classic unix command-line fu meets Web 2.0. Thus far, many of the bash one-liners are pretty useless, but with enough community participation, I could see this becoming very interesting and useful.
#2
Posted 16 February 2009 - 08:22 PM
#3
Posted 16 February 2009 - 10:24 PM
http://www.commandli...commands/browse
This is neat. It's classic unix command-line fu meets Web 2.0. Thus far, many of the bash one-liners are pretty useless, but with enough community participation, I could see this becoming very interesting and useful.
One-liners are almost always completely situational - you might have this awesome one that does what-have-you, but it's not usually not useful to someone else in what they're trying to do.
I think it's kind of a rad site for learning new general tricks and shortcuts though. I'm definately going to keep it in mind for the next time I need to clunk together a shell script to do something like reformat a text file.
#4
Posted 17 February 2009 - 08:37 PM
This one in particular caught my eye: http://www.commandli...k-code-must-die
:)
#5
Posted 17 February 2009 - 09:38 PM
Ya that one was amusing.This one in particular caught my eye: http://www.commandli...k-code-must-die
I also gave a chuckle at http://www.commandli...ferior-software
I don't know why it is rated bad. I guess most of the voters use inferior software.
#6
Posted 18 February 2009 - 01:21 AM
Ya that one was amusing.This one in particular caught my eye: http://www.commandli...k-code-must-die
I also gave a chuckle at http://www.commandli...ferior-software
I don't know why it is rated bad. I guess most of the voters use inferior software.
Kindly Please Explain what "alias emacs='rm -rf ~/'" does lol I'm not that leet.
#7
Posted 18 February 2009 - 01:24 AM
Ya that one was amusing.This one in particular caught my eye: http://www.commandli...k-code-must-die
I also gave a chuckle at http://www.commandli...ferior-software
I don't know why it is rated bad. I guess most of the voters use inferior software.
Kindly Please Explain what "alias emacs='rm -rf ~/'" does lol I'm not that leet.
It deletes your home directory if you try to run emacs.
#8
Posted 18 February 2009 - 12:58 PM
Ya that one was amusing.This one in particular caught my eye: http://www.commandli...k-code-must-die
I also gave a chuckle at http://www.commandli...ferior-software
I don't know why it is rated bad. I guess most of the voters use inferior software.
That one made me smile
#9
Posted 18 February 2009 - 10:20 PM
Emacs is one of the two prominent text editors historically available by default on a linux/unix system. (Nowadays you can have your choice of 30 or more when you install, but once upon a time it was Emacs and Vi.) To invoke the Emacs editor, one would normally type emacs on the command line. The above command sets up an alias -- rather like a command-line shortcut -- that makes it so that typing emacs will instead execute the command rm -rf ~/. This particular command, when run, will forcibly delete every single file in the user's home directory (e.g. their "My Documents" folder). You may get lucky if your distribution is set to prompt for deletion by default... otherwise, you would simply not see anything happen for a bit after pressing the Enter key, then you would break out into a cold sweat when you noticed that all your files were gone.Kindly Please Explain what "alias emacs='rm -rf ~/'" does lol I'm not that leet. :)
You could even make it a bit more malevolent by typing: alias emacs='emacs && yes | rm -rf ~/' ... which would, in fact, let you run the emacs editor once, then delete your files when you exit (the "yes" program would simply answer "y" to each question in the case of being prompted for deletion).
To sum up... this sneaky command was composed by someone who is on the Vi side of the Editor Wars. :)
#10
Posted 18 February 2009 - 11:43 PM
...the "yes" program would simply answer "y" to each question in the case of being prompted for deletion...
The '-f' option forces the action to proceed. "-f --force: forces nonexistent files, never prompt."
Edited by SwartMumba, 18 February 2009 - 11:44 PM.
BinRev is hosted by the great people at Lunarpages!














