Linux 命令行工具:df 和 du
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3791399/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Linux command line tools: df and du
提问by dvanaria
What are these abbreviations for? Disk space Free? Disk Usage?
这些缩写是什么意思?磁盘空间 空闲?磁盘使用情况?
采纳答案by Alex Howansky
That's generally how most people think of them, yes, but note that unix commands aren't necessarily abbreviations. They're simply intended to be short and quick to type. If that can be done in a manner that closely preserves the name, bonus.
这通常是大多数人对它们的看法,是的,但请注意,unix 命令不一定是缩写。它们只是为了简短而快速地打字。如果这可以以紧密保留名称的方式完成,则奖金。
回答by jhartz
http://en.wikipedia.org/wiki/Df_(Unix): df (abbreviation for disk free) is a standard Unix computer program used to display the amount of available disk space for filesystems.
http://en.wikipedia.org/wiki/Df_(Unix): df(disk free 的缩写)是一个标准的 Unix 计算机程序,用于显示文件系统的可用磁盘空间量。
http://en.wikipedia.org/wiki/Du_(Unix): du (abbreviated from disk usage) is a standard Unix program used to estimate the file space usage—space used under a particular directory or files on a file system.
http://en.wikipedia.org/wiki/Du_(Unix):du(磁盘使用率的缩写)是一个标准的 Unix 程序,用于估计文件空间使用率——特定目录下使用的空间或文件系统上的文件。
回答by Jonathan Leffler
- df = disk free
- du = disk usage
- df = 磁盘空闲
- du = 磁盘使用率
The general purpose of these utilities should be available in the man pages:
这些实用程序的一般用途应该在手册页中可用:
man du df
(if you have man pages installed!) Having said that, on Linux, the man pages say:
(如果您安装了手册页!)话虽如此,在 Linux 上,手册页说:
- du - estimate file space usage
- df - report file system disk space usage
- du - 估计文件空间使用情况
- df - 报告文件系统磁盘空间使用情况
which isn't as helpful as all that.
这没有那么多帮助。
OTOH, the Unix Version 7 manual pages said:
OTOH,Unix 版本 7 手册页说:
- df – disk free
- du – summarize disk usage
- df – 无磁盘
- du – 总结磁盘使用情况