In: Computer Science
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.)
Project 2-2 In this hands-on project, you explore some command-line terminals on a Linux system and enter some basic commands into the BASH shell.
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.
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?
Answer: Since my graphical user interface was on (tty2), I had to use Ctrl+Alt+F3 to switch to a command-line terminal (tty3) and then I logged in using root priviledges. I received a administrator login after given username and password as I gave the administrator credentials.
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?
Answer: date will give us the date, time , global time and year.
Yes, I received an error message upon typing 'Date' and this happended because Linux operating system is case sensistive where 'data' and 'Date' are two different commands.
Date will be any invalid command here.
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?
Answer: We received a basic prompt after login since here we are
not a root user and just an ordinary user.
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?
Answer: root user is loggen in on tty3 terminal, and the ordinary user 'user1' is logged in on tty5 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?
Answer: No I didn't need any login and Yes the outputs from the date and Date commands are 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?
Answer: exit command exited the terminal and we are no longer logged in.
You haven't provided any table 2-6 so I could not execute it properly.
7. Switch to the terminal tty5 by pressing CtrlþAltþF5 and type exit to log out of your shell.
Answer: exit logs out from the shell
If you have any doubts, leave a comment below before rating. I'll be happy to assist you further/
Do UPVOTE this as I have put a lot of EFFORT in answering this question. It really helps me.