美文网首页
Linux command

Linux command

作者: 不知道的是 | 来源:发表于2018-09-21 22:49 被阅读0次

    pwd

    The directory you are standing in is called the working directory. To find the name of the working directory, use the pwd command.

    linux_command_pwd.gif

    ls

    To list the files in the working directory, use the ls command.

    linux_command_ls.gif

    cd

    cd /usr
    cd /usr/bin

    cd ..
    ".." notation refers to the working directory's parent directory

    cd ./bin
    cd bin

    command_01.gif

    http://www.linuxcommand.org/lc3_lts0020.php

    直接进入某个目录

    cd ~/directoryName

    linux_command_waveLine_slash.gif

    https://zhidao.baidu.com/question/181421264.html

    删除目录

    rm -rf directoryName

    linux_command_rm_-rf.gif

    读取文件内容

    cat fileName

    linux_command_cat.gif

    Show All Running Processes in Linux

    https://www.cyberciti.biz/faq/show-all-running-processes-in-linux/

    How do I edit files on the command line

    To open the file, run

    vi /path/to/file
    

    Press i to enter the Insert mode.

    To leave the Insert mode press ESC.

    To delete the character that is currently under the cursor you must press x

    If you haven't made any changes, press :q to leave the file (but you must not be in Insert mode).

    If you have made changes, but want to leave the file without saving the changes, press :q! (but you must not be in Insert mode).

    https://www.howtoforge.com/faq/how-to-edit-files-on-the-command-line

    https://www.computerworld.com/article/2598082/linux/linux-linux-command-line-cheat-sheet.html

    相关文章

      网友评论

          本文标题:Linux command

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