美文网首页LinuxLinux学习之路我用 Linux
liunx shell 常用命令--基础篇(二) -- 持续更新

liunx shell 常用命令--基础篇(二) -- 持续更新

作者: 平凡拒绝平庸 | 来源:发表于2017-04-06 20:27 被阅读0次

    liunx shell 常用命令

    进入某目录

    cd/usr/local

    查看当前目录有哪些文件和文件夹

    ls

    查看指定文件的权限信息

    ls-ltest.txt

    为某文件添加可写权限

    chmod+wtest.txt

    取得root权限,输入密码

    sudo-s

    编辑某文件

    vitext.txt

    编辑时按i进入输入模式,按esc退出输入模式 编辑文件之后

    #退出:q#保存:w#强制退出:q!同理强制保存:w!保存并退出:wq

    hosts文件路径 /etc/hosts

    profile文件路径 /etc/profile

    bashrc文件路径 /etc/bashrc

    相关文章

      网友评论

        本文标题:liunx shell 常用命令--基础篇(二) -- 持续更新

        本文链接:https://www.haomeiwen.com/subject/mbqqattx.html