Check These Out
Using this command you can track a moment when usb device was attached.
Need to have rc iso pre-downloaded before running command.
add this alias in .bashrc to fast check the ip address of your modem router
alias myip="curl -s http://myip.dk | grep '' | sed -e 's/]*>//g'"
#4345 also works under windows
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
https://stackoverflow.com/questions/10768160/ip-address-converter
Welcome to Jon H. (@fart), the new maintainer of CommandLineFu.
.
In the absence of a forum, I encourage people welcome him, here, in the comments.
.
Also... What would you like to improve/change about the site?
This one-liner will the *delete* without any further confirmation all 100% duplicates but one based on their md5 hash in the current directory tree (i.e including files in its subdirectories).
Good for cleaning up collections of mp3 files or pictures of your dog|cat|kids|wife being present in gazillion incarnations on hd.
md5sum can be substituted with sha1sum without problems.
The actual filename is not taken into account-just the hash is used.
Whatever sort thinks is the first filename is kept.
It is assumed that the filename does not contain 0x00.
As per the good suggestion in the first comment, this one does a hard link instead:
$ find . -xdev -type f -print0 | xargs -0 md5sum | sort | perl -ne 'chomp; $ph=$h; ($h,$f)=split(/\s+/,$_,2); if ($h ne $ph) { $k = $f; } else { unlink($f); link($k, $f); }'
Extracts the model name of the CPU and displays it on screen.
Show external IP and geolocation information.
Primary feature is the use of tee to echo IP _and_ send to geoiplookup command...Use IP as input for as many commands as you want with more >( [command] )
Thanks to http://www.commandlinefu.com/commands/view/6334/
Requires MaxMind DB and geoiplookup tool.
Sample output has IP obfuscated on first line, lines 2-4 from having MaxMind Country && MaxMind City DBs installed