Melanjutkan tentang mini shell linux yang lalu.. Mini Shell how to (part 2)
sedikit banyak akan mengupas perintah shell untuk melihat / memastikan info system,resources,partisi di ubuntu linux
Let’s Started
- System infomation
uname -a
#info kernel/operating system/CPU
head -n 1 /etc/issue
#see the ubuntu version,same to cat /etc/issue
hostname
#hostname
lspci -tv
#me list semua – PCI devices
lsusb -tv
#me list semua - USB devices
lsmod
#list loaded kernel modes
env
#environment variable
- Resources
free -m
#melihat pemakaian memori dan swap
df -h
#pemakaian partisi
du -sh
#melihat ukuran direktori dalam M.
grep MemTotal /proc/meminfo
#Total Jumlah RAM
grep MemFree /proc/meminfo
#Jumlah memori yg tidak terpakai dari RAM
uptime
#system running time,users,load average
cat /proc/loadavg
#load average
- Disk and Partition
mount | column -t
#info mount tentang partisi
fdisk -l
#melihat semua partisi , membutuhkan root privilege
swapon -s
#melihat semua partisi swap
hdparm -i /dev/sda
#list disk info (hanya untuk IDE)
- Network
ifconfig
#melihat informasi IP’s
route -n
#melihat route tables
netstat -lntp
#list listening ports
netstat -antp
#list established links
- Process
ps -ef
#melihat semua proses yang berjalan
top
#list processes and usage of system resource
- User
id username
#list the user info.
last
#list login record
cut -d: -f1 /etc/passwd
#list all users
cut -d: -f1 /etc/group
#list all groups
crontab -l
#list scheduled tasks of current user
- Service
chkconfig --list
#list all services
chkconfig --list | grep on
#list all running services


tak kiro phpshell.heehehe