Capturing the hole packet on your NIC for later analysis with wireshark
tcpdump -nnvvXSs 1514 -i em0 -w /tmp/em0.dumptcp
Will capture 1514 bytes of all packets on interface “em0” and dump it to the file “/tmp/em0.dumptcp”. You can then import the file into wireshark for analysis.
Explanation of Parameters
Text below is copied from tcpdump man page
To decompress/uncompress all files in a Windows installation just open a terminal window by pressing cmd+r, type “cmd” and press enter. Now you can start the uncompressing of your files:
compact /u /s /a /q /i *.*
Get a list of installed mass storage devices with FreeBSD
egrep ‘ad[0-9]|da[0-9]|cd[0-9]|acd[0-9]’ /var/run/dmesg.boot
ad -> IDE HDD
da -> SCSI HDD
cd -> IDE CD/DVD
acd-> SCSI CD/DVD
Here’s an example output:
da0 at ciss0 bus 0 scbus0 target 0 lun 0
da0: Fixed Direct Access SCSI-5 device
da0: 135.168MB/s transfers
da0: Command Queueing enabled
da0: 139979MB (286677120 512 byte sectors: 255H 32S/T 35132C)
If you want to know the current network bandwith usage on a FreeBSD host, this will help you.
- systat -ifstat 1
/0 /1 /2 /3 /4 /5 [...]
By default the finder in OS X does not show all the files. You can still see the files if you use a terminal and type
$ ls -la
but sometimes you may need the finder to point to a particularly file. e.g. you want to load a hidden file in to an application. To force […]
If you have an office with loads of linux computers, it might be useful to have a local repository to save bandwidth on you local wan. But a local repository needs to be up-to-date and it’s hard to decide which packages should be mirrored. If you want to have a good and useful mirror you’ll […]
The following shortcuts can be used to take screenshots with OS X.
Take a screenshot of the full screen and save it as a PNG file on the desktop
Select a specific part of your screen to take a screenshot. The picture is saved as a PNG on your desktop
Click on a window […]
If you’re like me: a big TV series fan living outside US, its sometimes quiet annoying, to get you’re favorite TV series in a legal way.
The only solution I found so far is, to buy US iTunes gift cards online and create a US iTunes store account.
Configure iTunes is quiet easy, just change the […]
Howto converting UNIX timestamp into readable format using bash.
$ date -j -f “%s” 1299452400
Mon Mar 7 00:00:00 CET 2011
Get current UNIX timestamp
$ date -j +%s
If you are just interessted in the Ubuntu version then type
gives you an output like this:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
If you like to now the kernel version then type
Linux myhostname […]