<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Directory size script in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Directory-size-script/m-p/269219#M1421</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;lab example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./dirsize_sort.sh | more&lt;BR /&gt;GiB Directory&lt;BR /&gt;---- ---------&lt;BR /&gt;12.77 /&lt;BR /&gt;7.97 /opt&lt;BR /&gt;3.32 /opt/CPsuite-R82&lt;BR /&gt;3.31 /opt/CPsuite-R82/fw1&lt;BR /&gt;2.10 /sysimg/CPwrapper&lt;BR /&gt;2.10 /sysimg&lt;BR /&gt;2.10 /sysimg/CPwrapper/linux&lt;BR /&gt;1.67 /opt/CPda&lt;BR /&gt;1.60 /opt/CPda/backup&lt;BR /&gt;1.26 /var&lt;BR /&gt;1.10 /usr&lt;BR /&gt;1.07 /opt/CPda/backup/CheckPoint#CPUpdates#All#6.0#5#5#BUNDLE_R82_JUM&lt;BR /&gt;BO_HF_MAIN#60&lt;BR /&gt;0.96 /opt/CPshrd-R82&lt;BR /&gt;0.83 /opt/CPsuite-R82/fw1/uca&lt;BR /&gt;0.83 /opt/CPsuite-R82/fw1/uca/services&lt;BR /&gt;0.79 /sysimg/CPwrapper/linux/MiniWrapper&lt;BR /&gt;0.79 /sysimg/CPwrapper/linux/MiniWrapper/AutoUpdatePkgs&lt;BR /&gt;0.76 /var/opt&lt;BR /&gt;0.63 /opt/CPsuite-R82/fw1/uca/services/ssh_tunneling_service&lt;BR /&gt;0.61 /usr/lib&lt;BR /&gt;0.60 /opt/CPsuite-R82/fw1/lib&lt;BR /&gt;0.54 /opt/CPda/backup/CheckPoint#CPUpdates#All#6.0#5#5#BUNDLE_R82_JUM&lt;BR /&gt;BO_HF_MAIN#60/LastTake&lt;BR /&gt;0.53 /opt/CPda/backup/CheckPoint#CPUpdates#All#6.0#5#5#BUNDLE_R82_JUM&lt;BR /&gt;BO_HF_MAIN#60/Completely&lt;BR /&gt;0.53 /opt/CPda/backup/CheckPoint#CPUpdates#All#6.0#5#5#BUNDLE_R82_JUM&lt;BR /&gt;BO_HF_MAIN#44/LastTake&lt;BR /&gt;0.53 /opt/CPda/backup/CheckPoint#CPUpdates#All#6.0#5#5#BUNDLE_R82_JUM&lt;BR /&gt;BO_HF_MAIN#44&lt;BR /&gt;0.50 /opt/CPInstLog&lt;BR /&gt;0.50 /var/lib&lt;BR /&gt;0.48 /var/opt/CPsuite-R82/fw1&lt;BR /&gt;0.48 /var/opt/CPsuite-R82&lt;BR /&gt;0.43 /var/lib/containers&lt;BR /&gt;0.43 /var/lib/containers/storage&lt;BR /&gt;0.42 /var/lib/containers/storage/overlay&lt;BR /&gt;0.42 /sysimg/CPwrapper/linux/CPrt&lt;BR /&gt;0.38 /var/opt/CPsuite-R82/fw1/conf&lt;BR /&gt;0.35 /opt/CPshrd-R82/database&lt;BR /&gt;0.34 /var/lib/containers/storage/overlay/c747bfa2786a13693ad26665e2b8&lt;BR /&gt;5858dd7292b941c50bb80ccb248716c165f2&lt;BR /&gt;0.34 /var/lib/containers/storage/overlay/c747bfa2786a13693ad26665e2b8&lt;BR /&gt;5858dd7292b941c50bb80ccb248716c165f2/diff&lt;BR /&gt;0.34 /var/lib/containers/storage/overlay/c747bfa2786a13693ad26665e2b8&lt;BR /&gt;5858dd7292b941c50bb80ccb248716c165f2/diff/usr&lt;BR /&gt;0.33 /var/lib/containers/storage/overlay/c747bfa2786a13693ad26665e2b8&lt;BR /&gt;5858dd7292b941c50bb80ccb248716c165f2/diff/usr/lib&lt;BR /&gt;0.32 /opt/CPsuite-R82/fw1/oracle_oi&lt;BR /&gt;0.32 /opt/CPsuite-R82/fw1/uca/services/ssh_tunneling_service/tmp&lt;BR /&gt;0.32 /opt/CPsuite-R82/fw1/uca/services/ssh_tunneling_service/32.99159&lt;BR /&gt;2023/pkg&lt;BR /&gt;0.32 /opt/CPsuite-R82/fw1/uca/services/ssh_tunneling_service/32.99159&lt;BR /&gt;2023&lt;BR /&gt;0.29 /sysimg/CPwrapper/linux/CPuepm&lt;BR /&gt;0.28 /opt/CPbios_upg/bin&lt;BR /&gt;0.28 /opt/CPbios_upg&lt;BR /&gt;0.27 /var/opt/fw.boot&lt;BR /&gt;0.27 /var/lib/containers/storage/overlay/c747bfa2786a13693ad26665e2b8&lt;BR /&gt;5858dd7292b941c50bb80ccb248716c165f2/diff/usr/lib/python3.11&lt;BR /&gt;0.26 /var/opt/fw.boot/modules&lt;BR /&gt;0.25 /opt/CPcvpn-R82&lt;BR /&gt;0.24 /var/lib/containers/storage/overlay/c747bfa2786a13693ad26665e2b8&lt;BR /&gt;5858dd7292b941c50bb80ccb248716c165f2/diff/usr/lib/python3.11/site-packages&lt;BR /&gt;0.24 /opt/CPsuite-R82/fw1/bin&lt;BR /&gt;0.22 /opt/CPshrd-R82/database/downloads&lt;BR /&gt;0.22 /opt/CPshrd-R82/database/downloads/ONLINE_SERVICES/1.0&lt;BR /&gt;0.22 /opt/CPshrd-R82/database/downloads/ONLINE_SERVICES&lt;BR /&gt;0.21 /usr/lib/locale&lt;BR /&gt;0.20 /opt/CPsuite-R82/fw1/scripts&lt;BR /&gt;0.19 /usr/bin&lt;BR /&gt;0.19 /opt/CPsuite-R82/fw1/cpm-server&lt;BR /&gt;0.19 /opt/CPshrd-R82/jre_64&lt;BR /&gt;0.18 /opt/CPshrd-R82/jre_64/lib&lt;BR /&gt;0.18 /etc&lt;BR /&gt;0.17 /opt/CPsuite-R82/fw1/api&lt;BR /&gt;0.17 /opt/CPsuite-R82/fw1/oracle_oi/cleancontent&lt;BR /&gt;0.16 /opt/OSHF/R82_JUMBO_HF_MAIN&lt;BR /&gt;0.16 /opt/OSHF&lt;BR /&gt;0.16 /opt/CPsuite-R82/fw1/scripts/tex_watermark&lt;BR /&gt;0.16 /opt/CPsuite-R82/fw1/scripts/tex_watermark/lib&lt;BR /&gt;0.16 /opt/CPshrd-R82/jre_32&lt;BR /&gt;0.16 /opt/CPshrd-R82/jre_32/lib&lt;BR /&gt;0.15 /opt/CPsuite-R82/fw1/oracle_oi/cleancontent/jre&lt;BR /&gt;0.15 /opt/CPsuite-R82/fw1/oracle_oi/cleancontent/jre/lib&lt;BR /&gt;0.15 /opt/CPsuite-R82/fw1/uca/services/rabbitmq&lt;BR /&gt;0.15 /usr/lib/modules&lt;BR /&gt;0.15 /usr/lib/modules/4.18.0-372.9.1cpx86_64&lt;BR /&gt;0.15 /opt/CPsuite-R82/fw1/api/docs&lt;BR /&gt;0.15 /sysimg/CPwrapper/linux/CPmho&lt;BR /&gt;0.15 /opt/CPotelcol&lt;BR /&gt;0.15 /opt/CPsuite-R82/fw1/api/docs/data&lt;BR /&gt;0.15 /usr/lib/modules/4.18.0-372.9.1cpx86_64/kernel&lt;BR /&gt;0.14 /opt/CPsuite-R82/fw1/Python&lt;BR /&gt;0.13 /opt/CPDepInst&lt;BR /&gt;0.13 /usr/lib/firmware&lt;BR /&gt;0.12 /etc/ppk.boot&lt;BR /&gt;0.12 /opt/CPcvpn-R82/htdocs&lt;BR /&gt;0.12 /opt/CPsuite-R82/fw1/appi/update&lt;BR /&gt;0.12 /opt/CPsuite-R82/fw1/appi&lt;BR /&gt;0.12 /opt/CPshrd-R82/bin&lt;BR /&gt;0.12 /opt/CPsuite-R82/fw1/Python/lib/python3.11&lt;BR /&gt;0.12 /opt/CPsuite-R82/fw1/Python/lib&lt;BR /&gt;0.11 /opt/CPDepInst/backup&lt;BR /&gt;0.11 /opt/CPshrd-R82/database/postgresql&lt;BR /&gt;0.11 /usr/share&lt;BR /&gt;0.11 /usr/lib/modules/4.18.0-372.9.1cpx86_64/kernel/drivers&lt;BR /&gt;0.10 /opt/CPsuite-R82/fw1/Python64&lt;BR /&gt;0.10 /opt/CPsuite-R82/fw1/ngm&lt;BR /&gt;0.10 /usr/lib64&lt;BR /&gt;0.09 /opt/CPsuite-R82/fw1/oracle_oi/fonts&lt;BR /&gt;0.09 /opt/CPsuite-R82/fw1/Python64/lib/python3.11&lt;BR /&gt;0.09 /opt/CPsuite-R82/fw1/Python64/lib&lt;BR /&gt;0.09 /opt/CPsuite-R82/fw1/Solr7&lt;BR /&gt;0.08 /opt/CPshrd-R82/lib&lt;BR /&gt;0.08 /opt/HealthCheckPoint&lt;BR /&gt;0.08 /var/lib/containers/storage/overlay/3447f66692cec3a0d62e6b5373b8&lt;BR /&gt;a40134ea3b331546dd0d2ad1385138555bb8&lt;BR /&gt;0.08 /var/lib/containers/storage/overlay/3447f66692cec3a0d62e6b5373b8&lt;BR /&gt;a40134ea3b331546dd0d2ad1385138555bb8/diff&lt;BR /&gt;0.08 /opt/CPsuite-R82/fw1/uca/services/rabbitmq/tmp&lt;BR /&gt;0.08 /opt/CPsuite-R82/fw1/uca/services/rabbitmq/56.991592054/pkg&lt;BR /&gt;0.08 /opt/CPsuite-R82/fw1/uca/services/rabbitmq/56.991592054&lt;BR /&gt;0.08 /var/lib/containers/storage/overlay/3447f66692cec3a0d62e6b5373b8&lt;BR /&gt;a40134ea3b331546dd0d2ad1385138555bb8/diff/usr&lt;BR /&gt;0.08 /var/lib/containers/storage/overlay/3447f66692cec3a0d62e6b5373b8&lt;BR /&gt;a40134ea3b331546dd0d2ad1385138555bb8/diff/usr/lib&lt;BR /&gt;0.08 /var/opt/CPsuite-R82/fw1/conf/SMC_Files&lt;BR /&gt;0.08 /opt/CPsuite-R82/fw1/default_cpm_db&lt;BR /&gt;0.07 /opt/CPshrd-R82/database/downloads/ONLINE_SERVICES/1.0/300126101&lt;BR /&gt;617&lt;BR /&gt;0.07 /opt/CPshrd-R82/database/downloads/ONLINE_SERVICES/1.0/300126041&lt;BR /&gt;554&lt;BR /&gt;0.07 /opt/CPshrd-R82/database/downloads/ONLINE_SERVICES/1.0/290126221&lt;BR /&gt;656&lt;BR /&gt;0.07 /opt/CPda/bin&lt;BR /&gt;0.07 /opt/CPSamlPortal&lt;BR /&gt;0.07 /rest_api&lt;BR /&gt;0.07 /opt/CPsuite-R82/fw1/Solr7/solr-webapp/webapp&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 14:18:02 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2026-02-10T14:18:02Z</dc:date>
    <item>
      <title>Directory size script</title>
      <link>https://community.checkpoint.com/t5/Scripts/Directory-size-script/m-p/269219#M1421</link>
      <description>4</description>
      <pubDate>Tue, 10 Feb 2026 14:18:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Directory-size-script/m-p/269219#M1421</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-10T14:18:02Z</dc:date>
    </item>
  </channel>
</rss>

