Command Line 1

Posted 阿难的机器学习计划

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Command Line 1相关的知识,希望对你有一定的参考价值。

1. PWD shows the current folder you are working on.

2. Type cd / to go to the root dictionary.

3. Absolute route (cd /home/dq) vs. relative path (cd home).

4. Type whoami to check the current username.

5. Type cd ~ to go back to the user folder.( home directory)

6. Type mkdir test to create a test folder in the current directory.

7. -v is an opinion of a command, and the function is to show the detail of the command.

8. mkdir --help is to understand all the possible opinions of mkdir

9. ls is to show all the directory, ls -l is to show all the detailed directory.

10. We use rmdir to delete the dirtectory.

11. touch test.txt is to create a file named test.txt. touch command can also updata/modify files.

12. 

 

以上是关于Command Line 1的主要内容,如果未能解决你的问题,请参考以下文章

Shell case esac语句

shell的case-esac

Shell基础学习 流程控制

Shell编程

Shell 流程控制 if while for

6.case