Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the size command of linux to list the file byte size

Shulou Source: shulou.com Published: 2022-06-02 19:50:12 09月22日 Update

What the editor shares with you today is to use the size command of linux to list the file byte size. I believe many people don't know much about it. In order to make you understand better, I summed up the following contents and looked down together. I'm sure you'll get something.

The size command, which is used to view the size of the segments and their sum in the target file, library, or executable, is a member of the GNU binary toolset GNU Binutils.

Syntax format: size [parameters] [file]

Common parameters:

Reference example

View the size of each segment of the specified program:

[root@linuxcool ~] # size / bin/size

View the segment size of each target file in the static library:

[root@linuxcool ~] # size / usr/lib64/libc.a this is the end of listing file byte sizes using linux's size command. I hope the above content can be used as a reference for everyone. If you like this article, you might as well share it for more people to see.

Tags: File size command byte content parameter goal reference learning for application binary value instance tool common use sum article more format look program Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS vpn Shulou Information OPPO Reno Linux