Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. You must retrieve some information that can only be viewed from the CLI. From the GUI (Fedora's GUI is called GNOME), switch to the

1. You must retrieve some information that can only be viewed from the CLI. From the GUI (Fedora's GUI is called GNOME), switch to the CLI. What application did you launch to get to the CLI? Application:

2. You want to make sure your system is currently set to use a specific shell. Which command would you run to see your default shell? What was the output on your system when you ran this command? Command: Output:

3. An application you are trying to run is not launching. You have decided to view your system's PATH environment variable to make sure the application's directory is included in the path. What command did you run? What was the output of this command on your system? How many directories are in your path and how did you determine this? Command: Output: Directories:

4. You read an article that said the Z Shell has some features you might be interested in. Run the command that would switch you to this shell from the Bash shell. What was the command and what was the outcome? What would you have to do in this case? Command:

5. Most OSes allow you to have more than one CLI open at a time. You opened a second shell on your system to run a script that took a while and the script is done. Run the command you would run to get out of a second shell and get back to the default shell. What was that command? Command:

6. You are looking for a file named "proposal" that was saved in the Documents directory. You are not sure if the Documents directory is in your present working directory. Run the command that will list the directories in your current directory. What was that command? Command:

7. Most Linux distros include LibreOffice in their installation. Show the instructor how you would launch the LibreOffice word processing program from the command line. Were you able to do it? If so, how? If not, then why?

Command: 8. You start typing the command "shutdown" but can't remember how it ends (or you are simply too lazy to type the remaining keys). Linux has a feature that will complete commands for you. Type "shut" and then use this feature to complete the above command. What key did you press? Key:

9. You typed a command whose parameters you do not remember. As a result, you must look at the "contents" of the hidden file, .bash_history (a file that stores all of your previously entered commands), to be reminded of the parameters. Which command(s) would you run to examine this file's contents?

Command:

10. After moving around the file system from the CLI you have lost your place. Run the command that will tell you where you currently are (displays your present LAB - CH 1 - USING LINUX - PART 1 (1.1 to 1.4.4) - CMSC 253 3 working directory). What command did you use? What was the output of this command on your system? Command: Output:

11. Best practice is for systems administrators to NEVER login with an account that has root permissions. In the course of your work, you have been running scripts and accessing directories that required that you use four different accounts simultaneously due to the permissions needed. Which command would you run to verify who are currently logged in as in a particular shell session?

Command:

12. You are logged in with a regular user account but have to switch to the root user from the CLI to run a command that requires elevated permissions. What command did you run to switch to the root user account? Command: Note: Linux allows you to run one privileged command from the CLI without using su - but by instead using the sudo command. The user running sudo must be in the sudoers file.

13. Your supervisor has asked you to provide a complete list all of the information for your computer (kernel info, hostname, CPU info etc). What command did you run? What was the output of this command on your system? Command:

14. You run the ls -a command to view hidden files in your directory and see that some are blue, some are white, and some are green. What do these colors signify? Blue: White: Green: Note: Links are cyan (greenish-blue). These cyan-colored links basically represent shortcuts which in Linux are called aliases.

15. Navigate to the root directory and fun the ls - al command. Move to your home folder and create a directory named ForInstructor. Which command did you use to create this directory? Then verify that it was indeed created. Which command did you run to confirm this new directory's existence?

Command: Confirmation:

16. Run the command that displays the default aliases for your account? Which command did you run? What were the first two lines of the output?

Command: Output:

17. Use the alias command to create the alias "details" that runs the "ls -l" command. What was the syntax for this command? How can you confirm the command worked? Command: Confirmation:

18. Delete the alias you created in the previous question. What command did you run? How can you confirm the command worked? Command: Confirmation:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions