In Linux, you will often see the file size, which is usually used by the command du:The command is explained in detail below:[Email protected] logs]$ du--helpUsage: du [options] ... [File] ...Or: du [options] ...--files0-from=fCalculate the disk
Du-ah--max-depth=1 This is what I want. A indicates that all files and folders (excluding subdirectories) are displayed in the directory, and H means that the max-depth represents the depth of the directory in a way that humans can read.
The du
Du-ah--max-depth=1 This is what I want. A indicates that all files and folders (without subdirectories) are displayed in the directory, and H represents the depth of the directory in a way that humans can understand, max-depth.The du command is used
Du-ah--max-depth=1 This is what I want the result of a means displays all files and folders (without subdirectories) in the directory, and H represents the depth of the directory in a way that humans can understand. max-depth. The du command is used
1, the Linux file attributes;
The properties of a Linux file or directory mainly include: The node of the file or directory, the type, the permission mode, the number of links, the users and user groups, the time of the most recent visit or
First, introduceTwo basic typical applications of binary tree in this paper are:1) Output all file names (can have subfolders) under a folder---with the first order traversal implementation2) Count the size of a folder (the size of all the files in
Alarm when disk exceeds size#df View the first-level directory size, usage scale, file system mount point. The file size cannot be displayed. Statistics block usage.#du View the size of the file and the directory. Statistics file size added. If a
du [-ABCDHHKLMSSX] [-l ][-x ][--block-size][--exclude=][--help][--version][directory or file]Common parameters:-A or-all displays disk usage for each specified file, or displays the respective disk usage for each file in the directory.-B or-bytes
A few common concepts about the Linux directory
PathThe description mechanism of the file location information refers to a path from a directory hierarchy in the tree directory to a file within it, and is divided into relative paths and
Details the php file directory base operation,
We know that the temporary declaration of the variable is stored in memory, even if it is a static variable, the script will be released after the run, so, want to persist the contents of a variable,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.