This command shows you how much is RSS utilization and real memory Show Sample Output
Some sites running on basic web servers don't support the HEAD request, so using "curl -I" on them doesn't work. This will automatically try "curl -I" at first and if that fails with a 4xx or 5xx status code, it falls back to "curl -i" and prints only the headers from that.
Find (by regular expression) and compress (xzip) catalogs then remove source catalogs
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
There are two different ways that I would have done this. With the command posted or if you prefer xargs: pip freeze --local | awk -F "=" '{$1}' | xargs pip install -U # But this is a moot point considering the above replaces xargs
No need for grep or xargs
No need for grep or xargs
Get AWS Account ID of AWS Show Sample Output
May need to substitute 'awk' for 'gawk'.
Death to the user limits!
To get only the address. Show Sample Output
i'm using -x : -x, --one-file-system skip directories on different file systems so mounts points aren't walked trough Show Sample Output
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.
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: