Hi,everyone,
Can I use UNIX command to get a directory size in UNIX ?
I am developing a software using C in UNIX. How can I get the directory size?
Thanks
Harry (1 Reply)
I have two file in a Directory.I want a script which will compare the Size of Two file.
Can Anyone Help me on this:
linasplg11:/opt/dataout/kk/linasplg11 # cat size
-rwxrwxrwx 1 root root 16658 Jan 8 13:58 lina_IP_SIP_1231325621210.xml
-rwxr-xr-x 1 root root 16672 Jan 8 14:30... (1 Reply)
hi,
i am new to this site.
i want to write a script to compare the file size of the files in the current dir with the files in the previous directory.
the files name will be same, but the filename format will be as xyzddddyymm.txt. the files will arrive with the month end date(i want to... (5 Replies)
Hi,
I have two server , one linux and one unix .
I want to compare two different directry in them .
What command or tool I can use instead of search the dir one by one ???
thank (3 Replies)
hi everyone
my q is that i want to know what 's the reason behind the direcotry size in unix
like if i do
ls -ltr
in my home directory it will list all the files and directory .. then the
size of directory is either
512 or 1024 .. and every directory is containing files in... (2 Replies)
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)
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)
Hello guys,
Please i need to know the biggest files in my directory let's say$
>du -h | egrep 'M|G|G'
195M ./TMP
3.6M ./TP_DEC2012
146G .
But here the result it's giving me the biggest directory in the path.
Actually i want to know the biggest file in 146G .
Can anyone... (6 Replies)
I am new at developing EXPECT scripts. I'm trying to create a script that will automatically connect to a several UNIX (sun solaris and HPUX) database server via FTP and pull the sizes of the listener/alert log files from specified server directory on the remote machines.
1. I want the script... (7 Replies)