Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Result of linux 'ls -lisa' command

Tags:

linux

ls

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
  • The total command means the number of allocated 512-Byte blocks.
  • The first column shows the I-Node number.(280187)
  • The 3rd column shows the permissions.(-rw-rw-r--)
  • The 4rd column shows the number of hard-links for the inode.(2)
  • The 5th column shows user and group.(embedded embedded)
  • The 6th column shows the size of the file.(0)
  • The 7th column shows the date of the last change(Apr 3 02:05)
  • The last column shows the name of the file(a.txt)

But i don't know for what the second column stands for?

like image 942
cominfotty Avatar asked Apr 03 '17 10:04

cominfotty


People also ask

What is the ls command in Linux?

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.

What is the last column in ls command in Linux?

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 do I sort the output of LS in Linux?

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.

What are LS flags in Linux?

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]


1 Answers

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

like image 109
Alankar Srivastava Avatar answered Oct 16 '22 22:10

Alankar Srivastava