df  查看磁盘占用空间  后可接 -h -m -k  分别表示相同大小不同类型的占用状态  -i  以inodes的形式来表示占用情况

du 查看文件或文件夹占用空间(block),常用参数 -s -h

mkfs .etx4 格式化  mke2fs  相对比mkfs可支持的参数更多一些。

UUID 分区的唯一标识。blkid可查看分区的uuid和分区类型。可用uuid来作为分区挂在目录,保持稳定性。

lvm2  是lvm磁盘管理命令包,可通过yum安装

partprobe 刷新磁盘分区信息 新版用partx -a


VIM +100  编辑时光标直接移动到数字的行数

命令模式下输入 set nu 显示行号    set nonu取消显示行号

一般模式下的 hjkl 是单字符光标移动

ctrl+b  crtl +f 上下翻页

$和^ 分别是当前行行首行尾

G   g 分别是文件首行和末行

X   x 删除字符 ,等同于delete和backspace

yy 复制当前行  p 在下一行粘贴   P在上一行粘贴  u撤销操作  ctrl r  恢复

v  V 选择 当选择后 d 剪切


切换到/查找界面后,按n匹配下一个查找项。 ?向上查找。

1,100s/if/ifs/g   从1行到100行替换if为ifs    如果不加g只替换每行的第一个if

1,$s/if/ifs/g   全部文档替换 。替换时,#或者@可以代替/  避免出现/路径时混淆


nohl 取消高亮状态

ctrl z 临时退出  jobs查看 然后fg恢复。





5 条评论

  1. Spot on with this write-up, I truly believe that this amazing
    site needs much more attention. I’ll probably
    be returning to read more, thanks for the advice!

  2. guardianship services

    Only, then it may be provided to the little kids, to provide freedom from varied types
    of diseases. MAPS not just treats children in distress with delicate care but concerns the pain sensation and anxiety of the parent dealing with a child under chronic condition. Her chiropractor performed low amplitude, high
    velocity manipulation over the 3 spinal locations and almost 1.

  3. weight loss routine

    Since nine calories is situated in 1 gram of fat, you will
    have to consume 44 to 66 grams on a daily basis to the
    average person. From the simple plastic or wooden constructions that young kids can ride
    on, to pull or push toys that toddlers would enjoy to ride on, to motor-driven riders and miniaturized versions of popular car brands
    and makes which are favored by young children, ride-on toys
    would always be a part of any child’s playtime menagerie.

    It is not uncommon for an orphan to undergo various therapy sessions having a psychologist.

  4. – Ha!. In prima reteta din carte este nevoie de high methoxyl confectioner's pectin, acid malic si nitrogen lichid. Noroc ca le am pe toate in camara ca eu colectionez asa ceva :). S-a terminat cu The French Loundry!. Ma apuc de asta 🙂

  5. Gabby

    Some really insightful inrmtoafion! I wonder what sort of social media sites she uses to keep up to date with her favorite comics. I know Facebook seems determined to put as many barriers as possible between creators and fans these days.