File Size in Bytes using a Shell Command

This page answers questions like these:

File Size in Bytes using a Shell Command:

stat -c '%s' FILE wc -c < FILE ls -l FILE | awk '{print $5}' du -b FILE | awk '{print $1}'



Related Links:
Count Occurrences of a Hexadecimal Sequence in a File
Count Occurrences of a String in a File
Find Positions of a Hexadecimal Sequence in a File
Join Lines of Text File Together
Output Lines of a File in Reverse Order
Output the Lines Between Two Matching Lines

Home  >  Linux / Unix  >  File Size in Bytes using a Shell Command


Tags: file size, filesize, bytes, shell command, shell, command, linux, unix

Src: file-size.txt
Dst: Linux-Unix/file-size-in-bytes-shell-command.htm
Ads: 2