Check These Out
Using this command you can track a moment when usb device was attached.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Converts the ascii text to hex from bash.
Check the sample output.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Most distributions alias cp to 'cp -i', which means when you attempt to copy into a directory that already contains the file, cp will prompt to overwrite. A great default to have, but when you mean to overwrite thousands of files, you don't want to sit there hitting [y] then [enter] thousands of times.
Enter the backslash. It runs the command unaliased, so as in the example, cp will happily overwrite existing files much in the way mv works.
You can use this to dump you database from remote db to your local db.
Usage: flight_status airline_code flight_number (optional)_offset_of_departure_date_from_today
So for instance, to track a flight which departed yesterday, the optional 3rd parameter should have a value of -1.
eg.
flight_status ua 3655 -1
output
---------
Status: Arrived
Departure: San Francisco, CA (SFO)
Scheduled: 6:30 AM, Jan 3
Takeoff: 7:18 AM, Jan 3
Term-Gate: Term 1 - 32A
Arrival: Newark, NJ (EWR)
Scheduled: 2:55 PM, Jan 3
At Gate: 3:42 PM, Jan 3
Term-Gate: Term C - C131
Note:
html2text needs to be installed for this command. only tested on ubuntu 9.10
I wanted to create a copy of my whole laptop disk on an lvm disk of the same size.
First I created the logical volume: lvcreate -L120G -nlaptop mylvms
SOURCE: dd if=/dev/sda bs=16065b | netcat ip-target 1234
TARGET: nc -l -p 1234 | dd of=/dev/mapper/mylvms-laptop bs=16065b
to follow its process you issue the following command in a different terminal
STATS: on target in a different terminal: watch -n60 -- kill -USR1 $(pgrep dd)
(see http://www.commandlinefu.com/commands/view/4356/output-stats-from-a-running-dd-command-to-see-its-progress)