天津网站建设方案书,网站用户权限,猎头公司logo,app设计思路案例#1024程序员节#xff5c;征文# 1.命令说明 本文主要实验 linux 的两个命令#xff1a;mkdir -p 路径、 tee 创建文件。 命令#xff1a;mkdir -p 路径 说明#xff1a;该命令将自动创建路径下的目录及子目录#xff0c;结尾可以/ 也可以不带/#xff0c;默认都是建文…#1024程序员节征文# 1.命令说明 本文主要实验 linux 的两个命令mkdir -p 路径、 tee 创建文件。 命令mkdir -p 路径 说明该命令将自动创建路径下的目录及子目录结尾可以/ 也可以不带/默认都是建文件夹。 命令echo 内容 |tee 文件 说明在 Linux 中用于读取标准输入并将其内容输出到标准输出和文件。 2. 实验测试
2.1 实验创建层级目录 [sxnhtcappx-container performance]$ mkdir -p ./test/test1/test2 [sxnhtcappx-container performance]$ cd ./test/test1/test2 [sxnhtcappx-container test2]$ [sxnhtcappx-container performance]$ mkdir -p ./test/test1/test2/test3
[sxnhtcappx-container performance]$ cd ./test/test1/test2/test3
[sxnhtcappx-container test3]$ ll
总用量 0
[sxnhtcappx-container test3]$ mkdir -p ./test0/test1/test2/test3/
[sxnhtcappx-container test3]$ cd ./test0/test1/test2/test3/
[sxnhtcappx-container test3]$ ll 2.2 实验创建文件 [sxnhtcappx-container test2]$ echo -e hello\n|tee 1.txt hello [sxnhtcappx-container test2]$ printf hello2\n |tee 2.txt hello2 [sxnhtcappx-container test2]$