# `ls`

`ls` lists files and directories.

## Common `ls` usage

- Use `ls` to see what files and folders are in the current location.

- The default is to list the files in the current directory. Adding options can change how the list is organized.

```bash
ls [option] [directory]
```

List directories

```bash
ls -d
```

Long list format 

```bash
ls -l
```

Sort by time (newest first)

```bash
ls -t
```

List files with file size in kilobytes/megabytes/gigabytes

```bash
ls -h
```

Sort alphabetically

```bash
ls -X
```
