Jump to content


Photo
- - - - -

CommandLineFu.com


  • Please log in to reply
9 replies to this topic

#1 Spyril

Spyril

    Hakker addict

  • Members
  • 588 posts
  • Location:North Dakota

Posted 15 February 2009 - 02:54 AM

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.

#2 SchippStrich

SchippStrich

    SUP3R 31337 P1MP

  • Members
  • 293 posts
  • Country:
  • Gender:Male
  • Location:USA

Posted 16 February 2009 - 08:22 PM

Yeah, that's pretty neat. Lot's of thing's I haven't thought of or seen.

#3 Dirk Chestnut

Dirk Chestnut

    SUP3R 31337 P1MP

  • Members
  • 268 posts
  • Location:248

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 mirrorshades

mirrorshades

    aviatorglasses

  • Agents of the Revolution
  • 951 posts
  • Gender:Male

Posted 17 February 2009 - 08:37 PM

Some kind of interesting stuff there; they need a better means to sort/group items though. There is enough highly-specific stuff that I'll never need that makes it kind of hard to sift through for something useful. Amusing stuff, too. For fun, sort it by popularity ( http://www.commandli...e/sort-by-votes ) and then go to the very bottom of the list.

This one in particular caught my eye: http://www.commandli...k-code-must-die

:)

#5 SwartMumba

SwartMumba

    mad 1337

  • Members
  • 145 posts
  • Gender:Male
  • Location:TX <-- I'm here

Posted 17 February 2009 - 09:38 PM

This one in particular caught my eye: http://www.commandli...k-code-must-die
:)

Ya that one was amusing.

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.  :P

#6 IndexPhinger

IndexPhinger

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 481 posts
  • Country:
  • Gender:Male
  • Location:192.168.0.254

Posted 18 February 2009 - 01:21 AM

This one in particular caught my eye: http://www.commandli...k-code-must-die
:)

Ya that one was amusing.

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.  :P


Kindly Please Explain what "alias emacs='rm -rf ~/'" does lol I'm not that leet. :)

#7 Spyril

Spyril

    Hakker addict

  • Members
  • 588 posts
  • Location:North Dakota

Posted 18 February 2009 - 01:24 AM

This one in particular caught my eye: http://www.commandli...k-code-must-die
:)

Ya that one was amusing.

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.  :P


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 phr34kc0der

phr34kc0der

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 469 posts
  • Country:
  • Gender:Male

Posted 18 February 2009 - 12:58 PM

This one in particular caught my eye: http://www.commandli...k-code-must-die
:)

Ya that one was amusing.

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.  :P


That one made me smile :)

#9 mirrorshades

mirrorshades

    aviatorglasses

  • Agents of the Revolution
  • 951 posts
  • Gender:Male

Posted 18 February 2009 - 10:20 PM

Kindly Please Explain what "alias emacs='rm -rf ~/'" does lol I'm not that leet. :)

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.

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 SwartMumba

SwartMumba

    mad 1337

  • Members
  • 145 posts
  • Gender:Male
  • Location:TX <-- I'm here

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!