常用命令

<1>mount -n -o remount,rw /       解决只读问题

-n, --no-mtab
              Mount without writing in /etc/mtab.  This is necessary for example when /etc is  on  a
              read-only filesystem.

<2>sed -i '10s/old/new/' file.txt                  10:指行数

<3>sed删除某行=====>

c121 tmp # cat test
aa
bb
c121 tmp # sed -r -i '2d' test
c121 tmp # cat test
aa

<3>vim中选中多行后批量缩进=>V选中要缩进的行>     向右缩进一个tab

<4>linux find命令查找当前目录下7天前的文件但排除所有目录.                  find . -maxdepth 1 -mtime +7 -type f

原文地址:https://www.cnblogs.com/itcomputer/p/4618003.html