What is the meaning of the second column in ls -lisa command ?
ls -lisa
total 12
280187 0 -rw-rw-r-- 2 embedded embedded 0 Apr 3 02:05 a.txt
But i don't know for what the second column stands for?
Just like you navigate in your File explorer or Finder with a GUI, the ls command allows you to list all files or directories in the current directory by default, and further interact with them via the command line.
The last column is the name of the file. By default, the ls command will not show hidden files. In Linux, a hidden file is any file that begins with a dot (. ).
How to Sort the ls Output. As we already mentioned, by default the ls command is listing the files in alphabetical order. --sort=extension (or -X ) - sort alphabetically by entry extension. --sort=size (or -S) - sort by file size.
The ls command also accepts some flags (also known as options) which are additional information that changes how files or directories are listed in your terminal. In other words, flags change how the ls command works: ls [flags] [directory]
The second column is the result of the -s (--size) option, it represents the allocated size of the file, always a multiple of the allocation unit. http://linuxcommand.org/lc3_man_pages/ls1.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With