Linux Tools

Linux Tools Basic Commands

Linux Tools Basic Commands

by Badhan Shaha -
Number of replies: 0

1. What is shell?

Ans: Shell is a program which processes commands and returns output, like bash in Linux.

2. What is terminal?

Ans: Terminal is a program that runs a Shell.

3. What is user friendly in between terminal and GUI & why?

Ans: GUI, because you can do things using a mouse, no need for typing commands.

4. What defines a user account?

Ans: Linux is multi-user system. This means more than one person can use the Linux. With the help of various software servers, configurations, and commands, multiple users can use Linux.

5. What is root user?

Ans: The root is the user or account that by default has access to all commands and files on a Linux or other Unix-like operating system.

6. What is general purpose user?

Ans: General purpose user has limited access to Linux. Day-to-day tasks can be executed using this account but the system can not be modified with this account.

7. What are the difference between root user and general purpose user?

Ans: The main difference between general purpose and  root user is  that root user can make changes to the system while the general purpose user can not.

8. What is the meaning of sudo?

Ans: sudo is an abbreviation of "super user do" and is a Linux command that allows programs to be executed as a super user (aka root user) or another user.

9. What is the meaning of su?

Ans: The Unix command su, which stands for substitute user, is used by a computer user to execute commands with the privileges of another user account.

10. Why we use sudo?

Ans: For gaining administrator or root privileges on current account.

11. Why we use su?

Ans: For gaining administrator or root privileges on another account.

12. How to create a user account?

Ans: Use "sudo adduser 'username'" command.

13. How to delete a user?

Ans: Use "sudo userdel 'username'" command.

14. How to login into a user account?

Ans: Use "sudo login 'username'" command.

15. How to logout from a user account?

Ans: Use 'logout' command.

16. How many times it requires password for creating a user account?

Ans: 2.

17. How to exit from root?

Ans: Use 'exit' command.

18. What is the meaning of sudo adduser {username}?

Ans: Create new user with the specified username.

19. What is the meaning of deluser {username}?

Ans: Delete user by the specified username.

20. What is the meaning of sudo su?

Ans: Switch to root user with all the privileges.

Attachment 1.png
Attachment 2.png
Attachment 3.png
Attachment 4.png