Diverse trunk and branch, when last index is trunk, show trunk repository name when last index minus one is branches, show branch repository name
This will be useful when checking for logs and have to omit specific weblogic or apache server's log information which are redundant and unnecessary. Show Sample Output
get the resolution of current desktop settings Show Sample Output
Diff 2 branches, for a type of file & having a string in the diff
-name : base of filename -o : 'or' '*.c' : avoiding "paths must precede expression" error message -type f : only find file type --color: hightlight specific word with color -E : extended regexp Show Sample Output
to find and cut between to strings with grep and cut Show Sample Output
Useful in scripts to compare known malicious IP addresses with what you are actually blocking. Show Sample Output
Show the executable that spawned the process and show the PID and ORACLE_HOME relative to the environment within which the process is running.
Check the connection of the maximum number of IP Show Sample Output
All the other example fail when running in a folder containing too many files due to * being saturated. This command does not use *, allowing me to run it in one folder containing over 300000 audio files. As to running on so many files, I used GNU parallel in order to spawn as many processes as cores, tremendously fasting up the process. Show Sample Output
Taken from: https://unix.stackexchange.com/questions/129159/record-every-keystroke-and-store-in-a-file Author: Stephane Chazelas Show Sample Output
Continuously watches postgres, showing the instances using the most RAM at the top. Show Sample Output
alternative to pidof command 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: