Dummy questions about how to get the size of a directory by command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Dummy questions about how to get the size of a directory by command
# 1  
Old 05-15-2006
Dummy questions about how to get the size of a directory by command

Hi,
'ls -ld' is no use ....
I want to get the total size of a directory.
Any advice?

Thanks in advance!
# 2  
Old 05-15-2006
man on df. I guess size can be determined by df <dir_name>
# 3  
Old 05-15-2006
No such format by df, df isn't used for directory but device instead
# 4  
Old 05-15-2006
Man the du command
# 5  
Old 05-15-2006
Code:
du -sk /dirpath

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

2. UNIX for Dummies Questions & Answers

Command to list our directory size

Is there any command that can list out all the files size including directory in 1 command? `ls` will only give 2048 for a directory, which i'm looking for the actual size. (5 Replies)
Discussion started by: lsy
5 Replies

3. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

4. UNIX for Dummies Questions & Answers

Unix command for a dummy... where do i start?

I have never used Unix before and only heard of it at the start of the week. But ny new job requires me to use the Unix/Linux command, and i need an introduction for a total beginer... are there any intro videos or books you would recomend? :confused: (2 Replies)
Discussion started by: tomvcarter
2 Replies

5. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

6. Shell Programming and Scripting

command to reduce size of file/directory???

Hello, I want to compress any given file or directory. I used 1)gzip 2)zip But when I do "ls -l". I found that the zipped file is in fact greater in size than the original file. Can you please tell me the commands which will show me the difference in its size. (2 Replies)
Discussion started by: nsharath
2 Replies

7. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

8. UNIX for Dummies Questions & Answers

more questions froma a dummy

thanks all fro your help on my last question my Unix class is officially my least favorite :( as I am not sure I will ever get it :confused: :eek: . okay so I have a couple more these may seem basic but I had never heard of UNIX untill last week when classes started. first of what does the tty,... (2 Replies)
Discussion started by: cinnamonbear
2 Replies

9. UNIX for Dummies Questions & Answers

Dummy Questions

NOT IN USE, IGNORE (8 Replies)
Discussion started by: slayer666
8 Replies

10. Shell Programming and Scripting

Dummy questions about how to get the size of a directory by command

Hi, 'ls -ld' is no use .... I want to get the total size of a directory including subdir. Any advice? Thanks in advance (2 Replies)
Discussion started by: GCTEII
2 Replies
Login or Register to Ask a Question