Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

http://www.commandlinefu.com/commands/browse/sort-by-votes

Discover new command line utilities or combinations of them to solve various things. Learned all kinds of useful stuff. Things like I know but always forget about:

   python -m SimpleHTTPServer
To server the current directory on port :8000

Then there is silly stuff like:

   dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp

To output your microphone to a remote computer's speaker [note: you probably shouldn't be using arcfour in general for ssh, and it might be disabled on your site].


> note: you probably shouldn't be using arcfour in general for ssh, and it might be disabled on your site

Related tip: arcfour is a less secure but fast cipher. If you are mounting a virtual machine locally via sshfs, you'll get better performance by using arcfour (10-20% increase in throughput, IIRC)


python -m http.server, now.

And /dev/dsp doesn't work: you have you sox or arecord/aplay to make that work now.


helpful tip to build upon #1: you can pass a valid port number to the SimpleHTTPServer command to open that port instead of 8000.


What about specifying the interface?

Last time I checked it wasn't possible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: