HI ALL,
i am a beginner in unix world.
can anyone please tell me the way to find total size taken by each directory (including size of all subdirectories and files) present under /var.
e.g what is space occupied by /var/adm , /var/admin etc.
its a simple question but still i dont know the... (2 Replies)
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)
Hi,
I'm newbie to Unix. I'd like to count the total size of those files in my directory by date. For example, files on this period 05/01/08 - 05/31/08. If possible can we count by byte instead of kb.
if I use $ du - ks , it will add up all files in the dir.
thanks,
Helen (5 Replies)
as we use du - sh *.frm
In This command It will show the list of files and size
But I want the Total size that these files in directory with extension .frm
How can we do This (6 Replies)
Hello all,
I need to do scripts total up the size in selected extension file for example motion.mov and segmentation.avi is in Label Media. For file info.doc and calc.xls in Label Document.
I need output will be like this:
count 1
Media,,2 GB
count 2
Document,,4 GB
My problem is,... (16 Replies)
Hi
I have some set of files for a particular date. What is the command that I need to put in for finding the total size of all the files for that particular date. The following command is fetching me the size of all individual files seperately
du -h *20101010*
16M file1.20101010
120K... (10 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)
Hello :
I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems.
Some thing like this..
find /u*/app/oracle -type d -name "product" -prune
and then... (1 Reply)
If I have a number of files in a directory, for example,
test.1
test.2
test.3
abc.1
abc.2
abc.3
and I need to find the total file size of all of the test.* files, I can use du -bc test.* in Linux.
However, in Solaris, du does not have the -c option. What can I do in Solaris to get... (11 Replies)
Is there a way to calculate the total file size of HDFS file directory in GB or MB? I dont want to use du/df command. Without that is there a way
HDFS
Directory - /test/my_dir (1 Reply)
Discussion started by: rohit_shinez
1 Replies
LEARN ABOUT NETBSD
dirname
DIRNAME(3) BSD Library Functions Manual DIRNAME(3)NAME
dirname -- report the parent directory name of a file pathname
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <libgen.h>
char *
dirname(char *path);
DESCRIPTION
The dirname() function takes a pointer to a character string that contains a pathname, path, and returns a pointer to a string that is a
pathname of the parent directory of path. Trailing '/' characters in path are not counted as part of the path.
If path does not contain a '/', then dirname() returns a pointer to the string ``.''.
If path is a null pointer or points to an empty string, dirname() returns a pointer to the string ``.''.
RETURN VALUES
The dirname() function returns a pointer to a string that is the parent directory of path.
SEE ALSO dirname(1), basename(3)STANDARDS
o X/Open Portability Guide Issue 4, Version 2 (``XPG4.2'')
o IEEE Std 1003.1-2001 (``POSIX.1'')
BUGS
If the length of the result is longer than PATH_MAX bytes (including the terminating nul), the result will be truncated.
The dirname() function returns a pointer to static storage that may be overwritten by subsequent calls to dirname(). This is not strictly a
bug; it is explicitly allowed by IEEE Std 1003.1-2001 (``POSIX.1'').
BSD May 10, 2008 BSD