- 论坛徽章:
- 13
|
- $ find / -type f -size +1G # 遍历整个文件系统找出文件大小超过1G的文件
复制代码-
- -type t
- True if the file is of the specified type. Possible file types
- are as follows:
- b block special
- c character special
- d directory
- f regular file
- l symbolic link
- p FIFO
- s socket
复制代码
- -size n[ckMGTP]
- True if the file's size, rounded up, in 512-byte blocks is n. If
- n is followed by a c, then the primary is true if the file's size
- is n bytes (characters). Similarly if n is followed by a scale
- indicator then the file's size is compared to n scaled as:
- k kilobytes (1024 bytes)
- M megabytes (1024 kilobytes)
- G gigabytes (1024 megabytes)
- T terabytes (1024 gigabytes)
- P petabytes (1024 terabytes)
复制代码 |
|