Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Files consuming more space in HP-UX

HP-UX


Tags
bdf, find, solved

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-21-2016
Maddy123 Maddy123 is offline
Registered User
 
Join Date: May 2011
Last Activity: 3 January 2017, 5:35 PM EST
Posts: 120
Thanks: 31
Thanked 0 Times in 0 Posts
Files consuming more space in HP-UX

Hi,

Could you please provide OS command to find large files in size MB and GB... under specific directory in HP-UX?


Regards,
Maddy
Sponsored Links
    #2  
Old Unix and Linux 07-21-2016
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 17 February 2017, 9:11 AM EST
Location: St. Gallen, Switzerland
Posts: 6,541
Thanks: 168
Thanked 553 Times in 476 Posts
It is the find command, which is available in every Unix/Linux. Please try it out. You can get additional help using the command man find. If it doesn't work out, do not hesitate to ask here again.
Sponsored Links
    #3  
Old Unix and Linux 07-22-2016
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 16 February 2017, 11:30 AM EST
Location: Lancashire, UK
Posts: 2,995
Thanks: 1,240
Thanked 569 Times in 516 Posts
Perhaps using find, think of listing out files by bytes rather than Mb or Gb you get with ls -lh and then sorting on the size column.

You might also consider using the du command something like this to find directories containing lots of data (potentially many small files or one huge one) from the current directory down, but not crossing into sub-mounted filesystems:-
Code:
du -kx .

Show us how you get on and illustrate with your code and sample output if it's not working for you.




I hope that these help,
Robin
    #4  
Old Unix and Linux 09-01-2016
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 19 February 2017, 8:36 PM EST
Location: Simplicity
Posts: 3,408
Thanks: 262
Thanked 1,123 Times in 1,018 Posts
For example, a find command that I have often used:
show all files in the file system mounted on / that are bigger than 10000 blocks (5000 kilobytes) and modified since less than 7 days

Code:
find / -xdev -size +10000 -mtime -7 -print

Run ls -ld on each of them

Code:
find / -xdev -size +10000 -mtime -7 -exec ls -ld {} \;

A command that gives a quick overview of the file systems

Code:
bdf

The Following User Says Thank You to MadeInGermany For This Useful Post:
jim mcnamara (09-01-2016)
Sponsored Links
    #5  
Old Unix and Linux 09-01-2016
Maddy123 Maddy123 is offline
Registered User
 
Join Date: May 2011
Last Activity: 3 January 2017, 5:35 PM EST
Posts: 120
Thanks: 31
Thanked 0 Times in 0 Posts
Thank you
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Perl Script to find the disk usage and to delete the files which is consuming more space arunkarthick Shell Programming and Scripting 8 06-13-2012 01:28 PM
How much space I am consuming? vijays3 Shell Programming and Scripting 4 10-21-2009 12:01 PM
Help to trace process consuming more space naw_deepak Solaris 5 10-07-2009 12:57 PM
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 6 04-04-2009 03:52 AM
which thread is consuming much time ? ashokd001 HP-UX 5 01-23-2009 11:25 AM



All times are GMT -4. The time now is 10:17 PM.