df -h 硬盘空间按人性化显示
[goldce@localhost goldce]$ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/hdc2 72G 3.0G 65G 5% /
/dev/hdc1 99M 15M 80M 16% /boot
none 503M 0 503M 0% /dev/shm
w:显示登录到服务器上的用户列表
[goldce@localhost goldce]$ w
17:32:59 up 4 days, 18:33, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
goldce pts/0 203.187.171.218 5:19pm 0.00s 0.09s 0.00s w
where 查找文件
[goldce@localhost goldce]$ whereis tomcat
tomcat: /usr/local/tomcat5.0 /usr/local/tomcat
file 辨识文件类型
[root@localhost mysql_bak]# file backup_zhi8.sh
backup_zhi8.sh: Bourne-Again shell script text executable
[goldce@localhost goldce]$ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/hdc2 72G 3.0G 65G 5% /
/dev/hdc1 99M 15M 80M 16% /boot
none 503M 0 503M 0% /dev/shm
w:显示登录到服务器上的用户列表
[goldce@localhost goldce]$ w
17:32:59 up 4 days, 18:33, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
goldce pts/0 203.187.171.218 5:19pm 0.00s 0.09s 0.00s w
where 查找文件
[goldce@localhost goldce]$ whereis tomcat
tomcat: /usr/local/tomcat5.0 /usr/local/tomcat
file 辨识文件类型
[root@localhost mysql_bak]# file backup_zhi8.sh
backup_zhi8.sh: Bourne-Again shell script text executable