How to list files in long format with `ls` command?

Artboard Copy 4

Long format refers to the display of additional information fields related to the file along with the filename. These fields include file permissions, owner, group and last modified time.

Explore more about commands in linux using:

[/user]$: man <command_name>

              OR

[/user]$: help <command_name>

Hey!
Go through the man page. (man stands for manual)

Command to be run in terminal :
man ls

Hope it helps!

you may also check this link for few ls command exampleshttps://www.tecmint.com/15-basic-ls-command-examples-in-linux/

I figured out the command on how to show the data and modified date and sort them but the problem is Iā€™m confused about how to write in list_files.sh because the command is the command-line executable.
@gouravsardana

bash file also consists of command line executable commands separated with a ; or new line.

1 Like