File: Steve/Courses/2014/s2/its332/ubunturef.tex, r3455
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 directory | pwd |
| Description | Ubuntu | Windows |
| Network interface configuration | ifconfig | ipconfig |
| Test network connectivity | ping | ping |
| Test network route | tracepath | tracert |
| 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 | wireshark | Wireshark |
| Enable network interface | ifup | - |
| Disable network interface | ifdown | - |
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/default | Configuration for Apache web server |
| /var/lib/dhcp3/dhclient.X.leases | DHCP IP address leases |
| /etc/dhcp3/dhclient.conf | DHCP configuration |