Some Useful Ubuntu Commands

Here’s a useful guide for some IT people that are getting into Linux, and more specifically Ubuntu.

Basically, it’s a reference for Windows users to do Linux-type commands. I’ll be adding to this page as time goes on.

Shell Commands

sudo -i set the command shell to have root privileges

Networking Commands

ifconfig shows network information (ipconfig in Windows)
ifdown eth0 && ifup eth0 restart your network adapter and get new IP address

System Commands

init 0 shutdown
init 6 reboot
dmesg print diagnostic messages from the kernel

Disk tools

df Show a summary of disk usage

Services
invoke-rc.d service restart Start / Stop a service
update-rc.d service defaults 99 Add service to startup scripts