Videos are found using their MIME type. Thus no need to for an extension for the video file. This is a efficent version of "jnash" cmd (4086). Thanks for jnash. This cmd will only show video files while his cmd show files having "video" anywhere in path. Show Sample Output
Checks your gmail account every 30 seconds and display the number of new messages in the top right corner of the terminal. A kind of CLI "Gmail notifier" if you will. :-) This is a mashup of http://www.commandlinefu.com/commands/view/7916/put-a-console-clock-in-top-right-corner and http://www.commandlinefu.com/commands/view/3386/check-your-unread-gmail-from-the-command-line
This fixes a bug found in the other scripts which fail when a branch has the same name as a file or directory in the current directory. Show Sample Output
Hide comments and empty lines, included XML comments, Show Sample Output
shows number of mysql bin log events (which are mysql server events) per minute, useful to check stress times postmortem Show Sample Output
Simple TCPDUMP grepping for common unsafe protocols (HTTP, POP3, SMTP, FTP) Show Sample Output
Will search for the given pattern and build a list of occurrences. Then you can use :copen and :cclose to toggle the list. When browsing the list, ENTER will take you to that line in the file.
Substitute for #11720 Can probably be even shorter and easier. Show Sample Output
This will catch most separators in the section of the email: dot . dash - underscore _ plus + (added for gmail) ... and the basic dash '-' of host names. Show Sample Output
grep по ps aux
first grep all href images then sed the url part then wget
Puts a splash of color in your access logs. IP addresses are gray, 200 and 304 are green, all 4xx errors are red. Works well with e.g. "colorize access_log | less -R" if you want to see your colors while paging.
Use as inspiration for other things you might be tailing, like syslog or vmstat
Usage:
tail -f access.log | colorize
Replace "foo" with "bar" in all files in current directory recursively
on some distro's you have to replace "BogoMIPS" with "bogomips". Show Sample Output
It will highlight non-ascii character in a file. those character can cause problem for some application parsing ascii file.
Normally, searching git log comments is case sensitive. The -i luckily applies to the --grep switch.
List all open files of all processes.
.
find /proc/*/fd
Look through the /proc file descriptors
.
-xtype f
list only symlinks to file
.
-printf "%l\n"
print the symlink target
.
grep -P '^/(?!dev|proc|sys)'
ignore files from /dev /proc or /sys
.
sort | uniq -c | sort -n
count the results
.
Many processes will create and immediately delete temporary files.
These can the filtered out by adding:
... | grep -v " (deleted)$" | ...
Show Sample Output
Neither of the others worked for me. This does.
Download latest released gitlab docker container
Put this one-line function somewhere in your shell init, re-login and try
whatinstalled <command>
This is an elaborate wrapper around "dpkg -S", with numerous safeguards. Symlinks and command aliases are resolved. If the searched command is not an existing executable file or was installed by some other means than dpkg/apt, nothing is printed to stdout, otherwise the package name.
Show Sample Output
a bit shorter, parenthesis not needed but added for clarity Show Sample Output
ItemsListtoAvoid (A) could be a list of files with a special characteristic to exclude. It can be a result of previous processing list, ex. a list of files containing a special string.
AlItemsList.txt (B) Is a complete list of items including some or all items in A.
Difference is saved in ItemsDifference.txt
found here: https://stackoverflow.com/a/9035939
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: