You are not logged in or registered. Please login or register to use the full functionality of this board...



Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to display file and folder sizes in CentOS
07-07-2011, 07:14 PM
Post: #1
how to display file and folder sizes in CentOS
Type the following command to show file sizes:

Code:
du -h --max-depth=1


This command will list the files and folders in the current directory as well as show the complete size of the folders and files.

e.g.

[root@server var]# du -h --max-depth=1
76K ./qmail
7.5G ./www
4.0K ./local
4.0K ./tmp
116K ./run
4.0K ./games
681M ./log
4.0K ./opt
212K ./named
160K ./cache
4.0K ./preserve
8.0K ./db
24K ./lock
4.0K ./yp
217M ./lib
12K ./empty
248K ./spool
4.0K ./nis
8.4G .
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)