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

Running commands as root


Linux is an inherently secure operating system. Every part of the operating system has been configured to be secure by default. Every file is owned by a particular user, and that user is able to allocate permissions to that file in order to restrict other users and groups from accessing the file.

By default, all commands that are run in bash are run as the current user. The current user is normally the Pi user. This user is a standard user, and this means that you will not be able to run any commands that can affect other users, such as installing software or changing the network configuration of your Raspberry Pi.

Fortunately, it is easy to run commands as the root or superuser. This user has unlimited access to every part of the operating system and must be used with caution.

To run a command as the superuser, you can use use the sudo utility. The sudo utility lets you run a command as a different user from what you are logged in as.

In order to use the sudo utility...

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