Navigation on the Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Navigation on the Raspberry Pi == * In this lesson we will be learning how to navigate up and down the file structure of the Raspberry Pi. This lesson can be applied to an...") |
No edit summary |
||
| Line 3: | Line 3: | ||
* In this lesson we will be learning how to navigate up and down the file structure of the Raspberry Pi. This lesson can be applied to any Linux operating system. | * In this lesson we will be learning how to navigate up and down the file structure of the Raspberry Pi. This lesson can be applied to any Linux operating system. | ||
== Learning Objectives == | |||
* Learn how to navigate the Linux directory | * Learn how to navigate the Linux directory | ||
* Finding the Raspberry Pi internal IP address | * Finding the Raspberry Pi internal IP address | ||
| Line 10: | Line 10: | ||
* Updating the Raspberry Pi system software library | * Updating the Raspberry Pi system software library | ||
== Learn how to navigate the Linux directory == | |||
=== Open the Raspberry Pi Terminal === | |||
* From the Raspberry Pi desktop open up the Terminal. | * From the Raspberry Pi desktop open up the Terminal. | ||
* The Terminal is the small black box looking icon at the top left of the Desktop | * The Terminal is the small black box looking icon at the top left of the Desktop | ||
| Line 19: | Line 19: | ||
[[File:Screen Shot 2021-12-16 at 9.07.52 pm.png]] | [[File:Screen Shot 2021-12-16 at 9.07.52 pm.png]] | ||
=== Adjusting font settings === | |||
* When you first open the Terminal you may need to adjust the Font settings. | * When you first open the Terminal you may need to adjust the Font settings. | ||
* To edit settings, from the top drop-down menu select Edit > Preferences. | * To edit settings, from the top drop-down menu select Edit > Preferences. | ||
| Line 32: | Line 32: | ||
[[File:Screen Shot 2021-12-16 at 9.12.09 pm.png]] | [[File:Screen Shot 2021-12-16 at 9.12.09 pm.png]] | ||
== Navigating on the Raspberry Pi == | |||
=== Check for files and directories === | |||
* Now that we know how to open up the Terminal we can use it to navigate around the Raspberry Pi. | * Now that we know how to open up the Terminal we can use it to navigate around the Raspberry Pi. | ||
* When we start we are in the user pi home directory. | * When we start we are in the user pi home directory. | ||
| Line 43: | Line 43: | ||
[[File:Screen Shot 2021-12-16 at 9.14.02 pm.png]] | [[File:Screen Shot 2021-12-16 at 9.14.02 pm.png]] | ||
=== Navigating up and down directories === | |||
* The directory structure on the Raspberry Pi is arranged in the form of a tree. | * The directory structure on the Raspberry Pi is arranged in the form of a tree. | ||
* To go back down the tree - towards the root - we need to enter the command cd .. (cd and two dots) | * To go back down the tree - towards the root - we need to enter the command cd .. (cd and two dots) | ||
Revision as of 10:28, 16 December 2021
- In this lesson we will be learning how to navigate up and down the file structure of the Raspberry Pi. This lesson can be applied to any Linux operating system.
Learning Objectives
- Learn how to navigate the Linux directory
- Finding the Raspberry Pi internal IP address
- Make directories and files in the Terminal
- Learn how to read and modify files
- Updating the Raspberry Pi system software library
Open the Raspberry Pi Terminal
- From the Raspberry Pi desktop open up the Terminal.
- The Terminal is the small black box looking icon at the top left of the Desktop
- When you open the Terminal it will appear as a large window with a black background.
- All inputs to this window will be text (command based). We won't use a mouse.
Adjusting font settings
- When you first open the Terminal you may need to adjust the Font settings.
- To edit settings, from the top drop-down menu select Edit > Preferences.
- Click on the box to the right of Terminal font.
- This will open up another window where you can adjust font size and type.
- Increase the font size to 18.
- Click Select and then OK to make the changes permanent.
Check for files and directories
- Now that we know how to open up the Terminal we can use it to navigate around the Raspberry Pi.
- When we start we are in the user pi home directory.
- To list all the files and directories we enter the command ls
- You should see a list appear:
- white items are files
- blue items are directories (directories can be empty, or have other files and directories inside)
- The directory structure on the Raspberry Pi is arranged in the form of a tree.
- To go back down the tree - towards the root - we need to enter the command cd .. (cd and two dots)
- cd is short for Change Directory
- Every time we enter this command (cd ..) it will take us down the tree.
- The Terminal tells us that we have moved down one branch and are now in the /home directory
- If we enter the command cd .. again it will take us right down to the root of the tree.
- This is symbolised by the / (forward slash) symbol.
- Using the ls command we can have a look around to see what branches are coming up out of the root (/) directory.
- Enter the command ls




