This will print to the screen password for the user specified in "sys_users.login='xxxx';. This is for Plesk servers only. Show Sample Output
(FreeBSD) Once you've made the snapshot you can resume any stopped services and then back up the file system (using the snapshot) without having to worry about changed files. When finished, the snapshot can be removed : umount /mnt mdconfig -d -u 1 rm /var/.snap/snap_var_`date "+%Y-%m-%d"`
function for .bash_aliases that prints a line of the character of your choice in the color of your choice across the terminal. Default character is "=", default color is white.
If your contact information was entered when your user account was created (it gets added to /etc/passwd) then this gets that info and creates a QR code for you automatically
Fast and excludes words with apostrophes. For ubuntu, you can use wamerican or wbritish dictionaries, installable through aptitude. Show Sample Output
Take a file and ,."()?!;: give a list of all the words in order of increasing length. First of all use tr to map all alphabetic characters to lower case and also strip out any puntuation. A-Z become a-z ,."()?!;: all become \n (newline) I've ignored - (hyphen) and ' (apostrophe) because they occur in words. Next use bash to print the length ${#w} and the word Finally sort the list numerically (sort -n) and remove any duplicates (sort -u). Note: sort -nu performs strangely on this list. It outputs one word per length. Show Sample Output
kill processes by user . Remove "i" if you don't want to confirm.
Type the command. Then just use ssh command with tab to see all your ssh sessions. You can also put it in your profile. Thank you Nedzad !
List the busiest scripts/files running on a cPanel server with domain showing (column $12). Show Sample Output
in test_file.txt: /var/img/1/368/ID_2012MTH03DT15.zip /var/img/1/368/ID_2012MTH03DT16.zip /var/img/1/368/ID_2012MTH03DT16N.zip /var/img/1/368/ID_2012MTH03DT16E.zip /var/img/1/368/ID_2012MTH03DT17M.zip /var/img/1/368/ID_2012MTH03DT17N.zip /var/img/1/368/ID_2012MTH03DT17E.zip /var/img/1/368/ID_2012MTH03DT18M.zip /var/img/1/368/ID_2012MTH03DT18N.zip /var/img/1/368/ID_2012MTH03DT19M.zip /var/img/1/368/ID_2012MTH03DT19N.zip /var/img/1/368/ID_2012MTH03DT19E.zip /var/img/1/368/ID_2012MTH03DT20M.zip /var/img/1/368/ID_2012MTH03DT20N.zip /var/img/1/368/ID_2012MTH03DT20E.zip /var/img/1/368/ID_2012MTH03DT21M.zip Show Sample Output
To check the total number of mounts, maximum number of mounts before performing the fsck and last time when the fsck was performed. Show Sample Output
This version works on OS X (if you have installed `rename`)
Requires jq (JSON parser) and curl (wget could do the same with some changes)
This is just for fun. Show Sample Output
Article mentions what each part of the command is responsible for. http://raymondcrandall.com/post/1360780719/easily-renaming-lots-of-files Show Sample Output
Converts a single-track KML (Keyhole Markup Language) file to a GPX file. KML is the geospatial format of choice used by Google Earth, but doesn't interoperate with other GIS applications, websites, or devices ? almost all of which accept GPX.
Shows the "parent" package of a given file. 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: