Checking the total size of all files from a particular date
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
How can I find the total size. Any help would be really appreciated. Thanks
hello people
i need your help please
i want to achieve the following with the simplest, most efficient shell-tools:
i have a directory with a lot of files from users.
the script should check which partition the dir is on
if the partition with the directory is more than 90% full
... (2 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)
Hi,
I am trying to get the total file size for certain files per directory.
I am using
find /DirectoryPath -name '*.dta' -exec ls -l {} \; | awk '{ print $NF ": " $5 }' > /users/cergun/My\ Documents/dtafiles.txt
but this lists all the files in the directories.
I need the total... (9 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 all...
I have a directory called dbrn. This directory contains an unknown number of subdirectories which in turn contain an unknown number of files.
What I want to know is:
How many files with extention .ABC can be found in /dbrn across all subdirecties, and what is the total size for... (9 Replies)
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)
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 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 HPUX
acctsh
acctsh(1M)acctsh(1M)NAME
acctsh: chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm, prctmp, prdaily, prtacct, shutacct, startup, turnacct - shell procedures
for accounting
SYNOPSIS
login-name number
[blocks]
[files ...]
number
file
[mmdd]
file [heading]
[reason]
DESCRIPTION
Can be invoked to charge a
number of units to login-name. A record is written to to be merged with other accounting records during the night.
Should be initiated via
It periodically checks the size of If the size exceeds blocks, 1000 by default, is invoked with argument switch. If the
number of free disk blocks in the file system falls below 500, automatically turns off the collection of process accounting
records via the argument to When at least this number of blocks is restored, the accounting will be activated again. This
feature is sensitive to the frequency at which is executed, usually by
Should be invoked by
to perform the disk accounting functions. By default, it will do disk accounting on the special files in If the flag is
used, it does a slower version of disk accounting by login directory. files specifies the one or more filesystem names
where disk accounting is to be done. If files is used, disk accounting will be done on these filesystems only. If the flag
is used, files should be mount points of mounted filesystem. If omitted, they should be the special file names of mountable
filesystems.
Invoked by to update which shows the last date on which each user logged in (see runacct(1M)).
Should be invoked once each month or each accounting period.
number indicates which month or period it is. If number is not given, it defaults to the current month (01 through 12).
This default is useful if is to executed via on the first day of each month. creates summary files in and restarts summary
files in
Creates file with mode 664 and ensures that owner and group are It is called by various accounting shell procedures.
Can be used to print the session record file normally
created by (see acctcon(1M)).
Invoked by (see runacct(1M)) to format a report of the previous day's accounting data. The report resides in where mmdd is the month
and day of the report. The current daily accounting reports may be printed by typing prdaily. Previous days' accounting
reports can be printed by using the mmdd option and specifying the exact report date desired. The flag prints a report of
exceptional usage by login id for the specifed date. Previous daily reports are cleaned up and therefore inaccessible after
each invocation of The flag prints a report of exceptional resource usage by command, and can be used on current day's
accounting data only.
Can be used to format and print any total accounting
file.
Should be invoked during a system shutdown
to turn process accounting off and append a "reason" record to
Should be called by system startup scripts
to turn the accounting on whenever the system is brought up.
An interface to
(see acct(1M)) to turn process accounting or The argument turns accounting off, moves the current to the next free name in
then turns accounting back on again. (incr is a number starting with and incrementing by one for each additional file.) is
called by and thus can be run under and used to keep to a reasonable size.
FILES
holds all accounting commands listed in section(1M) of this manual
accumulator for fees
working directory
current file for per-process accounting
used if gets large, and during execution of daily accounting procedure
contains the limits for exceptional
usage by command name
contains the limits for exceptional usage by login id
summary directory, should be saved
login/logoff summary
SEE ALSO acct(1M), acctcms(1M), acctcom(1M), acctcon(1M), acctmerg(1M), acctprc(1M), cron(1M), diskusg(1M), fwtmp(1M), runacct(1M), acct(2),
acct(4), utmp(4).
STANDARDS CONFORMANCE acctsh(1M)