Tuesday, April 22, 2008

Linux command line reference for common operations.


ethtool eth0 --Show status of ethernet interface eth0

ip link --show List network interfaces

ip addr --show List addresses for interfaces

netstat -tupl --List internet services on a system

netstat -tup --List active connections to/from system

smbtree --Find windows machines. See also findsmb

nmblookup -A 1.2.3.4 --Find the windows (netbios) name associated with ip address

smbclient -L --windows_box List shares on windows machine or samba server

mount -t smbfs -o fmask=666,guest //windows_box/share /mnt/share --Mount a windows share

echo 'message' | smbclient -M windows_box --Send popup to windows machine (off by default in XP sp2)

No comments: