commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. 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.
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
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.
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:
Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:
Nicely display mem usage with ps.
_ expands to the last argument of the last command that was executed
Monitor with watch command and vmstat, memory usage
By putting ! in front of a command, we are able to run it from an ftp session.
Quick write some notes to a file with cat. Ctrl+C when you have finish.
Nethogs is a useful tool for monitor bandwidth consumption by pid. Tested on Debian an CentOs
Sample command to obtain a list of geographic localization for established connections, extracted from netstat. Need geoiplookup command ( part of geoip package under CentOS)
Comments can be used directly on the command line so I can save in the history a brief description of what command does.
Consider this file :
I can use awk substring to laminate words :
Nicely display in html format a detailed report of the machine, including cpu benchmarks.
Work for me on CentOS, grep and print ip addresses of ssh bruteforce attempts
ps command gives the possibility to display information with custom formatting with the -o options followed by the format specifier list.
When I make a latex document, I need to compile three times for generate an updated index of contents. With ruby on command line, I run this operation with a fast one liner.
Logtool is a nice tool that can export log file to various format, but its strength lies in the capacity of colorize logs. This command take a log as input and colorize it, then export it to an html file for a more confortable view. Logtool is part of logtool package.Tested on Debian.
: new command allow to split a Vim screen in two separate windows. Each window can handle its own buffer.
Passing the -c new options when Vim start cause to split screen automatically.
Nload is part of nload package, tested under Debian. Nload display network bandwidth statistics, -u m options stands for MBit unit measure.
Scan for viruses, recursively and print only infected files, with bell sound. Clamscan is part of clamav package. Tested on Debian.
Notifyme is a program that listen in background for users login, and report on login and logout. Users can be specified from a list or in a ~/notify.rc file. -C options force to display messages on the center of the screen.See man notifyme for more details. Part of notifyme package, tested on Debian.
From man tiger : Tiger is a package consisting of Bourne Shell scripts, C code and data files which is used for checking for security problems on a UNIX system. It scans system configuration files, file systems, and user configuration files for possible security problems and reports them.
mytop is a top like monitor for displaying Mysql server statistic and performance. Part of mytop package ,tested on Debian.
Kudzu is available on CentOS, used for configuring and detecting new hardware device installed, is also usefull for device listing.
Consider this line :
random perl language this make possible is
is possible to rearrange words with $F perl variable and word index, starting from 0.
wmwave is part of wmwave package, when launched display a small wireless link monitor on your desktop with noise, level and link power.
setfont load vga console font. The default font directory is usually in /lib/kbd/consolefonts. Setfont is part of kbd package. Tested on CentOS.
ethstatus part of ethstatus package, is a consolle based monitor for network interfaces. Nicely display on screen a real time summary about bandwidth, speed and packets.