Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 4 - 2 ESTIMATED TIME: 1 5 minutes OBJECTIVE: Copy files and directories. DESCRIPTION: In this hands - on project, you copy files and
Project
ESTIMATED TIME: minutes
OBJECTIVE: Copy files and directories.
DESCRIPTION: In this handson project, you copy files and directories using the cp command.
Switch to a commandline terminal tty by pressing CtrlAltF and log in to the terminal using the user name of root and the password of LINUXrocks!.
Next, type ls F at the command prompt and press Enter. Note the contents of your home folder.
At the command prompt, type cp sample and press Enter. What error message was displayed and why?
At the command prompt, type cp sample sampleA and press Enter. Next, type ls F sample at the command prompt and press Enter. How many files are there and what are their names?
At the command prompt, type cp sample mysamplessampleB and press Enter. Next, type ls F sample at the command prompt and press Enter. How many files are there and what are their names?
At the command prompt, type cd mysamples and press Enter. Next, type ls F at the command prompt and press Enter. Was sampleB copied successfully?
At the command prompt, type cp rootsample and press Enter. Next, type ls F at the command prompt and press Enter. How many files are there and what are their names?
At the command prompt, type cp sampleB and press Enter. Next, type cd at the command prompt and press Enter. At the command prompt, type ls F sample and press Enter. Was the sampleB file copied successfully?
At the command prompt, type cp sample sample sample 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?
At the command prompt, type cd and press Enter. Next, type cp mysamples mysamples at the command prompt and press Enter. What error message did you receive? Why?
At the command prompt, type cp R mysamples mysamples and press Enter. Next, type ls F at the command prompt, and press Enter. Was the directory copied successfully? Type ls F mysamples at the command prompt and press Enter. Were the contents of mysamples successfully copied to mysamples
Type exit and press Enter to log out of your shell.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started