Sort Apache access logs by date and time using sort key field feature
Get an approximation of who the workstation is assigned to. You can wrap it in su - "$()" if you want to log into a shell as that user. Show Sample Output
Remove everything after the second "rev" to only display the duplicate filenames and their hashes.
Download all pdf files off of a website using wget. You can change the file type to download, changing the extension, as an example you can change pdf for txt in command. Show Sample Output
Outputs unique error messages from the apache log, sorted by frequency. Tested on log format: [Wed Aug 26 00:00:00 2015] [error] [client xx.xx.xx.xx] Error message here Show Sample Output
# displays 10 largest files and folders in bytes # last entry is largest # similar output to this: du -sk * | sort -nr | head Show Sample Output
Echo $PATH isn't very easy to read. Show Sample Output
finds all xml files greps them for extracts the bean id sorts the ids creates a list of distinct entries, a unique list of bean ids Show Sample Output
This is helpful when approaching a new codebase and wondering where the bulk of the code is located Show Sample Output
sort - sort lines of text files -n, --numeric-sort compare according to string numerical value du - estimate file space usage -a, --all write counts for all files, not just directories -k like --block-size=1K -x, --one-file-system skip directories on different file systems Show Sample Output
A sure-fire way to find what's taking too much space in a filesystem. Use tail to get just the biggest files instead of all. Show Sample Output
Count the number of unique colors there are in a websites css folder (136 is way too many imho time to get people stick to a color scheme) Show Sample Output
List all font names installed in the system. Useful for TeX. Show Sample Output
rhyme time
mime
rhyme lowrez
Juarez
list of all virtual hosts which are defined in all apache configuration files
Returns a list, with attributes (think `ls -l`), in reverse chronological order. N is a single numeric parameter. Robust against unfriendly filenames and directory structures. 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: