Skip to main content
Skip table of contents

How to Create a Custom Script/Task to Find & List Files Greater than 1GB

It may be desirable to find and list files greater than 1GB in size on a remote sensor as a precursor to removing files in an effort to recover drive space.

Steps for use:

  1. Login to Pwn Pulse, select Scripts from the main drop-down menu.
  2. Select Add a script, provide an indicative name, for example Custom - Files >1GB and select Bash.
  3. In the scripting window, type the following lines and click the Save button.

    find / -type f -size +1048576k -exec ls -lh {} \; | awk '{print $9 ": " $5 }'
  4. Next, select Tasks from the main drop-down menu, then select Add a task.
  5. On the New Task page, provide an indicative name for the task for example Custom - Files >1GB, select the newly created script from the Script drop-down menu.  
  6. For the Add to parameter, choose to run the task specific to a single sensor selected from the drop-down menu, or to a group of sensors.  
  7. Next, select a Start Time and choose a Frequency how often the task should be run (***).  
  8. Afterward, click the Save button.
  9. After the task has completed and assuming the targets were accessible at the time the task was run, the results of the task may be viewed by returning to the Tasks page, then selecting the Results button.


© 2024 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.


Outpost24® and OUTSCAN™ are trademarks of Outpost24® and its affiliated companies. All other brand names, product names or trademarks belong to their respective owners.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.