General :: Getting The Disk Usage For Certain Files Per Directory?

Mar 25, 2010

I am trying to get the total file size for certain files per directory.

I am using

find `pwd` /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 per directory for all dta files.

View 2 Replies


ADVERTISEMENT

Programming :: Getting The Disk Usage For Certain Files Per Directory?

Mar 26, 2010

I am trying to get the total file size for certain files per directory.I am usingfind `pwd` /DirectoryPath -name '*.dta' -exec ls -l {} ; | awk '{ print $NF ": " $5 }' > /users/cergun/My Documents/dtafiles.txtbut this lists all the files in the directoriesI need the total per directory for all dta files.

View 1 Replies View Related

General :: Hidden Files In Disk Usage Analyzer?

Aug 18, 2010

How do I get Ubuntu's "Disk Usage Analyzer" to show me the hidden files?

It tells me my home dir uses 3GB, but only accounts for 525MB (the results of du -shc *). Can I get it to show me the other files that are using the space?

View 4 Replies View Related

General :: Status Of Memory Usage And Disk Usage Using Sigar In Windows And Ubuntu

Mar 15, 2010

I was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.

View 14 Replies View Related

Ubuntu :: Root Directory Getting Full - How To Use Disk Usage Analyzer To Trim It

Aug 22, 2010

I have root on sda1 and home on sdb1.

I am getting close to full and wanted to analyze what apps or files are taking up the most room.

How do I navigate to sda1 in Disk Usage Analyzer?

"/" says 100% 121.5GB in dua (see attached screenshot)

Code:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.7G 3.2G 317M 92% /
none 493M 340K 493M 1% /dev

[Code]....

View 9 Replies View Related

Server :: No Files Yet 36% Disk Usage?

Jun 13, 2011

Can anyone explain this output? I'm not sure what to make of it. 36% usage and no files??

root@host:/backups# ls -la
total 8
drwxr-xr-x 2 root root 4096 Mar 8 20:12 .

[code]....

View 3 Replies View Related

OpenSUSE Install :: Hidden Files - DF Shows More Disk Usage Than DU

Oct 23, 2010

I am running an Opensuse 11.2 system as a backup file server. Several external hard drives are attached via USB and mounted during boot via the fstab file. Recently, I noticed the df command showed the root partition being >65% full, while the du command showed the same drive was only about 20% full. After much investigation, I discovered that some large directories had been created under the /media folder on the root partition that were hidden when the external drives were mounted as directories with the same names under /media. I could only see this when I rebooted with a live CD and mounted the suspect partition without the external drives mounted. Is there a way to examine whether a mounted partition has existing files "hidden" when a separate file system is mounted "on top of it"?

View 9 Replies View Related

Fedora :: Hidden Disk Space Usage \ Can't Figure Out Where The Runaway Usage Is?

Dec 10, 2010

I'm running into a problem where my system is running out of disk space on the root partition, but I can't figure out where the runaway usage is. I've had a stable system for a couple of years now, and it just ran out of space. I cleaned some files up to get the system workable again, but can't find the big usage area, and I'm getting conflicting results.For example, when I do a df it says I'm using 44GB out of 58 GB:

Code:
[root@Zion ~]# df -h
Filesystem Size Used Avail Use% Mounted on

[code]....

View 5 Replies View Related

General :: To Get The Disk Usage Of The System?

Sep 3, 2010

when we use the df command it list the disk usage list for all mounted files ..

#df -h
/dev/sda4 47G 34G 11G 78% /
varrun 1009M 120K 1009M 1% /var/run

[code]....

View 1 Replies View Related

General :: Disk Usage By Unknown File

Jul 31, 2010

i am facing problem of space usage by unknown file on /var partition.

[root@test var]# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 3.3G 16G 18% /
/dev/sda5 39G 36G 769M 98% /var
/dev/sda6 15G 4.7G 9.1G 34% /var/spool/squid
/dev/sda1 487M 16M 446M 4% /boot
tmpfs 1014M 0 1014M 0% /dev/shm

where as when I checked the using du -sh in its maximum utilization is about 5.9GB. i want to know the space being utilized by whom.

[root@test /]# du -sh /var
5.9G /var

View 5 Replies View Related

General :: CentOS 5.4 - Disk Usage Information

Mar 16, 2010

I am trying to get my head around my new server. I am using CENTOS 5.4 x86_64 with 300GB harddrive.

The 300 GB been partitioned with the following:

Device Size Used Available Percent Used Mount Point
/dev/md0 99M 18M 77M 19% /boot
/dev/md1 16G 8.7G 5.8G 61% /
/dev/md2 246G 40G 194G 18% /home
/dev/md3 4.8G 1.6G 3.0G 35% /var
/usr/tmpDSK 3.9G 432M 3.3G 12% /tmp

I have increased teh tmpDSK as it was getting full very quickly. My question is, what are these md0; md1, md2 and md3 are they harddrive partitions and as md1 is getting full will that have an impact on my sites.

View 8 Replies View Related

General :: Checking The Disk Usage Of Different Servers Using Df -h Command?

Jan 7, 2010

how to Check the disk usage of different linux servers using df -h linux command. My host server is 66.50.100.1, I can check its disk usage by using df -h command. I got my disk usage. Now using my host server Im going to check the server 66.50.100.3 disk usage. Is its possible to check the disk usage of 66.50.100.3 using my host server?

View 4 Replies View Related

General :: Correct Usage Of Grep To Search A Disk?

Mar 26, 2009

I've been trying to identify all files on my cut-down version of Damn Small which contain the text string "User Agent:" in them. Because it's only 120Mb in its entirety, I'm quite happy to have grep search the whole system. I'm using this command, but it just generates errors as you can see:

[root@localhost ~]# grep -R 'User Agent:' /*
grep: /dev/dri/card0: Invalid argument
grep: /dev/fuse: Operation not permitted

[code]....

View 13 Replies View Related

General :: Iostat To Print Disk Usage Speed?

Jul 29, 2011

Trying to understand grep,sed,awk but maybe its too early for me and also i suspect iostat is not the correct program for exactly what i'm looking for...The goal is to print only the current read and write speeds of the disk, represented in a numerical value with two separated commands. So for example when writing a file to disk from an external disk, the value reflects the speed of the process.

"iostat -dk sda" prints
Code:
Linux 2.6.38 (Infidel) 07/30/2011 _x86_64_ (4 CPU)

[code]....

View 8 Replies View Related

General :: Command To Check Specific Processes That's Using The Most IO/disk Usage?

Apr 12, 2011

Is there a command to check specific processes that's using the most IO/disk usage? I know sar and ps but I want more specific details on IO on individual processes

View 5 Replies View Related

Ubuntu :: Disk Space Used Doesn't Match What Is Shown In Disk Usage Analyzer?

Feb 26, 2011

Some thing is using up a huge amount of my disk space about 10G and I can not determine what it is. When I look at my disk usage in system monitor it say I have used about 25G and when I scan the directory in disk usage analyzer the entire file system used is 15G.

View 1 Replies View Related

General :: Use Find To Select Users With A Certain Amount Of Disk Space Usage?

May 16, 2011

I want to find all users shown in the /home/ directory whose disk consumption is more than 500MB. The following command works as expected.

cd /home/ && du */ -hs
68K ajay/
902M john/
250M websites/

From the above example, only 902M john/ should be returned.

How can I make the find command output the same results?

View 4 Replies View Related

General :: Extremely Slow Write On Disk With High CPU Usage / Make It Up?

Sep 4, 2010

My problem is extremely slow write on hard disk and 100% cpu usage and it happens when I want to write something on the hard derive not any other external derive.

Tried a fresh ubuntu install. No change. I am not even sure if it is a software or hardware problem.

View 1 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

General :: Files Created In A Directory Owned By Directory Group?

Jan 29, 2010

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?

View 2 Replies View Related

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related

General :: Find Directory Older Than X And Mv Directory With Sub Files Command?

Jul 13, 2011

I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively

View 4 Replies View Related

General :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

General :: Unix - Monitor Average CPU Usage And RAM Usage On One Process System?

Nov 15, 2010

Is there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!

View 2 Replies View Related

Ubuntu :: Copying Files To A Directory And Skip The Files That Already Exist In The Directory?

Jun 30, 2011

How would i go about copying files to a directory, yet skip the files that already exist in the directory, and also remove the files that are in the directory. For example:

Code:

$ls /dir1
img001.jpg
img002.jpg

[code]....

Now i would like to copy from dir1 to dir2, but the contents of dir2 would be:

Code:

$ls /dir2
img003.jpg

View 7 Replies View Related

General :: Associate A Physical Disk Partition With Directory?

Dec 14, 2010

i would like to determine the hard drive partition associated with a directory. ie i have a disk partition as user with mount point Home. this i think contains my Home directory. a downloaded program resides in /usr/bin. now there is a /usr/local/bin with nothing in it. my question is how can i tell what disk partition /usr/bin resides on. if it is on my user defined partition i will not lose the program on a system install i think?

View 5 Replies View Related

General :: Moved To Ssd - Booting - Won't Make The Root Directory On The Right Disk

May 8, 2011

I have successfully migrated my linux install to a new /, /home, /boot partition on my ssd. Everything works fine, except that it won't make the root directory on the right disk. When I change the root=uuid=<drive id> to my new drive everything is fine, but I can't automate that... in other words I have manually typed the uuid of my root-partition for about 100 times now and I am fed up with that how I can save the uuid of my new drive in the startup parameters?

View 2 Replies View Related

Fedora :: Shrink The System Disk Usage?

Mar 22, 2011

I need to install Fedora on 4GB SDHC card, so the space is limited.My question is what files (documents, manuals, temporary files, logs, unused packages etc) I can remove, without harming the system?So far I cleaned /tmp, /var/log, trash what else?

View 8 Replies View Related

Ubuntu :: Bleachbit Very Incorrect With Disk Usage?

Jan 3, 2010

I realize bleachbit is supposed to "clean files", but my disk usage is at 11.8%. My disjk usage was at like 6.0%. How in the world did it jump so much? It doesnt appear to be right. The only thing I did not check were the Firefox checkboxes..

View 1 Replies View Related

Ubuntu :: CLI Version Of The Disk Usage Analyzer?

Feb 25, 2010

Is there a CLI version of the Disk Usage Analyzer?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved