Skip to content
Snippets Groups Projects
Commit 86fb7aaf authored by alexis.dereeper_ird.fr's avatar alexis.dereeper_ird.fr
Browse files

Update bash-3-navigating.md

parent 7b18506a
No related branches found
No related tags found
No related merge requests found
Pipeline #39164 passed
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment