Viewing the contents of a directory using the command line
The ls
command is used to list the contents of a directory:
ls
The following command will also list all files in subdirectories:
ls -R
The following command will also show hidden files:
ls -a
The following command will list files and directories with detailed information such as permissions, size, owner:
ls -al
Use the appropriate command to view the contents of the dir
folder.