Unhide is a forensic tool to find processes and TCP/UDP ports hidden by rootkits, Linux kernel modules or by other techniques. It includes two utilities: unhide and unhide-tcp. Show Sample Output
the -a flag causes tar to automatically pick the right compressor to filter the archive through, based on the file extension. e.g. "tar -xaf archive.tar.xz" is equivalent to "tar -xJf archive.tar.xz" "tar -xaf archive.tar.gz" is equivalent to "tar -xzf archive.tar.gz" No need to remember -z is gzip, -j is bzip2, -Z is .Z, -J is xz, and so on :)
Not as elegant as the zmv version.
rename is often an alias to prename, bundled with perl. Show Sample Output
Join command combines lines from two files based on a common field. Show Sample Output
Must have rabbitmqctl: https://www.rabbitmq.com/man/rabbitmqctl.1.man.html See connections as the change, by user, sorted. Show Sample Output
Gives the DNS listed IP for the host you're on... or replace `hostname` with any other host Show Sample Output
A normal fork bomb looks something like this:
_(){ _|_& };_
If you really felt like it, you could even create a devastating little script like this:
#!/bin/bash
_(){ _|_&&_& };_;:(){ :|:&&:& };:;.(){ .|.&&.& };.
Please, for the love of resources, do not run this on a company, school, public, etc machine.
Show Sample Output
Diff 2 branches, for a type of file & having a string in the diff
Makes use of $RANDOM environment variable.
Normally the bash builtin command 'set' displays all vars and functions. This just shows the vars. Useful if you want to see different output then env or declare or export.
Alias 'sete' shows sets variables
alias sete='set|sed -n "/^`declare -F|sed -n "s/^declare -f \(.*\)/\1 ()/p;q"`/q;p"'
Alias setf shows the functions.
alias setf='set|sed -n "/^`declare -F|sed -n "s/^declare -f \(.*\)/\1 ()/p;q"`/,\$p"'
Also see: http://www.commandlinefu.com/commands/view/6899/print-all-environment-variables-including-hidden-ones
At the very least, some cool sed commands!
From my .bash_profile http://www.askapache.com/linux-unix/bash_profile-functions-advanced-shell.html
Show Sample Output
You can then do all the processing you wish... It's already sorted and only installed packages are listed. EDIT: Now contains formatting option to list only package names! Also, disables truncating long package names. NOTE: it's tilda i not dash i
-sl : show just file names
deletes first and last line from file either empty or not.
Reciprocally, we could get the node name from a give Tor IP address => ip2node() { curl -s -d "QueryIP=$1" http://torstatus.blutmagie.de/tor_exit_query.php | grep -oP "Server name:.*'>\K\w+" ; } ip2node 204.8.156.142 BostonUCompSci Show Sample Output
Translates first set into second set Show Sample Output
'newfile' will have content of 'file' minus first 55 lines to delete first line only do: tail +2 file > newfile
Get the list of changed files between revision 43 and HEAD revision: svn diff . -r43:HEAD --summarize Strip extra 8 characters from every line: cut -c9-99999 Copy the listed files to home/me/destination: cpio -pvdmu ~/destination Make a plain copy (-p), list files being copied (-v), create needed directories (-d), preserve modification time (-m), overwrite unconditionally (-u) Show Sample Output
This bash one-liner will let you watch the tail end of a log file in real time.
To be OS independent you should try df -Pk first (Linux) and if it does not work (that's the ||) then use df -k (e.g. for Solaris, HP UX, AIX). To get the output in a single line, use the additional cat.
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: