5 file types and attribute symbols of linux system

The five file types and their attribute symbols of the
Linux system are common in the Linux file types:
(1) ordinary files: the symbol is-
(2) the directory file: the symbol is d
(3) the character device file: the symbol is c
(4) the block Device file: symbol is b
(5) symbolic link file: symbol is l

Prerequisites:
partition fidisk

—1, create a physical volume
pvcreate / dev / sdb1
----- 1.1 view physical volume
a, view pvdisplay / dev / sdb1
b in detail , view overview pvs / dev / sdb1
---- 2, create volume group
vgcreate vg01 / dev / sdb1
----- 2.1 View volume group
a, view vgdispaly vg01
b in detail , view overview vgs vg01
---- 3, create logical volume
lvcreate -L 200M -n lv02 vg01
------ 3.1 view logic Volume
a, detailed view lvdisplay / dev / vg01 / lv01 or lvdisplay / dev / mapper / vg01-lv01
b, view overview lvs / dev / vg01 / lv01 or lvs / dev / mapper / vg01-lv01
---- 4, format of
mkfs -t ext4 / dev / vg01 / lv01
or
mkfs.ext4 / dev / vg01 / lv01
-5, mount
Mount / dev / vg01 / lv01 dir4
-6, extended LV
the lvextend -L + 200M / dev / vg01 / lv01
—7, delete lv
lvremove / dev / vg01 / lv01

发布了8 篇原创文章 · 获赞 1 · 访问量 389

Guess you like

Origin blog.csdn.net/weixin_42064000/article/details/101474610