@@ -34,10 +34,25 @@ We will learn to `navigate between directories` and the difference between **abs
`Home` is for Linux, it will be called `Users` on MacOSX
## List files and directories (ls)
The `ls` command allows to list the content of a directory.
!!! question "Check what files and directories are present in the current directory using the `ls` command."
??? example "Click to show the solution"
`ls`
Check if you can see the {{extra.working_directory}} directory.
??? example "Click to show the solution"
`ls {{extra.working_directory}}`
## Change directory (cd)
Check what files and directories are present in the current directory using the `ls` command.
Check if you can see the {{extra.working_directory}} directory. If you see it you can move in it using the `cd` command. This command means `Change Directory`.
If you see {{extra.working_directory}} you can move in it using the `cd` command. This command means `Change Directory`.
```bash
cd{{extra.working_directory}}
...
...
@@ -48,9 +63,7 @@ cd {{extra.working_directory}}
??? example "Click to show the solution"
You can look at your prompt or check with the `pwd` command.
## List files and directories (ls)
The `ls` command allows to list the content of a directory.
## List files and directories (ls -F)
!!! question "How you differentiate between a file and a directory? Run the `ls` command if you are unsure."