Linux commands for website admins


Use PUTTY and set its default encoding to UTF-8

Hardware/Software information:
/proc/cpuinfo : processor
/proc/meminfo : memory
/etc/redhat-release
/etc/fedora-release
/etc/debian-release
w : active users
uptime : since when the system has been turned on
top : running processes
free -m : memory
uname - a : kernel version
/etc/sysconfig/i18n must be LANG=”en_US.UTF-8″ for English localization
set - set shell environment variables

Networking
netstat -a : network connections
iptables -L : firewall settings list
ifconfig : network cards list

Directories/files
pwd : shows current working directory
du -sh : shows the directory size
passwd : change the default root password
yum install mc : to install mc
df -h : shows hard drive partitions

Apache
service httpd status : apache working status
apachectl configtest : test apache configuration
dig google.com : check whether the site is reachable

Working with archives:
rpm -ihv filename.rpm : install packages
tar -czvf filename.tar.gz : archiving
tar -xzvf filename.tar.gz : extracting
dpkg -i filename.deb : installing

0 коментара: