常用命令:
1、目录管理类命令:
ls、dir、cd、pwd、clear
2、帮助类命令
man、info、--help、/usr/share/man/man*
3、文件管理类命令:
mkdir、rm、touch、cp、mv
4、权限控制类命令:
chmod、chown
5、显示文件内容类命令:
cat、tac、head、tail、more、less
6、重启和关机命令:
reboot、shutdown、init、poweroff、halt
7、查找类命令:
find、locate、slocate、whereis、which
8、打包压缩类命令
tar、gzip、bzip2
9、磁盘管理类命令
fdisk、df、du、free
10、磁盘使用类命令
mount、umount、/etc/fstab
[root@Centreon /]# fdisk -l
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c3bac
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 2611 20458496 8e Linux LVM
Disk /dev/mapper/VolGroup-lv_root: 18.8 GB, 18798870528 bytes
255 heads, 63 sectors/track, 2285 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@Centreon /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
18G 2.1G 15G 13% /
tmpfs 506M 0 506M 0% /dev/shm
/dev/sda1 485M 31M 429M 7% /boot
[root@Centreon /]#