![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell基础
lijie19870626
这个作者很懒,什么都没留下…
展开
-
管道符 作业控制
[root@allen tmp]# ls |wc -l 8 #统计tmp目录下文件数量 [root@allen tmp]# find ./ -type f ./1.txt ./2.txt ./3.txt ./4.txt ./5.txt ./q.txt ./a.txt #把当前目录下所有文件列出来 [root@allen tmp]# find ./ -type f |wc -l 7 ctrl+z ...原创 2019-10-08 19:23:26 · 114 阅读 · 0 评论 -
变量
env 查看系统环境变量 set 显示系统变量 echo $PATH 系统的环境变量 自己也可以定义环境变量,首位不能为数字 [root@allen /]# a=123 [root@allen /]# echo $a 123 [root@allen /...原创 2019-10-09 18:39:27 · 94 阅读 · 0 评论