![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UNIX
oldnewhand
这个作者很懒,什么都没留下…
展开
-
我的常用 linux 命令
1) 在linux下如何查看文件 夹大小 进入文件夹里面 du -h 查看每一个文件的大小 or du -sh 文件夹名 查看当前文件夹大小 单位是K/M/G, h-human readable or du -ks 查看当前所在文件夹大小 du -ks 文件夹名 查看当前指定文件夹大小 2)...2009-09-30 16:37:17 · 92 阅读 · 0 评论 -
UNIX下用Java 代码调用一个shell command 并取得执行结果
public class Test { public static void main(String[] args) throws Exception { try { //execute shell command: df -k . Process fileSystemDfInfo = Runtime.getRuntime().exec("df -k .");...2009-08-25 10:22:16 · 143 阅读 · 0 评论