Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Raspbian

You're reading from  Learning Raspbian

Product type Book
Published in Feb 2015
Publisher
ISBN-13 9781784392192
Pages 154 pages
Edition 1st Edition
Languages
Author (1):
William Harrington William Harrington
Profile icon William Harrington

Table of Contents (15) Chapters

Learning Raspbian
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The Raspberry Pi and Raspbian Getting Started with Raspbian Starting Raspbian An Introduction to the Raspbian Desktop Installing Software on Raspbian The Console Other Linux Distributions Based on Raspbian References Index

Manipulating files


Now that you have an understanding of how paths are represented in bash, it is time to learn how to manipulate them.

There are many commands that you can use to manipulate files in bash, which include the commands in the following table:

ls

cd

pwd

cat

head and tail

cp

mv

rm

mkdir

touch

adduser

addgroup

passwd

chmod

chown

ls

ls is perhaps the most common basic function, and is used regularly to see which files are present in the directory that you are in. This is done using the list (ls) command. By default, this is the current folder that you are in. If you want to see the contents of another folder, simply append the path to the end of the ls command.

The contents of the home directory

Tip

ls doesn't display any files or folders that begin with (.). The reason for this is that any file or directories beginning with (.) are hidden.

The ls command has many different options that change the output on your screen. Some common ls parameters...

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 $15.99/month. Cancel anytime}