|
Canada-NB-MIRAMICHI Azienda Directories
|
Azienda News:
- Do symbolic links actually make a difference in disk usage?
However, when I check the disk usage of a folder in which there are symbolic links, there's a mismatch between what my file manager says and what du reports However, if I type du -L ( -L, --dereference; dereference all symbolic links from the man page), the output of du -L and the size that my file manager reports are the same
- du: Follow symlinks if symlink points to outside directories . . .
I wonder whether there's some rather simple shell incantation to calculate the disk usage of a directory (using the du command) but with the following requirements: symlinks that point to files subdirectories inside the directory should not be followed, but symlinks to outside files subdirectories should Or whether I need to do some scripting
- du Command - IBM
If a symbolic link is specified on the command line, the du command shall count the size of the file or file hierarchy referenced by the link Calculates the block count in 1024-byte units rather than the default 512-byte units Allocates blocks evenly among the links for files with multiple links
- du invocation (GNU Coreutils 9. 7)
Apparent sizes are meaningful only for regular files and symbolic links Other file types do not contribute to apparent size Scale sizes by size before printing them (see Block size) For example, -BG prints sizes in units of 1,073,741,824 bytes Equivalent to --apparent-size --block-size=1
- du - estimate file space usage - Open Group
If a symbolic link is specified on the command line or encountered during the traversal of a file hierarchy, du shall count the size of the file or file hierarchy referenced by the link -s Instead of the default output, report only the total sum for each of the specified files
- du(1p) — Linux manual page - man7. org
By default, when a symbolic link is encountered on the command line or in the file hierarchy, du shall count the size of the symbolic link (rather than the file referenced by the link), and shall not follow the link to another portion of the file hierarchy The size of the file space allocated to a file of type directory shall be defined as the
- symlink - Behavior of `du` command with `-L` flag - Unix . . .
du will not follow symbolic links unless the -L option is enabled A hard link on the other hand, is basically one file existing in two (or more) folders du presumably tracks which files it has seen by inode number to avoid counting these twice
|
|