FTP命令来计算给定文件夹/路径占用的存储空间? [英] FTP command to calculate storage taken by a given folder/path?

查看:85
本文介绍了FTP命令来计算给定文件夹/路径占用的存储空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是FTP/Linux新手...

I'm a FTP/Linux newbie...

是否有一种快速的方法来计算指定的FTP目录(包括所有子目录)下的所有文件所占用的存储空间?

Is there a quick way to calculate the storage space taken by all files under a nominated FTP directory (including all sub directories)?

推荐答案

您可以通过以下命令获取当前使用的磁盘卷-

You can get current disk volume used by below command-

df -h

以下命令将给出当前目录中所有子目录的大小

Below command will give size of all sub directories in current directory

du -sh * .

这篇关于FTP命令来计算给定文件夹/路径占用的存储空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆