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 CtrlAltF and log in as root.
Create a new user account by typing useradd user and press Enter. Youll learn more about creating user accounts in Chapter
Create a password for the new user account by typing passwd user and press Enter. At the first prompt for entering the new password, type in password and press Enter. At the second prompt to retype the password, type in password again.
Log out of the root account by typing logout and press Enter.
Login as user using the password from the earlier step.
Type in pwd and press Enter. You should see homeuser This is the user 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
