1. What is shell?
Ans: Shell is an environment in which we can run our commands, programs, and shell scripts. There are different flavors of a shell, just as there are different flavors of operating systems.
2. What is terminal?
Ans: Terminals, also known as command lines or consoles, allow us to accomplish and automate tasks on a computer without the use of a graphical user interface.
3. What is user friendly in between terminal and GUI & why?
Ans: The difference between GUI and CLI is that the GUI allows the user to interact with the system using graphical elements such as windows, icons, menus while the CLI allows the user to interact with the system using commands. In brief, GUI is more user-friendly, and CLI is more advanced and powerful.
4. What defines a user account?
Ans: A user account is an identity created for a person in a computer or computing system. User accounts can also be created for machine entities, such as service accounts for running programs, system accounts for storing system files and processes, and root and administrator account for system administration.
5. What is root user?
Ans: The root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system.
6. What is the general-purpose user?
Ans: A general-purpose computer is one that, given the appropriate application and required time, should be able to perform most common computing tasks. Personal computers, including desktops, notebooks, smartphones and tablets, are all examples of general-purpose computers.
7. What is the difference between the root user and general-purpose user?
Ans: "root" is the actual name of the administrator account. "sudo" is a command which allows ordinary users to perform administrative tasks. ... Root user has user id 0 and nominally has unlimited privileges. Root can access any file, run any program, execute any system call, and modify any setting.
8. What is the meaning of sudo?
Ans: Superuser do
9. What is the meaning of su?
Ans: Substitute user
10. Why we use sudo?
Ans: The sudo command allows you to run programs with the security privileges of another user (by default, as the superuser). It prompts you for your personal password and confirms your request to execute a command by checking a file, called sudoers , which the system administrator configures
11. Why we use su?
Ans: The most common use of the su is to get superuser privileges. It is often mistaken as an abbreviation for “superuser”, but it is an abbreviation for “substitute user”. When using su, we can run it with or without the – argument
12. How to create a user account?
Ans:
13. How to delete a user?
Ans:
14. How to login into a user account?
Ans:
15. How to logout from a user account?
Ans:
16. How many times it requires a password for creating a user account?
Ans: Mainly 2 but I'm gonna say 3 times. (1st- the administration password) (2nd-new password for user account) (3rd-confirm Password)
17. How to exit from the root?
Ans:
18. What is the meaning of Sudo adduser {username}?
Ans: Superuser do add user (name). That means Sudo = access the root, adduser = Add USER, {username}= Give the user a name.
19. What is the meaning of deluser {username}?
Ans: Delete user.
20. What is the meaning of sudo su?
Ans: sudo su - The sudo command allows you to run programs as another user, by default the root user. If the user is granted with sudo assess, the su command is invoked as root. Running sudo su - and then typing the user password has the same effect the same as running su - and typing the root password
Here is all the things I did In class: