Linux/Ubuntu Cheatsheets

APT-GET COMMAND

sudo apt-get install program-name

SERVICE COMMAND

sudo service service_name status
sudo service service_name stop
sudo service service_name start

INTERFACE CONFIGURATION FILES

sudo vi /etc/network/interfaces

RESTART NETWORK SERVICE

sudo /etc/init.d/networking restart

SOFTWARE SHOULD BE INSTALLED

sudo apt-get install openssh-server

DETECT NETWORK CARD

sudo sudo lshw -C network
ifconfig -a
sudo ifconfig network_name up

RELEASE/RENEW IP ADDRESS

sudo dhclient -r
sudo dhclient network_interface

GET INTERNET IP ADDRESS

echo $(wget checkip.dyndns.org -q -O -)

Comments are closed