Question: can write the commands using sudo commandThis exercise assumes you are working on CentOS Linux and that the system is booted. Press Ctrl + Alt

can write the commands using sudo commandThis exercise assumes you are working on CentOS Linux and that the system is booted.
Press Ctrl+Alt+F2 and log in as root.
Create a new user account by typing useradd user1 and press Enter. Youll learn more about creating user accounts in Chapter 7.
Create a password for the new user account by typing passwd user1 and press Enter. At the first prompt for entering the new password, type in pass1_1word and press Enter. At the second prompt to retype the password, type in pass1_1word again.
Log out of the root account by typing logout and press Enter.
Login as user1 using the password from the earlier step.
Type in pwd and press Enter. You should see /home/user1. This is the user1 home directory. Remember the pwd command shows you the present working directory of your user.
Type ls -F and press Enter. You should see files listed with a forward slash (/) at the end of their file name. The / symbol at the end of a file name indicates the file is actually a subdirectory. This / symbol designation is only shown when you use the F option on the ls command.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!