All commands (14,187)

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


Check These Out

Stream youtube videos
Streams youtube-dl video to mplayer. Usage: syt 'youtube.com/link' 'anotherlinkto.video' Uses mplayer controls

Create a tar file with the current date in the name.

for all who don't have the watch command
#Usage: watch timeinsecond "command"

Extract raw URLs from a file
you can also use cut instead of awk. less powerful but probably faster. ;)

Monitor cpu in realtime.

cpu and memory usage top 10 under Linux
It's like `prstat -t` under Solaris

Send email with curl and gmail
Required curl version >=7.21; using ~/.netrc for authorization

Ping all hosts on 192.168.1.0/24

List all files opened by a particular command
List all file opened by a particular command based on it's command name.

Detect illegal access to kernel space, potentially useful for Meltdown detection
Based on capsule8 agent examples, not rigorously tested


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: