Question: Lab 2 . 1 Manage Files STEP 1 . Open a terminal window. Answer: Click Applications in the menu bar, then Utilities, then Terminal. STEP
Lab Manage Files
STEP Open a terminal window.
Answer: Click Applications in the menu bar, then Utilities, then Terminal.
STEP Display your current directory.
Answer: Enter the following:
pwd
STEP Using an absolute pathname, switch to the etc directory.
Answer: Enter the following:
cd etc
STEP Using a relative pathname, move to the etcskel directory.
Answer: Enter the following:
cd skel
STEP Using a relative pathname, move up one directory.
Answer: Enter the following:
cd
STEP List the files in the current directory.
Answer: Enter the following:
ls
STEP Perform a long display listing of the files in the current directory.
Answer: Enter the following:
ls l
STEP List all the files in the current directory that begin with the letter s
Answer: Enter the following:
ls s
STEP Run the command that will determine the type of contents in the etcgroup file.
Answer: Enter the following:
file etcgroup
STEP Display only the last five lines of the etcgroup file.
Answer: Enter the following:
tail n etcgroup
STEP Execute the command to return to your home directory.
Answer: Enter the following:
cd
STEP Make a directory named data in the current directory.
Answer: Enter the following:
mkdir data
STEP Copy the etcpasswd file into the data directory.
Answer: Enter the following:
cp etcpasswd data
STEP Copy the etcppp directory into the current directory and ignore any Permission denied error messages
Answer: Enter the following:
cp r etcppp
STEP Rename the ppp directory that is located in the current directory to peers.
Answer: Enter the following:
mv ppp peers
STEP Update the timestamp of the datapasswd file to the current date and time.
Answer: Enter the following:
touch datapasswd
STEP Create a new empty file named test in the data directory.
Answer: Enter the following:
touch datatest
STEP Delete the datapasswd file.
Answer: Enter the following:
rm datapasswd
STEP Delete the peers directory.
Answer: Enter the following:
rm r peers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
