What is the command to display the disk space usage the current directory excluding the size of subdirectories
Answers
Answered by
1
Answer:
I want to write a command to display the disk space usage the current directory excluding the size of subdirectories. The following image describes the files and directories of the current directory:
tree diagram of three files with one subdirectory which contains three more files.
du ./ --exclude='./file*'
output will be :
4 ./dir1
4 .
I am getting first output but not second
Answered by
1
Answer:
du -Sd 1
Explanation:
none
Similar questions