From the course: Learning Linux Command Line
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Understand user roles and sudo - Linux Tutorial
From the course: Learning Linux Command Line
Understand user roles and sudo
- [Instructor] Modern Linux is a multi-user environment. On older systems and on single user systems, there's only one user. Whoever uses the computer is the system administrator, and they can do whatever they want. On a multi-user system, I can have a user, you can have a user, and our files are kept separate in our individual home directories. We can create files that only one or another user can access. At the command line, we can switch between users with the SU command, which is variously referred to as set user, switch user, or substitute user. To use SU, we write that command, followed by the name of the user we want to switch to, and then we'll need to provide the password for that user. One of the most common tasks for switching users at the command line is to do some system administration tasks. There are two basic user roles on a modern Linux system, normal users and the super user. The difference is one of privilege. A normal user can modify, create, delete, and move their…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
The Linux file system5m 48s
-
(Locked)
Understanding file paths4m 47s
-
(Locked)
Navigating the file system5m 42s
-
(Locked)
Finding directory and file information4m 46s
-
(Locked)
Create and remove directories3m 47s
-
(Locked)
Copy, move, and delete files and directories8m 50s
-
(Locked)
Find files from the command line2m 29s
-
(Locked)
Understand user roles and sudo6m 7s
-
(Locked)
Understand file permissions6m 16s
-
(Locked)
Modify file permissions8m 9s
-
(Locked)
Create hard and symbolic links3m 53s
-
(Locked)
Challenge: Fix broken syntax20s
-
(Locked)
Solution: Fix broken syntax1m 7s
-
(Locked)
Challenge: Practice working with files29s
-
(Locked)
Solution: Practice working with files24s
-
(Locked)
-
-
-