This will find all the -Xmx[BIGINT] running on a system, add them up for you and give you the total. Show Sample Output
If you want avoid to be annoyed when playing your favourite video files with your video player, first run this command to stash wrong files (and test tricks to play these wrong files). Show Sample Output
Should work with sh, bash, etc. Show Sample Output
This command is for producing GNU sha256sum-compatible hashes on UNIX systems that don't have sha256sum but do have OpenSSL, such as stock IBM AIX. 1.- Saves a wrapper script for UNIX find that does the following: A.- Feeds a file to openssl on SHA256 hash calculation mode B.- Echoes the output followed by the filename 2.- Makes the file executable 3.- Runs find on a directory, only processing files, and running on each one the wrapper script that calculates SHA256 hashes Pending is figuring out how to verify a sha256sum file on a similar environment. Show Sample Output
This command is used to verify a sha256sum-formatted file hash list on IBM AIX or any other UNIX-like OS that has openssl but doesn't have sha256sum by default. Steps: 1: Save to the filesystem a script that: A: Receives as arguments the two parts of one line of a sha256sum listing B: Feeds a file into openssl on SHA256 standard input hash calculation mode, and saves the result C: Compares the calculated hash against the one received as argument D: Outputs the result in a sha256sum-like format 2: Make the script runnable 3: Feed the sha256sum listing to xargs, running the aforementioned script and passing 2 arguments at a time Show Sample Output
If the HISTTIMEFORMAT is set, the time stamp information associated with each history entry is written to the history file, marked with the history comment character. Show Sample Output
Strips the audio track from a webm video. Use this in combination with clive or youtube-dl.
I did not come up with this one myself, but found this somewhere else several months ago. Show Sample Output
Put this logging function in you're script, when need it call it. command || logme "Error with command"
To send a text message to a phone, you need to send the text message via email. To find out how to send text messages to cell phones via email, go here - http://en.wikipedia.org/wiki/List_of_carriers_providing_Email_or_Web_to_SMS and find the carrier of the cell phone you want to send the text message to.
Delete items from Redis, using redis-cli, by matching a key pattern. Show Sample Output
Uses urandom and tr to generate a random password. Change the value of head -c## for the lenght of the password. Show Sample Output
Check trough unix sockets if tcp port is open or close Show Sample Output
nc is such a powerful command, it could be used instead of any OS! :p Show Sample Output
This will display --> Hello World
Change the "run_command" to whatever command you want, and remove the "echo" to run it once you are happy.
If you want to test output, run it like this: for fn in *.epub; do echo mv \"$fn\" \"`echo "$fn" | sed -E 's/\.*\/*(.*)( - )(.*)(\.[^\.]+)$/\3\2\1\4/' | sed -E 's/(.*) ([^ ]+)( - )(.*)/\2, \1\3\4/' `\";done > rename.txt Show Sample Output
This lists the number of ogg/mp3/wav/flac files in each subdirectory of the current directory. The output can be sorted by piping it into "sort -n". 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: