Lab 4.doc - NHTI Concord’s Community College IST170C Introduction to Linux I Fall 2017 Lab 4 1 What single command would you enter to create an

Lab 4.doc - NHTI Concord’s Community College IST170C...

This preview shows page 1 - 3 out of 3 pages.

NHTI, Concord’s Community College IST170C: Introduction to Linux I Fall 2017 Lab 4 1. What single command would you enter to create an environment variable named named CITY with a value of Concord? export 2. What command would you enter to verify that the CITY variable created in #1 has the correct value? echo 3. What command would you enter to view only the environmental variables? env 4. What command would you enter to view the directory the less command (actually the less program) is in? echo $PATH 5. What would you do to see a command you entered previously? Press the up arrow key 6. What command would you enter to execute a previous command that contained the term grep ? history 7. What command would you enter so that the history feature will not store consecutive duplicates or any command that begins with a
Image of page 1

Subscribe to view the full document.

Image of page 2
Image of page 3

Unformatted text preview: space? HISTCONTROL=ignoredups or HISTCONTROL=ignorespace 8. Enter the command in the Lab 4 Linux virtual machine needed to add the sysadmin user’s home directory to the PATH variable and then display the modified PATH variable to confirm. Insert a screenshot showing this below. 1 9. In the Lab 4 Linux virtual machine, create a directory name Scripts in the /home/sysadmin directory by entering the command mkdir Scripts . Copy the hello.sh script created 4.13 Step 12 (and moved to the mybin directory in 4.16 Step 15) to the Scripts directory by entering the command cp /home/sysadmin/mybin/hello.sh /home/sysadmin/Scripts . Execute the hello.sh script using an absolute path and then a relative path. Insert a screenshot showing this below. 2 3...
View Full Document

  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes