![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux命令
明教教主张无忌
这个作者很懒,什么都没留下…
展开
-
linux下使用 du查看某个文件或目录占用磁盘空间的大小
du命令用来查看目录或文件所占用磁盘空间的大小。常用选项组合为:du -sh 查看当前文件夹的大小 一、du的功能: `du` reports the amount of disk space used by the specified files and for each subdirectory (of directory arguments). withno argum原创 2017-03-21 19:54:09 · 46074 阅读 · 0 评论 -
Linux 两台机器 传递文件
将文件从一台机器复制到另一台上: scp -r ./demo/ 10.10.###.###:/opt/demo/ 表示将本机上demo目录下的文件复制到10.10.###.###机器上的/opt/demo目录下原创 2017-03-27 14:27:51 · 286 阅读 · 0 评论 -
Linux下查看一个应用的多少线程数量
1.根据进程号进行查询: pstree -p 进程号 top -Hp 进程号 2.根据进程名字进行查询: pstree -p ps -e | grep server | awk '{print $1}' pstree -p ps -e | grep server | awk '{print $1}' | wc -l原创 2017-05-22 10:00:46 · 1628 阅读 · 0 评论