Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Command to display the space usage (memory usage) of a specific directory.


 
Thread Tools Search this Thread
# 1  
Error Command to display the space usage (memory usage) of a specific directory.

Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.

df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>

But i want the to know, how much memory has one directory used on the whole. Not the memory used by the files & folders inside that directory.

Thanks in advance,
Regards,
Abhishek.
# 2  
See the man page of du:
Quote:
-s Instead of the default output, report only the total sum for each of the specified files.
This User Gave Thanks to pludi For This Post:
# 3  
MySQL

Hi,
Yes i have just gone through the man page of du sometime back, and learnt about the -s option.
Anyway thanks a lot for the detail description.

Regards,
Abhishek S.
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Help with script to display space usage
gartie
Hi all, I am looking for help with a script for displaying the space available from a df - h command for / (root). The problem is: If it is below 700 MB I have jobs that are failing... Is there a way I can do a calculation? If it above 700 MB it is good, if it is below 700 MB it will fail....... Shell Programming and Scripting
5
Shell Programming and Scripting
How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?
laknar
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage?... AIX
3
AIX
current CPU usage, memory usage, disk I/O oid(snmp)
S_venkatesh
Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you... Solaris
2
Solaris
how can I find cpu usage memory usage swap usage and logical volume usage
alert0919
how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to...... HP-UX
3
HP-UX
Inconsistent memory usage display
spdas
When i was trying to store a file of size 743 MB into a directory i got a msg. that the disk is full. But when i used the df -k . command on that directory it showed only 40% in usage and the disk had more than enough memory for the file. When i checked the syslog i found that at that instant of...... Filesystems, Disks and Memory
2
Filesystems, Disks and Memory

Featured Tech Videos