zoukankan      html  css  js  c++  java
  • 常用命令

    <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

  • 相关阅读:
    SVG的引入历程
    Webstorm的常用快捷键
    TypeScript
    Vue Router
    ISO8601
    html5语义化
    删除已有的 HTML 元素
    with(){}方法
    Jquery学习笔记
    css权值问题
  • 原文地址:https://www.cnblogs.com/itcomputer/p/4618003.html
Copyright © 2011-2022 走看看