Live data from Hacker News

Favorite Unix Commands

clippy.in

1–10 of 135 posts

Re: Favorite Unix Commands

#7
I forgot about the DNS querying of wikipedia. Probably could've used that to entertain myself on my flights over the holidays since I'm pretty sure gogo inflight passes DNS through.

Anyway, I'm a big fan of piping things into xargs. xxd is a terminal-based hex editor. It can convert both to and from hex to binary. I also use 'pgrep -lf 'partial_program_name' a lot in place of 'ps aux | grep partial_program_name'. 'pkill -9 partial_program_name' searches for and kills all processes matching the string.

Re: Favorite Unix Commands

#8
faucet 80 --in cat

This is useful for creating a connection for receiving the input of what you get...

e.g. running

faucet 80 --in cat

and later

curl http://127.0.0.1:80

will deliver to you console :

GET / HTTP/1.1 User-Agent: curl/7.21.4 (i686-pc-linux-gnu) libcurl/7.21.4 OpenSSL/0.9.8n zlib/1.2.5 libidn/1.19 Host: 127.0.0.1:900 Accept: /

Post reply on HN