![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
liujiao1990
这个作者很懒,什么都没留下…
展开
-
Linux常用命令
统计行数: wc -l file 如:cat file | wc -l 统计单词数: wc -w file cat file | wc -w 统计字符数: wc -c file cat file | wc -c 打印最长行的长度: wc file -L 调试shell文件命令:sh -x 文件名 linux 打包及解压打包命令...原创 2015-03-10 16:23:54 · 74 阅读 · 0 评论 -
四种列出当前路径下的目录的方法
四种列出当前路径下的目录的方法: ls -d */ (打印目录) ls -F | grep "/$" (过滤那些以/$作为行尾标记的输出项) ls -l | grep "^d" (ls -l 输出的每一行的第一个字符表示文件类型。目录的文件类型字符是“d”,因此过滤以“d”起始的行) find . -type d -maxdepth 1 -print (指定ty...原创 2015-03-10 16:24:45 · 509 阅读 · 0 评论