This mapping function is called RANDOM bash and enter a number between 1 and 100 Show Sample Output
Count and Find all IP connected to my host through TCP connection. Show Sample Output
after kernel build with make deb-pkg, I like to install the 4 newest packages that exist in the directory. Beware: might be fewer for you....
copy GPT partition table from /dev/sda to /dev/sdb, using gptfdisk from http://sourceforge.net/projects/gptfdisk/. The -G command randomizes the UUIDS
This command finds all files in a folder recursively and sets owner and group to read and write. Leaves all dirs intact. This command does takes care of file names with spaces as well.
Uses the --porcelain option, which is garanteed to be stable among git versions and configurations - also, is way easier to parse. Show Sample Output
Replace "user/sbin/sshd" with the file you would like to check. If you are doing this due to intrusion, you obviously would want to check size, last modification date and md5 of the md5sum application itself. Also, note that "/var/lib/dpkg/info/*.md5sums" files might have been tampered with themselves. Neither to say, this is a useful command. Show Sample Output
If you know any two (or more) words are occurring on multiple lines in a file, using a regular expression such as this will help you find them quickly.
Shows the OS X applications downloaded from App Store. Doesn't include manually added apps. Show Sample Output
Filter out lines of input that contain 72, or fewer, characters. "sed -n" : don't print lines by default "/^.\{73,\}/" : find lines that start with 73 (or more) characters "p" : print them Show Sample Output
you need to have nmap installed sudo apt-get install nmap -y sudo yum install nmap -y Show Sample Output
There's other expansions as well such as `{one,two,three}'. Check the curl docs for more.
Disable password expiration and clear password history for VMware vcenter appliance
The classical 'ps aux | grep' can do this with one more parameter, the '-v', with means 'NOT' to grep.
This is useful for use in scripts. Note that this will leak your password to ps, so this shouldn't be used on shared machines. Use key files for this
Demos figlet/toilet fonts in a configurable dir. Show Sample Output
It gives a 'xcd' command for changing directory to one of CWDs of other ZSH processes (typically running in a terminal emulator). Useful for single-windowed terminal emulators like XTerm or Rxvt which don't have ability to pass CWD of one shell to another. 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: