Get the total RESIDENT memory used by processes of a specific name. This means this is the MINIMUM used by a process, but some memory could be paged out to swap. Show Sample Output
This version accounts for the MiB/KiB suffix output by pacman these days.
man NetworkManager.conf ... none: NetworkManager will not modify resolv.conf. This implies rc-manager unmanaged Show Sample Output
Using to count all sentences in CoNLL data format
Get the running Kernel and Install date
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.
The link gets the definition from vocabulary.com. In case you are behind firewall, use --proxy URL in the curl option. Show Sample Output
MacOS Solution due to lack of pidof command and procfs on MacOS Kernel. Show Sample Output
WRT the original solution: 1. I might be wrong, but it seems DocumentRoot (per Apache docs) should be spelled exactly as is, as it is case-sensitive. So using -i will return strings such as documentroot, DOCUMENTROOT,.... (which could been added as part of a comment) 2. It returns false results for such cases as DocumentRoot is embedded in a comment 3. It returns false results for such cases as OldDocumentRoot, DocumentRoot.sav, ... in a comment. Other notes: - FYI: There might be more than one valid DocumentRoot entry in the conf file (in case of using virtual host(s))
Was to long with a loop, use a while loop for have it running 24/7
This command lists all currently installed packages in ubuntu in a single line, for example to use later with apt install. Show Sample Output
Use xargs command to make one line.
The sample output is from an Android Device Show Sample Output
To be used with other port scanners and or for help with iptables --dport 1000:2000 style expansion Show Sample Output
queries related to table 'Invoice_template' Show Sample Output
Get newest kernel version by parsing the most bleeding-edge Makefile possible. Useful for doing things like writing live ebuilds and/or self-updating PKGBUILDs for testing purposes. Breakdown: * wget -qO - https://raw.githubusercontent.com/torvalds/linux/master/Makefile — retrieve Makefile and pipe to stdout * head -n5 — only the first 5 lines are relevant, that's where all the version variables are grep -E '\ \=\ [0-9]{1,}' — version variables always have an equals sign followed by a number * cut -d' ' -f3 — extract the individual numbers from the version variables * tr '\n' '.' — replace newlines with periods * sed -e "s/\.$// — remove trailing period Show Sample Output
Read a file or standard input and only outputs lines that start with a dot or period "." 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: