Search commandlinefu from the CLI

curl -sd q=Network http://www.commandlinefu.com/search/autocomplete |html2text -width 100
Sample Output
    * mtr google.com
      mtr, better than traceroute and ping combined (92 votes, 5 comments)
    * sshfs name@server:/path/to/folder /path/to/mount/point
      Mount folder/filesystem through SSH (52 votes, 3 comments)
    * ssh -t reachable_host ssh unreachable_host
      SSH connection through host in the middle (33 votes, 0 comments)
    * lsof -i
      Watch Network Service Activity in Real-time (26 votes, 5 comments)
    * netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -c
      List the number and type of active network connections (17 votes, 3 comments)
    * tar -cj /backup | cstream -t 777k | ssh host 'tar -xj -C /backup'
      throttle bandwidth with cstream (13 votes, 6 comments)
    * tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'
      Get Cisco network information (12 votes, 1 comment)
    * ssh -f -N -L 5432:talk.google.com:5222 user@home.network.com
      Connect to google talk through ssh by setting your IM client to use the localhost 5432 port (9
      votes, 1 comment)
    * nmap -A -p1-85,113,443,8080-8100 -T4 --min-hostgroup 50 --max-rtt-timeout 2000 --initial-rtt-
      timeout 300 --max-retries 3 --host-timeout 20m --max-scan-delay 1000 -oA wapscan 10.0.0.0/8
      Scan Network for Rogue APs. (7 votes, 2 comments)
    * mii-tool eth0
      Check if network cable is plugged in and working correctly (6 votes, 4 comments)

9
2009-07-09 00:57:28

What Others Think

You should try Shell Users' Revolutionary Front Rage Against the Web (surfraw): SURFRAW_text_browser=elinks SURFRAW_text_browser_args=-dump sr-t amazon Cuckoo ...
netizen · 484 weeks and 3 days ago
lynx --dump http://www.commandlinefu.com/search/autocomplete | sed -n 'G;/^References/,$d;p'
KevinM · 484 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: