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 post 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

ifconfig eth0 192.168.99.14 netmask 255.255.255.0 up change your IP address

route add default gw 192.168.99.254 set the default gateway

System Commands

init 0 shutdown

init 6 reboot

dmesg print diagnostic messages from the kernel

Disk tools

df Show a summary of disk usage

du Show a directory tree space usage (some nice modifiers in this :) )

Services

invoke-rc.d service restart Start / Stop a service

update-rc.d service defaults 99 Add service to startup scripts

Flash

sudo dpkg-reconfigure flashplugin-installer Reinstall Adobe Flash

Related posts:

  1. Install vim on an Ubuntu server and desktop I’ve grown quite fond of vim over the past couple...
  2. Move a print job from one queue to another in Linux Today, I was looking at my printer queue and realised...
  3. Mount a Webdav folder in Ubuntu Linux Webdav is a very handy protocol for writing files back...
  4. TrueCrypt Autorun Script for USB You can easily create an Autorun file on a USB...
  5. No More Lost Deleted Files in Ubuntu I had a shocking error of judgement this morning when...

Related posts brought to you by Yet Another Related Posts Plugin.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>