Tag terminal
Capturing whole packet with tcpdump for analysis with wireshark
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 -nn Don’t convert protocol and port numbers etc. to names either. -vv Even more verbose output.
Decompress all files in a Windows installation
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: > cd \ > compact /u /s /a /q /i *.*
Show all files in OS X’s finder
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 finder to show all files, just type the following into a terminal: defaults write com.apple.Finder AppleShowAllFiles YES