Monday, March 30, 2009

Ubuntu Admin Commands

Adding Users, Groups and Changing password

Adding the new created user to sudoer file

sudo useradd -d /home/admin -m admin

sudo gedit /etc/sudoers

Ubuntu Commands
cat /etc/issue : to check the current version of ubuntu

APT(Advance Packaging Tool) COMMANDS
apt-get update && apt-get upgrade -y (** Neeed to get the packages list and upgrade done before other apache files can be submittied)
**Some Other packaging commands which might be useful
apt-cache search

To search fro a particular keyword on all files and subdirectories use following command
grep -nr 'ServerName' /etc/apache2

Creating directories and subdirectories
mkdir -p public_html/{public,private,logs,cgi-bin,backup}
Check which ports are in use
netstat -ant : displays are listening ports

No comments:

Post a Comment