CentOSでshellコマンドをまとめ

1.fileコマンド
root@localhost startnews24 ~]# file -s /dev/sda1
/dev/sda1: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
[root@localhost startnews24v ~]# file -s /dev/sda2
/dev/sda2: LVM2 (Linux Logical Volume Manager) , UUID: hrsI8SGq5CAe8qsISHqQ5AG32ALynAM

2.mountコマンド
[root@localhost startnews24 ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

3.dfコマンド
[root@localhost startnews24 ~]# df -lhT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 ext3 285G 12G 259G 5% /
/dev/sda1 ext3 99M 12M 82M 13% /boot
tmpfs tmpfs 1010M 0 1010M 0% /dev/shm

4.fdiskコマンド
root@localhost startnews24 ~]# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 38913 312464250 8e Linux LVM

5.その他
cd /;du -sh *
[root@localhost test]# parted

Linux

Posted by arkgame