Lab 5.doc - NHTI Concord’s Community College IST170C Introduction to Linux I Fall 2017 Lab 5 1 What command would you enter to display a detailed

Lab 5.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 5 1. What command would you enter to display a detailed listing of all the files, to include the hidden files, in your home directory? ls -a 2. What command would you enter to view the files and subdirectories that start with the letter u in the /etc directory? ls /etc/u* 3. What command would you enter to see what type of file the updatedb.conf file in the /etc directory is? file /etc/updatedb.conf 4. What command would you enter to create a file named newfile.txt in the /tmp directory? mkdir /tmp touch newfile.txt 5. You are currently in your home directory (/home/sysadmin ). What command would you enter to copy the food.txt file in the test child directory to the /tmp directory? cp /home/sysadmin/food.txt /tmp/test 6. You are currently in your home directory (/home/sysadmin ). What command would you enter to rename the file food.txt in the test child directory to
Image of page 1

Subscribe to view the full document.

Image of page 2
Image of page 3

Unformatted text preview: foods.txt ? mv tmp/test/food.txt ~/foods.txt 7. Enter the command(s) in the Lab 5 Linux virtual machine needed to copy the red.txt file in test child directory in your home directory (/home/sysadmin ) to the /tmp/colors directory and rename it Red.txt . Do a detailed listing of the /tmp/colors directory to show that that the red.txt file was copied and renamed. Insert a screenshot showing this below. 1 8. In the Lab 5 Linux virtual machine, enter the command(s) needed to create a new directory named new in the /tmp/colors directory and then add a file named newfile.txt to the new directory. Do a listing that shows all the contents of the /tmp/colors directory. Then enter the command(s) needed to delete the /tmp/colors directory and all its contents. Do a listing of the /tmp directory to show that that the colors directory has been deleted. 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