Files consuming more space in HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Files consuming more space in HP-UX
# 1  
Old 07-21-2016
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
# 2  
Old 07-21-2016
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.
# 3  
Old 07-22-2016
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 09-01-2016
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

This User Gave Thanks to MadeInGermany For This Post:
# 5  
Old 09-01-2016
Thank you
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Top 5 cpu and Mem consuming process and files and suggestion for health check

I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment? Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server? I searched on site before posting, but... (2 Replies)
Discussion started by: Varja
2 Replies

2. AIX

Which process was consuming most memory in the Past?

Hello There are options / commands to check which process is consuming maximum memory However is there any command/mechanism which will tell us which process was consuming maximum memory in specific time interval in the past? I heard nmon report can help in this regard. is there any... (5 Replies)
Discussion started by: Chetanz
5 Replies

3. Shell Programming and Scripting

Perl Script to find the disk usage and to delete the files which is consuming more space

Hi All, I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet #Script Starts here #!/usr/local/bin/perl #Program to find the disk space and to delete the older files #Checks the type of OS... (8 Replies)
Discussion started by: arunkarthick
8 Replies

4. Shell Programming and Scripting

How much space I am consuming?

Hi i want to know if many users are logging in system then how would i know that how much space in system i am consuming.. Thanks Vijay sahu (4 Replies)
Discussion started by: vijays3
4 Replies

5. Solaris

Help to trace process consuming more space

Hi all, We have a server having much processes running. It is very difficuilt to trace the exact consuming more memory. Howerver, it shows CPU usage in sequence but how memory? Tried working with TOP command. Please let me know if something not clear. Thanks, Deepak (5 Replies)
Discussion started by: naw_deepak
5 Replies

6. UNIX for Dummies Questions & Answers

How to find a file whick is consuming larger disk space in file system

Hello, Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it please help me out any help would be appreciated (6 Replies)
Discussion started by: lokeshpashine
6 Replies

7. HP-UX

which thread is consuming much time ?

Hi How do i check which thread is consuming much time ? In my process it is tacking much %CPU so i want to check whick thread tacking much time? Any suggestion highly appriciated. I am using HP-UX B.11.31 U ia64 Regards, Ashok (5 Replies)
Discussion started by: ashokd001
5 Replies

8. AIX

Process consuming most memory

How can i find the processes that is consuming most memory? I tried TOPAS and SVMON and this didn't gave me the desired result. (1 Reply)
Discussion started by: shabu
1 Replies

9. UNIX for Dummies Questions & Answers

How ti kill a process which is consuming so much time

There is a process which is consuming too much time.. how to find that process and kill it. (3 Replies)
Discussion started by: shreenivas
3 Replies

10. UNIX for Dummies Questions & Answers

when I try to run rm on multiple files I have problem to delete files with space

Hello when I try to run rm on multiple files I have problem to delete files with space. I have this command : find . -name "*.cmd" | xargs \rm -f it doing the work fine but when it comes across files with spaces like : "my foo file.cmd" it refuse to delete it why? (1 Reply)
Discussion started by: umen
1 Replies
Login or Register to Ask a Question