Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Raspbian

You're reading from   Learning Raspbian Get up and running with Raspbian and make the most out of your Raspberry Pi

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784392192
Length 154 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
William Harrington William Harrington
Author Profile Icon William Harrington
William Harrington
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. The Raspberry Pi and Raspbian 2. Getting Started with Raspbian FREE CHAPTER 3. Starting Raspbian 4. An Introduction to the Raspbian Desktop 5. Installing Software on Raspbian 6. The Console 7. Other Linux Distributions Based on Raspbian A. References Index

Moving around the filesystem using bash


The most basic part of using a command interpreter, such as bash, is to be able to move around the Linux filesystem. It is important to understand how bash lets you represent directories. This is done in two different ways: using absolute paths and relative paths.

Absolute paths

An absolute path is a path that describes the location of a file or folder starting from / (root). This is easy to spot as it will always start with /.

An example of an absolute path is /home/pi/Desktop. This path is the folder that contains all the items on your desktop.

Relative paths

A relative path is a path to the file or folder that is described based on where you are in the filesystem.

An example of a relative path is ../Desktop. This means that a folder called Desktop is stored in a folder that is one level above the one you are in.

There are several special paths that you should know of in bash, as follows:

Path

Description

/

This is the root of the Linux filesystem...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime