Sponsored Content
Full Discussion: size of a directory
Top Forums Programming size of a directory Post 56871 by collins on Wednesday 13th of October 2004 05:37:43 PM
Old 10-13-2004
Question size of a directory

hai friends

I need a program to find the size of a directory.. When i tried to get the size, it always gives the default space allocated for it. How can i findout the exact size of a directory using a c program

Thanks in advance
Collins
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Size of a directory

Hi, It would be of great help if anyone can tell me what is the command for getting the size of a directory. Thx a lot in advance Minaz (9 Replies)
Discussion started by: minazk
9 Replies

2. UNIX for Dummies Questions & Answers

size of a directory?

hi, say i have the following directory structure a/b/c/d... can i do df -kt /a/b/c/d and the output will gives me the total space of the directory space in d? or the output will just be the total space of the parent directory a. hope its clear.. (2 Replies)
Discussion started by: yls177
2 Replies

3. AIX

size of directory with ls -l

hello When i do a "ls -l" in a directory (Aix 5.3), i have the result : >ls -l total 65635864 -rw-r--r-- 1 lobi system 2559909888 Feb 20 15:06 cible5.7bdat -rw-r--r-- 1 lobi system 1020098870 Feb 20 13:06 cible6.7bdat -rw-r--r-- 1 lobi system 1544789511 Feb 20 11:06 cible9.7bdat -rw-r--r--... (2 Replies)
Discussion started by: pascalbout
2 Replies

4. UNIX for Dummies Questions & Answers

directory size with ls -l

am I right in assuming that in unix a directory size is just information about that directory stored somewhere on the file system, and not a sum of its contents? This is because ls -l gives 1024 as my directory size, when the directory contains many gigs worth of stuff. also, is du -sk dir ... (2 Replies)
Discussion started by: JamesByars
2 Replies

5. Shell Programming and Scripting

size of directory

Hello again; I have a directories and subdirectories in my current directory and i wanna to find the directories( and subdirectories ) which are larger than what user enters as first parameter. find . -type d -size +"$1"c -print > directories.dat I used this command and i am not sure it is... (19 Replies)
Discussion started by: redbeard_06
19 Replies

6. 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

7. UNIX for Dummies Questions & Answers

directory tree with directory size

find . -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/' Can someone explain how this works..?? How can i add directory size to be listed in the above command's output..?? (1 Reply)
Discussion started by: vikram3.r
1 Replies

8. Solaris

get directory size

Hi, How to get size of particular directory? Thanks (5 Replies)
Discussion started by: cutefriend
5 Replies

9. 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

10. 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
DateTime::Locale::vi(3) 				User Contributed Perl Documentation				   DateTime::Locale::vi(3)

NAME
DateTime::Locale::vi SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'vi' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Vietnamese. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) ThX hai ThX ba ThX tX ThX nXm ThX sau ThX bXy ChX nhXt Abbreviated (format) Th 2 Th 3 Th 4 Th 5 Th 6 Th 7 CN Narrow (format) Th 2 Th 3 Th 4 Th 5 Th 6 Th 7 CN Wide (stand-alone) ThX hai ThX ba ThX tX ThX nXm ThX sau ThX bXy ChX nhXt Abbreviated (stand-alone) Th 2 Th 3 Th 4 Th 5 Th 6 Th 7 CN Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) thang mXt thang hai thang ba thang tX thang nXm thang sau thang bXy thang tam thang chin thang mXXi thang mXXi mXt thang mXXi hai Abbreviated (format) thg 1 thg 2 thg 3 thg 4 thg 5 thg 6 thg 7 thg 8 thg 9 thg 10 thg 11 thg 12 Narrow (format) thg 1 thg 2 thg 3 thg 4 thg 5 thg 6 thg 7 thg 8 thg 9 thg 10 thg 11 thg 12 Wide (stand-alone) thang mXt thang hai thang ba thang tX thang nXm thang sau thang bXy thang tam thang chin thang mXXi thang mXXi mXt thang mXXi hai Abbreviated (stand-alone) thg 1 thg 2 thg 3 thg 4 thg 5 thg 6 thg 7 thg 8 thg 9 thg 10 thg 11 thg 12 Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated tr. CN sau CN Narrow tr. CN sau CN Date Formats Full 2008-02-05T18:30:30 = ThX ba, ngay 05 thang hai nXm 2008 1995-12-22T09:05:02 = ThX sau, ngay 22 thang mXXi hai nXm 1995 -0010-09-15T04:44:23 = ThX bXy, ngay 15 thang chin nXm -10 Long 2008-02-05T18:30:30 = Ngay 05 thang 2 nXm 2008 1995-12-22T09:05:02 = Ngay 22 thang 12 nXm 1995 -0010-09-15T04:44:23 = Ngay 15 thang 9 nXm -10 Medium 2008-02-05T18:30:30 = 05-02-2008 1995-12-22T09:05:02 = 22-12-1995 -0010-09-15T04:44:23 = 15-09--010 Short 2008-02-05T18:30:30 = 05/02/2008 1995-12-22T09:05:02 = 22/12/1995 -0010-09-15T04:44:23 = 15/09/-010 Default 2008-02-05T18:30:30 = 05-02-2008 1995-12-22T09:05:02 = 22-12-1995 -0010-09-15T04:44:23 = 15-09--010 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC ThX ba, ngay 05 thang hai nXm 2008 1995-12-22T09:05:02 = 09:05:02 UTC ThX sau, ngay 22 thang mXXi hai nXm 1995 -0010-09-15T04:44:23 = 04:44:23 UTC ThX bXy, ngay 15 thang chin nXm -10 Long 2008-02-05T18:30:30 = 18:30:30 UTC Ngay 05 thang 2 nXm 2008 1995-12-22T09:05:02 = 09:05:02 UTC Ngay 22 thang 12 nXm 1995 -0010-09-15T04:44:23 = 04:44:23 UTC Ngay 15 thang 9 nXm -10 Medium 2008-02-05T18:30:30 = 18:30:30 05-02-2008 1995-12-22T09:05:02 = 09:05:02 22-12-1995 -0010-09-15T04:44:23 = 04:44:23 15-09--010 Short 2008-02-05T18:30:30 = 18:30 05/02/2008 1995-12-22T09:05:02 = 09:05 22/12/1995 -0010-09-15T04:44:23 = 04:44 15/09/-010 Default 2008-02-05T18:30:30 = 18:30:30 05-02-2008 1995-12-22T09:05:02 = 09:05:02 22-12-1995 -0010-09-15T04:44:23 = 04:44:23 15-09--010 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Th 3 1995-12-22T09:05:02 = 22 Th 6 -0010-09-15T04:44:23 = 15 Th 7 H (H) 2008-02-05T18:30:30 = 18 1995-12-22T09:05:02 = 9 -0010-09-15T04:44:23 = 4 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 CH 1995-12-22T09:05:02 = 9:05 SA -0010-09-15T04:44:23 = 4:44 SA Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 CH 1995-12-22T09:05:02 = 9:05:02 SA -0010-09-15T04:44:23 = 4:44:23 SA M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d-M) 2008-02-05T18:30:30 = 5-2 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-9 MEd (E, d-M) 2008-02-05T18:30:30 = Th 3, 5-2 1995-12-22T09:05:02 = Th 6, 22-12 -0010-09-15T04:44:23 = Th 7, 15-9 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = thg 2 1995-12-22T09:05:02 = thg 12 -0010-09-15T04:44:23 = thg 9 MMMd (d MMM) 2008-02-05T18:30:30 = 5 thg 2 1995-12-22T09:05:02 = 22 thg 12 -0010-09-15T04:44:23 = 15 thg 9 MMMEd (E d MMM) 2008-02-05T18:30:30 = Th 3 5 thg 2 1995-12-22T09:05:02 = Th 6 22 thg 12 -0010-09-15T04:44:23 = Th 7 15 thg 9 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 thang hai 1995-12-22T09:05:02 = 22 thang mXXi hai -0010-09-15T04:44:23 = 15 thang chin MMMMEd (E d MMMM) 2008-02-05T18:30:30 = Th 3 5 thang hai 1995-12-22T09:05:02 = Th 6 22 thang mXXi hai -0010-09-15T04:44:23 = Th 7 15 thang chin mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, d-M-yyyy) 2008-02-05T18:30:30 = Th 3, 5-2-2008 1995-12-22T09:05:02 = Th 6, 22-12-1995 -0010-09-15T04:44:23 = Th 7, 15-9--010 yMMM (MMM y) 2008-02-05T18:30:30 = thg 2 2008 1995-12-22T09:05:02 = thg 12 1995 -0010-09-15T04:44:23 = thg 9 -10 yMMMEd (EEE, d MMM y) 2008-02-05T18:30:30 = Th 3, 5 thg 2 2008 1995-12-22T09:05:02 = Th 6, 22 thg 12 1995 -0010-09-15T04:44:23 = Th 7, 15 thg 9 -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = thang hai 2008 1995-12-22T09:05:02 = thang mXXi hai 1995 -0010-09-15T04:44:23 = thang chin -10 yQ (Q yyyy) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -010 yQQQ (QQQ y) 2008-02-05T18:30:30 = Q1 2008 1995-12-22T09:05:02 = Q4 1995 -0010-09-15T04:44:23 = Q3 -10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyy (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 Miscellaneous Prefers 24 hour time? Yes Local first day of the week ThX hai SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::vi(3)
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy