一、explainshell.com网站作用简介
通过网址explainshell,我们进入这个网站,如下图,可以看到这个类似搜索页面的网页,可以通过里面空白栏输入需查看的bash命令行指令,查看其解释。

二、使用explainshell.com查询bash指令
可以通过输入以下常用的bash指令来熟悉下explainshell网站
1、指令ls,解释是list directory contents,意思是罗列文件夹目录;

2、指令cat,解释是concatenate files and print on the standard output,表示cat指令为连接文件和将文件标准输出,大概意思是表示cat的两个功能分别为连接文件、将文件的完整代码信息输出;

3、指令mv,解释为move (rename) files,意思为移动(重命名)文件;

4、指令touch,解释为change file timestamps,意思是更新文件的时间戳记,也可以用来创建一个新文件。

命令行的掌握,需要经常的使用,如果不懂命令行的意思,可会事半功倍,收藏网站explainshell作为自己的源代码手册,不定什么时候会用上。
网友评论