E-mail : support@tech2now.in

How to find file is greater than 1GB in Linux

Linux Linux command ls pwd cp mv more grep tail

#!/bin/bash

directory=”/path/to/directory”

echo “Files larger than 1GB in $directory:”
echo “———————————-“

find “$directory” -type f -size +1G -exec ls -lh {} \;