4 ms·
http://www.commandlinefu.com/commands/browse/sort-by-votes http://www.commandlinefu.com/commands/browse/sort-by-votes Discover new command line utilities or co
by rdtsc 10y ago
http://www.commandlinefu.com/commands/browse/sort-by-votes 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].
- rgreasons 10y agohelpful tip to build upon #1: you can pass a valid port number to the SimpleHTTPServer command to open that port instead of 8000.
- 77pt77 10y agoWhat about specifying the interface? Last time I checked it wasn't possible.
- qwertyuiop924 10y agopython -m http.server, now. And /dev/dsp doesn't work: you have you sox or arecord/aplay to make that work now.
- sangnoir 10y ago> 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)