List (ls)

The `ls` command in Linux is used to list the contents of a directory. Here's an example of how to use `ls`:


```

$ ls


```


In this example, the `ls` command is used to list the contents of the current directory. The output shows the names of the files and directories in the current directory, which include "File1" and "File2"

You can also use options with the `ls` command to modify its behavior. For example, the `-l` option can be used to list files in a long format, which includes additional information such as file permissions, ownership, and size:


```

$ ls -l

total 0

-rw-rw-r-- 1 lalatendu lalatendu 0 May  9 10:48 File1

-rw-rw-r-- 1 lalatendu lalatendu 0 May  9 10:48 File2

```


In this example, the `ls -l` command lists the files in the current directory in a long format. The output shows the same files and directories as before, but with additional information such as the file type and permissions, number of links, owner, group, size, and modification time.