Check These Out
vlock command locks the current console by default. Also you can lock all the consoles on the server by using -a parameter. For details, pl man vlock.
ps: Generally speaking , system will not install vlock programme . So you should use ' $ sudo apt-get install vlock ' to install vlock .
Shows all block devices in a tree with descruptions of what they are.
This line removes the 300k header from a Nero image file converting it to ISO format
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Print out your age in days in binary.
Today's my binary birthday, I'm 2^14 days old :-)
.
This command does bash arithmatic $(( )) on two dates:
Today: $(date +%s)
Date of birth: $(date +%s -d YYYY-MM-DD)
The dates are expressed as the number of seconds since the Unix epoch (Jan 1970),
so we devide the difference by 86400 (seconds per day).
.
Finally we pipe "obase=2; DAYS-OLD" into bc to convert to binary.
(obase == output base)
This will get the sunrise and sunset times of a specific location. To be able to determine $l you need to first go to http://weather.yahoo.com/ and look up your location. The last numbers in the URL will be the $l
Instead of forecastrss?w=$l you can also use forecastrss?p=$l and use the RSS link of the city you found.
Also see http://developer.yahoo.com/weather/ for more information
When processing IP addresses in the shell (or shell script) it is useful to be able to verify that the value of data is an IP address (an not some random string or non-sensible IP address).
By default bash history of a shell is appended (appended on Ubuntu by default: Look for 'shopt -s histappend' in ~/.bashrc) to history file only after that shell exits.
Although after having written to the history file, other running shells do *not* inherit
that history - only newly launched shells do.
This pair of commands alleviate that.
this will find text in the directory you specify and give you line where it appears.