Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux please help In this hands-on project, you copy files using the cp command. Switch to a command-line terminal (tty5) by pressing Ctrl1Alt1F5 and log

Linux please help

In this hands-on project, you copy files using the cp command.

  1. Switch to a command-line terminal (tty5) by pressing Ctrl1Alt1F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.

  2. Next, type ls -F at the command prompt and press Enter. Note the contents of your home folder.

  3. At the command prompt, type cp sample1 and press Enter. What error message was displayed and why?

  4. At the command prompt, type cp sample1 sample1A and press Enter. Next, type ls -F at the command prompt and press Enter. How many files are there and what are their names? Why?

  5. At the command prompt, type cp sample1 mysamples/sample1B and press Enter. Next, type ls -F at the command prompt and press Enter. How many files are there and what are their names? Why?

  6. At the command prompt, type cd mysamples and press Enter. Next, type ls -F at the command prompt and press Enter. Was sample1B copied successfully?

  7. At the command prompt, type cp /root/sample2 . and press Enter. Next, type ls -F at the command prompt and press Enter. How many files are there and what are their names? Why?

  8. At the command prompt, type cp sample1B .. and press Enter. Next, type cd .. at the command prompt and press Enter. At the command prompt, type ls -F and press Enter. Was the sample1B file copied successfully?

  9. At the command prompt, type cp sample1 sample2 sample3 mysamples and press Enter. What message do you get and why? Choose y and press Enter. Next, type cd mysamples at the command prompt and press Enter. At the command prompt, type ls -F and press Enter. How many files are there and what are their names? Why?

  10. At the command prompt, type cd .. and press Enter. Next, type cp mysamples mysamples2 at the command prompt and press Enter. What error message did you receive? Why?

  1. At the command prompt, type cp R mysamples mysamples2 and press Enter. Next, type ls F at the command prompt, and press Enter. Was the directory copied successfully? Type ls F mysamples2 at the command prompt and press Enter. Were the contents of mysamples successfully copied to mysamples2?

  2. Type exit and press Enter to log out of your shell.

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago

Question

How would you use mobile marketing as part of an IMC programme?

Answered: 1 week ago