Appendix C
Ubuntu Reference Material

File: Steve/Courses/2014/s2/its332/ubunturef.tex, r3455

C.1 Commands

Table C.1 lists some of the general Ubuntu commands. Table C.2 lists some of the important networking commands, as well as their verison on Windows. Use man to see a detailed description of commands on Ubuntu.




Description Ubuntu




List files in directory ls
Change directory cd
Copy a file cp
Rename/move a file mv
Delete/remove a file rm
Create/make a directory mkdir
Delete/remove a directory rmdir
Display a file less or cat
Display current working directorypwd



Table C.1: General Ubuntu commands





Description Ubuntu Windows






Network interface configurationifconfig ipconfig
Test network connectivity ping ping
Test network route tracepathtracert
Routing table configuration route route
Network statistics netstat netstat
ARP tables arp arp
DNS (simple) host nslookup
DNS (medium) nslookup nslookup
DNS (detailed) dig nslookup
Capture and view traffic wiresharkWireshark
Enable network interface ifup -
Disable network interface ifdown -




Table C.2: Important Ubuntu networking commands

C.2 Files and Directories

Table C.2 lists commonly accessed files and directories for the course. For some of these files, you can view a detailed description and format specification via the man pages, e.g. man hosts, man interfaces.




File Description




/etc/hosts Local domain names
/etc/resolv.conf Local DNS server
/etc/network/interfaces Network interface information
/proc/sys/net/ipv4/ip_forward IP forwarding is on (1) or not (0)
/etc/apache2/sites-available/defaultConfiguration for Apache web server
/var/lib/dhcp3/dhclient.X.leases DHCP IP address leases
/etc/dhcp3/dhclient.conf DHCP configuration



Table C.3: Important Ubuntu files and directories