Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. After your Linux system has been loaded, you are placed at a graphical termin

ID: 3880685 • Letter: 1

Question

1. After your Linux system has been loaded, you are placed at a graphical terminal (tty1). Instead of logging in to this graphical terminal, press CtrlþAltþF2 to switch to a command-line terminal (tty2) and then log in to the terminal using the user name of root and the password of LNXrocks!. Which prompt did you receive and why?

2. At the command prompt, type date and press Enter to view the current date and time. Now, type Date and press Enter. Why did you receive an error message? Can you tell which shell gave you the error message?

3. Switch to a different command-line terminal (tty5) by pressing CtrlþAltþF5 and log in to the terminal using the user name of user1 and the password of LNXrocks!. Which prompt did you receive and why?

4. At the command prompt, type who and press Enter to view the users logged in to the system. Who is logged in and on which terminal?

5. Switch back to the terminal tty2 by pressing CtrlþAltþF2. Did you need to log in? Are the outputs from the date and Date commands still visible?

6. Try typing in each command listed in Table 2-6 in order (pressing Enter after each) and observe the output. What did the last command (exit) do?

7. Switch to the terminal tty5 by pressing CtrlþAltþF5 and type exit to log out of your shell.

Explanation / Answer

According to the question we need to perform some task in Linux command prompt.

so, we will follow the following steps --

1. When we will open the command-line terminal then it will ask the name of the root and password.

and when we enter both then we will be entered inside the tty2 command-line terminal and here we can perform various operation and

can give different command to the system.

2. Now we will type 'date' here so we will get the current date and time on the command prompt because date is a command which is already implemented in the Linux libraries while if we enter 'Date' then it will display command not found error because Linux is case sensitive enviourment for its terminal which we are using now. so, date and Date are different things.

3. Now we will press Alt+F5 to switch from the current command-line terminal and when we will enter the credential of another user then we will enter in the new command-line terminal because every command-line terminal have its own credential to protect it. Linux is a very secure Operating System because of its security measures like that.

4. If you type who command on the terminal then it will display various name --because who is a command which display the current log who is already logged in. So, it will display the list of all users.