Watch Filesize On Command Line

1 minute read 00000 views shell
# Watches a file and prints its size every 5 seconds
❯ watch -n 5 "ls -lh my_file.csv | awk '{print \$5}'"