Like ps on unix, but for windows. Show Sample Output
if you use tmux and wish to automatically reattach you previously detached sessions when logging in.
Runs a diff on two files ignore comments and blank lines (diff -I=RE does not work as expected). Adapted from a post found on stackexchange.
Lists directory size up to a maximum traversal depth on systems like IBM AIX, where the du command doesn't have Linux's --max-depth option. AIX's du uses -g to display directory size on gigabytes, -m to use megabytes, and -k to use kilobytes. tr### is a Perl function that replaces characters and returns the amount of changed characters, so in this case it will return how many slashes there were in the full path name. Show Sample Output
tar with -p option preserves file permissions
Use this command to watch apache access logs in real time to see what pages are getting hit. Show Sample Output
See how many people are following you (or anyone) on Twitter.
followers cadejscroggins
Show Sample Output
For each *.jpg or *.JPG file in the current directory, extract the date the photo was taken from its EXIF metadata. Then replace the date stamp, which is assumed to exist in the filename, by the date the photo was taken. A trick from https://unix.stackexchange.com/a/9256 is used to split the date into its components. Show Sample Output
A python3 tool that can be installed with the following command pip3 install gif-for-cli --user
This renames a pattern matched bunch of files by their last modified time. rename by timestamp rename by time created rename by time modified Show Sample Output
the second command 'vim !$' will open test.txt to edit Show Sample Output
Create a cronjob that runs weekly to backup your database to a file.
Destination IPs will become invisible to source IPs!
Blocksize (bs) is not mandatory. It's only needed when the count option is specified.
When the wireless card is in AP mode, list the users which are connected to the network. Show Sample Output
Get you IPV 6 address with curl and sed. Show Sample Output
Start an interactive program with perl code expansion. Everything between #[ ] is evaluated as perl code. #[ ] tags must not be nested (it wouldn't make sense anyway). Show Sample Output
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.
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
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: