Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Directory size script

the_rock
MVP Diamond
MVP Diamond

Hey guys,

This script sorts all the fw directories by size in GBs. dos2unix and chmod 777 needed to run it. I posted a lab example, just run | more flag after script, otherwise output might be huge.

lab example:

 

[Expert@CP-GW:0]# ./dirsize_sort.sh | more
GiB Directory
---- ---------
12.77 /
7.97 /opt
3.32 /opt/CPsuite-R82
3.31 /opt/CPsuite-R82/fw1
2.10 /sysimg/CPwrapper
2.10 /sysimg
2.10 /sysimg/CPwrapper/linux
1.67 /opt/CPda
1.60 /opt/CPda/backup
1.26 /var
1.10 /usr
1.07 /opt/CPda/backup

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




0 Kudos
0 Replies