Political Science, asked by raghunathraj826, 4 months ago

What is the command to display the disk space usage the current directory excluding the size of subdirectories

Answers

Answered by haresh200910
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 sahuhimanshu0198
1

Answer:

du -Sd 1

Explanation:

none

Similar questions