Basic CommandsLesson 5Free preview
Bash List (ls)
This lesson is part of Bash · All levels
Summary
The ls command displays a list of files and directories in a folder. Option -a displays a hidden file that is preceded by a dot, while -l provides a long format containing permissions, owners, and sizes. Options can be combined, for example ls-la to see all files in detailed format.
Key points
- I'm showing the contents of the current directory in a natural way
- a displays a hidden file
- I'll give you details of permission, owner, size, time.
- R is displaying the contents recursively
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.