Linux小蜗牛

cd 的用法

  • cd 切换到~目录
  • cd . 切换到当前目录
  • cd .. 切换到上级目录‘
  • cd – 切换到上次所在的目录
  • cd / 切换到根目录
  • cd /data 切换到/data目录下

pwd 用法

  • [root@oldboyboy data]# pwd
    /data
    [root@oldboyboy data]#

grep 的用法
参数 : -v -E -o -n

  • grep -n 显示文件内容的行号
    《Linux小蜗牛》
  • grep -v 排除文件某些字符
    《Linux小蜗牛》
  • grep -E 连续匹配多个字符
    《Linux小蜗牛》
  • grep -o 只输出匹配的字符
    《Linux小蜗牛》
    原文作者:qq5d1737ef59f09
    原文地址: https://blog.51cto.com/14423146/2445249
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞