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

Closed    
 
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: 14 July 2017, 8:08 AM EDT
Posts: 132
Thanks: 32
Thanked 1 Time in 1 Post
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: 14 July 2017, 7:05 AM EDT
Location: St. Gallen, Switzerland
Posts: 6,568
Thanks: 174
Thanked 560 Times in 481 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: 20 July 2017, 6:43 AM EDT
Location: Lancashire, UK
Posts: 3,167
Thanks: 1,333
Thanked 604 Times in 546 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: 20 July 2017, 7:35 PM EDT
Location: Simplicity
Posts: 3,632
Thanks: 285
Thanked 1,211 Times in 1,096 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: 14 July 2017, 8:08 AM EDT
Posts: 132
Thanks: 32
Thanked 1 Time in 1 Post
Thank you
Sponsored Links
Closed

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 12:28 PM
How much space I am consuming? vijays3 Shell Programming and Scripting 4 10-21-2009 11:01 AM
Help to trace process consuming more space naw_deepak Solaris 5 10-07-2009 11:57 AM
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 6 04-04-2009 02:52 AM
which thread is consuming much time ? ashokd001 HP-UX 5 01-23-2009 10:25 AM



All times are GMT -4. The time now is 12:47 AM.