Basic Ubuntu Commands

Posted under » Ubuntu » Linux on 30 September 2009

Super user

sudo su -

Find out the processes

ps -elf | less

Find out Systems configuration
memory, firmware version, mainboard, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or EFI (IA-64) systems

lshw

Find out open ports

netstat

MySql

/etc/init.d/mysql stop
/etc/init.d/mysql start //or
service mysql start

See also Apache MySQL restart stop in Ubuntu and Redhat

apt-get
To update ubuntu

apt-get update
apt-get upgrade
apt-get dist-upgrade

dist - newest versions possible as per version requirements of dependencies

To install

apt-get install apache2
apt-get install openssh-server
apt-get install gparted 
apt-get install libcgi-session-perl
apt-get install bzr
apt-get install libqt3-mt

See also Install LAMP to Ubuntu

To uninstall

apt-get remove --purge python-mako

To reinstall

apt-get --reinstall install python-mako

aptitude
Quite similar to apt-get but this is more GUI driven and will list app on the menu.

aptitude install gftp 

For start, stop, restart apache in ubuntu, click here.

For Python related stuff, click here.


web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS