List Files
Part of the Fundamentals section of Coddy's Terminal journey. Lesson 5 of 82.
ls command stands for list. It shows you all the files and folders inside your current directory.Simply type ls and press Enter:lsdocuments
readme.txtls:ls -l: shows a detailed list with file sizes, permissions, and dates:ls -lls -a: shows all files, including hidden files that start with a .:ls -als -la: combines both options, showing a detailed list of all files including hidden ones:ls -lals documentsdocuments folder without having to navigate into it first.Challenge
BeginnerUse the ls command to list the visible files and folders in your current directory.
Hint:
lstakes no arguments when listing the current directory, just type it and press Enter! Hidden files (the ones starting with.) stay out of the way until you ask for them withls -a.
Try it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
4Directories
Create A DirectoryCopy A DirectoryMove And Rename A DirectoryDelete A DirectoryRecap - Directory Operations7File Content
Head And TailWord CountSort CommandUnique CommandGrep BasicsGrep With FlagsRecap - Text Detective2Navigation
Print Working DirectoryList FilesChange DirectoryAbsolute vs Relative PathsHome And Root DirectoryRecap - Find Your Way8Redirection
Standard OutputOverwrite To A FileAppend To A FileStandard InputStandard ErrorRecap - Log Builder6Wildcards And Patterns
The Star WildcardThe Question Mark WildcardBracket WildcardsCombining WildcardsRecap - Selective Operations9Piping
What Is A PipeChaining Two CommandsChaining Multiple CommandsPipe With GrepRecap - Data PipelinePractice on your own: Terminal playground