CIT 221 Lab 4_Chapter 3 Lab 1

.docx

School

Ball State University *

*We aren’t endorsed by this school

Course

221

Subject

Finance

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by MegaTank12168

Report
CIT 221 Lab 4: Chapter 3 Lab 1 Directions: Utilizing a Linux based virtual machine, follow what each step tells you and make sure to answer every question in its entirety. Once completed, upload this document to the appropriate Canvas submission link. 1. Open a terminal and issue the following commands: a. name=“bob” b. echo $name c. Paste a screenshot of running these commands here: d. What is displayed to the terminal after issuing echo $name ? e. Why you are receiving this output? 2. Issue the following commands: a. export AGE=25 b. echo $AGE c. Paste a screenshot of running these commands here: d. What does the export command do? e. What does the echo command do? f. Open up a second terminal and issue the following commands: i. echo $name ii. echo $AGE g. Explain the output you see. Why do you see output from one command but not the other? 3. Issue the set command. What does this command do? 4. Issue the env command. What does this command do? 5. Issue a command to delete the name variable that you defined earlier. Record the command here: 6. Issue a command to delete the AGE variable that you defined earlier. Record the command here:
7. Issue the following commands: a. echo $name b. echo $AGE c. Was any output returned? Why or why not? d. Paste a screenshot of running the commands from 7a and 7b here: 8. Issue the command echo $PATH. What out is displayed? a. What does this output represent? 9. Issue the command which ls . What output is displayed and what does this output represent? 10. The __________ file keeps track of commands typed into the shell. For security reasons it may not be a good idea for this file to keep a list of commands. Determine what command can be used to clear the contents of this file and record it here: 11. The ____________ command will display all of the commands that have been typed into the terminal. To determine what the first command was and devise a way to quickly recall that command WITHOUT typing it in the terminal again. Record the answer here:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help