Linux常用命令(二)


#fdisk -l   显示分区列表
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0x96e93c5b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      102400   de  Dell Utility
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        1926    15360000    7  HPFS/NTFS
/dev/sda3            1926        7132    41818112    7  HPFS/NTFS
/dev/sda4            7132       60802   431104000    f  W95 Ext'd (LBA)
/dev/sda5            7132       20007   103422976    7  HPFS/NTFS
/dev/sda6           20008       41807   175102976    7  HPFS/NTFS
/dev/sda7   *       41807       45723    31459328   83  Linux
/dev/sda8           45724       60345   117442560   83  Linux
/dev/sda9           60345       60801     3661824   82  Linux swap / Solaris

#df   查看挂载点
文件系统             1K-块      已用      可用 已用% 挂载点
/dev/sda7             30962748   4199640  25190144  15% /
tmpfs                   923908        36    923872   1% /dev/shm
/dev/sda8            115594272  11249116  98473028  11% /home
/dev/sda5            103422972  70400760  33022212  69% /windows/winD
/dev/sda6            175102972 157955588  17147384  91% /windows/winE

#lsof  /windows/winD   列出打开的文件或目录
COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
soffice.b 3349  tom   32uW  REG    8,5    20480 54897 /windows/winD/ziliao.doc

#dig www.google.com    用dig查询DNS服务器

#mount -t ntfs-3g  /dev/sdc3   /mnt   挂载分区
#umount  /mnt   卸载分区


你可能感兴趣的:(linux,user,command,dell,disk,DNS服务器)