RSS

General Command Ubuntu

18 Jun

$ sudo passwd root : Change root password

$ sudo shutdown -h now : shutdown

Configure Network Interface Using Command-Line

sudo vi /etc/network/interfaces

# The primary network interface – use DHCP to find our address
auto eth0
iface eth0 inet dhcp

# The primary network interface

auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

sudo /etc/init.d/networking restart

Restart Apache Server

sudo /etc/init.d/apache2 restart


Copy, Move and Rename
cp file file2 copy file
rm file1 file2 - rename
rm file1 dir/file1 - move file
Advertisements
 
Leave a comment

Posted by on June 18, 2010 in General

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: