This exercise asks us to ‘list all files and directories in the working directory.’ What does that mean?
So far, we’ve learned how to use two key commands:
pwd. If we use
ls, it’ll show all files and directories in the directory you’re currently in – also known as the ‘working directory.’
By default, the
ls command will display all directories (folders), files, programs, etc. Specifically, all the directories and files that aren’t hidden. To include hidden stuff, we can do
ls -a, and anything you see prefaced with a period is a hidden file, like
What are hidden files and stuff?
All the files and directories which names starts with
. are not listed out when you use
ls command without additional options and that files and directories are called hidden. Hidden files and directories are commonly used for purposes of storing configuration information.
why not include this command in lesson with example?? Is this info necessary?
My guess is that the purpose of this course is to introduce and give one an overarching view of the tools available for command line and discuss its purpose.
It means list of all the files or directories in the current working directory.
‘ls’ command is used to accomplish this.