Thursday, October 23, 2014

TCP and UDP traceroute options

I found this blog entry that details how to use the regular Linux traceroute command for UDP or TCP tracerouting.

ICMP (the default, so -I not needed)
   $ traceroute -I www.microsoft.com  


UDP
   # traceroute -U www.microsoft.com 


TCP
   # traceroute -T -p 80 www.microsoft.com 

Saturday, October 18, 2014

Find files owned or not owned by a user

Find all files owned by joe.baloney
$ find .  -user joe.baloney -print
Find files NOT owned by joe
find . \! -user tward -print

Wednesday, October 8, 2014

Getting detailed device information with udevadm

The following command outputs info about the device specified as well as any other devices in the chain (e.g. USB controllers etc...)

udevadm info --attribute-walk --name=/dev/sda