Get the last run container ID and stop it.
The queryformat option can be used in a number of ways to find things like duplicate packages, wrong arch, or the exact package to pass to rpm -e, yum remove, etc. Show Sample Output
ec commits changes to etckeeper must have etckeeper installed with bzr to use this place inside bashrc can be used from any directory to commit changes
prints out the time for the timezone specified in $offsetutc. So you have less to think about things like: "I'm in utc+4 and my friend in utc-7, can I call him now or will I wake him?" Note: $offsetutc should be an integer between -12 and 12. Show Sample Output
Sets an alias to remote desktop to the specified console, along with options to ensure the RDP session takes up the whole screen, includes a home directory mapping, and clipboard mappings. Show Sample Output
M is size in megabytes, man expac to see other sizes %m is install size %k is download size
Replace rm, a neat shortcut, with a less permanent method of removal. Note may require you to install the trash client; "sudo apt-get -y install trash-cli" Show Sample Output
looks at html for "ip" (it's a CSS class), then a little of cut and egrep to get IPv4 address. I use this oneliner into conky. Show Sample Output
Also detaches session if attached from somewhere else.
I used this to get all the remote connection ip addresses connected to my server... I had to start storing and tracking this data so thats why i built this out... probably not optimal as far as the egrep regex but it works ;) Show Sample Output
Add up the amount of memory your processes are using and display the total. Replace marcanuy with your desired username. Show Sample Output
Find all files in SVN workspace directories which are uncommitted. List them and find their properties Show Sample Output
Command to compress logs
How to determine SSL cert expiration date from a PEM encoded Show Sample Output
Useful to see login name, UID, GID, home dir, and login shells of all users. Show Sample Output
It's always a good idea to check the output of find without -delete before hand to make sure the results are as you expect. If you want to see where the broken symlinks point, use
find . -xtype l -exec ls -l {} \+
Finds javascript lodash/underscore methods in source code. It's not perfect as can be ascertained from the last entry in the output. Would be interested if somebody improves this. Show Sample Output
After install https://linux.dell.com/repo/community/openmanage/ (Complete, all), install these packages or you will get segfaults on update and it will fail.
"&&" runs sed if and only if the backup completed and /bin/cp exited cleanly. Works for multiple files; just specify multiple filenames (or glob). Use -v switch for cp to play it safe.
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: