06-02-2008
Check space utilization in recursive mode
Hi friends,
I have the following query..
Suppose I have the parent directory as /home/suresh/Jobs and assume there are many child ub-directories created within this parent directory
I would like to fire a command [ something like bdf . ] which will give me the space utilization within each of the child directories with this parent dir...
This will help mt identify which child directory is using more space as compared to others and hence I can clean-up the same..
Please advice
Regards,
Suresh
10 More Discussions You Might Find Interesting
1. SCO
Hi All,
I want to check the CPU Utilization for my SCO UNIX machine. Please suggest some commands to do that.
Thanks,
Am (2 Replies)
Discussion started by: am_yadav
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have executed the "df -h" command to identify the space utilization and I noticed that i have utilized more than 60% of the alloted resources.
Is there any command to check what are the files occupying/eating the 60% of the resources (for my id)?? If i know the files and their location... (2 Replies)
Discussion started by: Meem
2 Replies
3. Shell Programming and Scripting
so I have within my script a little md5sum check...
find . ! -type d -print0 | xargs -0 md5sum
And I want it to compare the generated values against a file so I'm trying...
find . ! -type d -print0 | xargs -0 md5sum -c files.md5
I generated this file by redirecting the output of the... (2 Replies)
Discussion started by: blowFish@ubuntu
2 Replies
4. AIX
I just want to inquire on one of our DB Servers. Currently, we are running on 26GB of memory and 6 CPUs. Though our memory is 70-80 utilized, I can see some paging of around 8-10%. Is there any effective way we can lessen/eliminate paging?
Here is our current VMO Settings:
vmo:
... (1 Reply)
Discussion started by: depam
1 Replies
5. SuSE
If following is the usage of cat /proc/meminfo
MemTotal: 4051304 kB
MemFree: 28544 kB
Buffers: 216848 kB
Cached: 3398628 kB
SwapCached: 0 kB
Active: 455460 kB
Inactive: 3291612 kB
HighTotal: 0 kB
HighFree: 0 kB... (5 Replies)
Discussion started by: bryanabhay
5 Replies
6. Solaris
Any native Solaris commands/scripts to check the utilization of kernel tables/limits in Solaris ? (like equivalent command in HPUX is kcusage) (2 Replies)
Discussion started by: thamurali
2 Replies
7. Shell Programming and Scripting
Hi,
I wrote the following script for monitoring disk space and inform the concerned team accordingly. But script gives me below error
syntax error at line 70 : `<' unmatched
#!/bin/ksh
. /home/scr/.profile
. /home/scr/.infa_env
# Get the list of Integration Services
... (6 Replies)
Discussion started by: svajhala
6 Replies
8. Shell Programming and Scripting
Hi All,
I am writing a script in which it should get the space utilization from a specified location on different servers.
Logic that i used is, it reads server name from a file (each server name on new line) and that is given as an input to whiile loop.
cat server.list
server1
server2... (2 Replies)
Discussion started by: pkbond
2 Replies
9. UNIX for Dummies Questions & Answers
Hi
Is there an easy was to list a group of file (*.txt) and report how much disk space they are using in total?
Cheers (2 Replies)
Discussion started by: Grueben
2 Replies
10. Shell Programming and Scripting
Hi All,
I am using SSH Tectia terminal to get the disk space utilization of a particular folder /opt/logs in all the servers one by one using the command df -h and looking through the list of folders manually to get /opt/logs folder disk space used percentage .
The problem here is , it... (2 Replies)
Discussion started by: aakhan2011
2 Replies
vfork(2) System Calls Manual vfork(2)
NAME
vfork - spawn new process; share virtual memory
SYNOPSIS
REMARKS
is a higher performance version of that is provided on some systems where a performance advantage can be attained.
If the calling process is multi-threaded, the newly created child process will only contain one thread. This one thread will be a copy of
the thread calling
differs from only in that the child process can share code and data with the calling process (parent process). This speeds cloning activ-
ity significantly at a risk to the integrity of the parent process if is misused.
The use of for any purpose except as a prelude to an immediate or is not supported. Any program that relies upon the differences between
and is not portable across HP-UX systems.
All HP-UX implementations must provide the entry but it is permissible for them to treat it identically to On some implementations the two
are not distinguished because the implementation is as efficient as possible. Other versions may do the same to avoid the overhead of sup-
porting two similar calls.
DESCRIPTION
can be used to create new processes without fully copying the address space of the old process. If a forked process is simply going to do
an (see exec(2)), the data space copied from the parent to the child by is not used. This is particularly inefficient in a paged environ-
ment, making particularly useful. Depending upon the size of the parent's data space, can give a significant performance improvement over
differs from in that the child borrows the parent's memory and thread of control until a call to or an exit (either by a call to or abnor-
mally (see exec(2) and exit(2)). The parent process is suspended while the child is using its resources.
returns 0 in the child's context and (later) the pid of the child in the parent's context.
can normally be used just like It does not work, however, to return while running in the child's context from the procedure which called
since the eventual return from would then return to a no longer existent stack frame.
The window begins at the call and ends when the child completes its call.
RETURN VALUE
Upon successful completion, returns a value of 0 to the child process and returns the process ID of the child process to the parent
process. Otherwise, a value of -1 is returned to the parent, no child process is created, and is set to indicate the error.
ERRORS
fails and no child process is created if any of the following conditions are encountered:
The system-wide limit on the total number of processes under execution
would be exceeded.
The system-imposed limit on the total number of processes under execution
by a single user would be exceeded.
DEPENDENCIES
Servers
Process times for the parent and child processes within the window may be inaccurate.
Parent and child processes share the same stack space within the window. If the size of the stack has been changed within this win-
dow by the child process (return from or call to a function, for example), it is likely that the parent and child processes will be
killed with signal or
In the window, a call to (see signal(2) that installs a catching function can affect handling of the signal by the parent. The par-
ent is not affected if the handling is being set to or or if is used (see sigaction(2)).
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
exec(2), exit(2), fork(2), sigaction(2), wait(2).
vfork(2)