scare hell out of user of just amuse by playing random .wav short files
Plenty of commands out there for finding external IP, but sometimes getting the [internal] IP bound to the NIC handling Internet traffic is useful. Probably not production worthy, but a useful quick kludge. Assumes IPv4 and no fancy routing. Show Sample Output
Docker's local man pages are (often) half of what you have online, so I wanted that as local man. Install lynx and run my oneliner, then use as follows: dockpage Adjust lynx's page width at will Show Sample Output
Very useful to get rid of backup files or wrong extension files that lure in your folders In this example first I do two searches for all filenames of the two extensions .jpg and .png, then delete the extension and only output the now duplicate files. I loop with these results and print a log and delete the file with the extension I dislike. Show Sample Output
the part after sed is optional. if you want, omit the last dot(.) yourself.
Cuts the last line of /proc/cpuinfo and replace all the leading text and zeros to null. Show Sample Output
This command builds upon some of the original commands posted here. Additions - The control sequence \x1b(B which selects the default character set ASCII. - Either the \x1B style escape sequence or the \033. - Case insensitivity by using 'I' to include \x1b, \x1B escapes and a-zA-Z in the latter part Tested extensively on makefile unbuffered output where the above additions proved necessary
a quick function for searching changed files. just copy it in the bash Show Sample Output
man NetworkManager.conf ... none: NetworkManager will not modify resolv.conf. This implies rc-manager unmanaged Show Sample Output
This will allow you to ensure you don't get nagged by updates and also protects you from watering hole attacks! Please be sure to make sure your plugins don't have any security issues! Backups are manifext.jason.bak credit @Jay https://chat.counterpoint.info
This is useful for converting a piece of text from a browser or a PDF reader to Markdown.
pbpaste -Prefer rtf
no longer works for getting the rich text version of the clipboard.
markdown_strict
uses Markdown.pl syntax without Pandoc extensions.
--no-wrap
disables hard wrapping and
--atx-headers
uses ATX headers instead of SETEX headers. You can also use
osascript -e'get the clipboard as"HTML"'|sed 's/«data HTML//;s/»//'|xxd -r -p
to get an HTML version of the clipboard which is included for text copied from a web view in applications like Safari and Chrome.
A function for retrieving and displaying a list of synonyms for a German word or phrase. Show Sample Output
This is useful in teams where developers don't bother to remove branches after merging PR. These branches make it hard to seek for really useful branches, which gives us a nice value of finding and exploring other people's code even before they create PR for it.
Remove all arguments related to linux kernel from a list which uses space as item separator.
New objects cannot be assigned by reference. The result of the new statement can no longer be assigned to a variable by reference. Check the "Sample Output" example ("sample.php"). The Output of the above example in PHP 5: "Deprecated: Assigning the return value of new by reference is deprecated in sample.php on line 3". Output of the above example in PHP 7: "Parse error: syntax error, unexpected 'new' (T_NEW) in sample.php on line 3. 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: