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   -   Original Discussion by Maddy123
Maddy123 Maddy123 is offline
Registered User
 
Join Date: May 2011
Last Activity: 3 August 2017, 8:24 PM EDT
Posts: 133
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   -   Original Discussion by Maddy123
zaxxon's Unix or Linux Image
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 21 November 2017, 3:44 AM EST
Location: St. Gallen, Switzerland
Posts: 6,573
Thanks: 176
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   -   Original Discussion by Maddy123
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 21 November 2017, 12:04 PM EST
Location: Lancashire, UK
Posts: 3,373
Thanks: 1,456
Thanked 665 Times in 598 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   -   Original Discussion by Maddy123
MadeInGermany MadeInGermany is offline Forum Staff  
Moderator
 
Join Date: May 2012
Last Activity: 21 November 2017, 3:10 PM EST
Location: Simplicity
Posts: 3,826
Thanks: 319
Thanked 1,283 Times in 1,161 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   -   Original Discussion by Maddy123
Maddy123 Maddy123 is offline
Registered User
 
Join Date: May 2011
Last Activity: 3 August 2017, 8:24 PM EDT
Posts: 133
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 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 07:07 PM.