misc linux commands

#remove folder and contents

  • sudo rm -rf <DirectoryName>

#interface settings DHCP

  • sudo nano /etc/network/interfaces

auto eth0

iface eth0 inet dhcp

#interface settings STATIC

  • sudo nano /etc/network/interfaces

auto eth0

iface eth0 inet static        

address 192.168.1.100

netmask 255.255.255.0        

network 192.168.1.0        

broadcast 192.168.1.255        

gateway 192.168.1.1       

dns-nameservers 192.168.1.1 8.8.8.8

#Free space on hard drive partitions

  • df -h
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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