Question: linux command: ANSWER THE FOLLOWING QUESTIONS USING ANY LINUX MACHINE OF YOUR CHOICE: (i.e. you may use MAC terminal Linux or Linux on Windows-10) PART-1

linux command:

ANSWER THE FOLLOWING QUESTIONS USING ANY LINUX MACHINE OF YOUR CHOICE: (i.e. you may use MAC terminal Linux or Linux on Windows-10) PART-1 of the lab: 1- Use mkdir command to create a directory called lab1 and use cd command to go to that folder. Type pwd command. Make a screen shot and paste it here -- showing all the commands you have done. 2- Create a file called example1 using vi. Write the statement: this is file example1. Then save and exit. Use cat command to show the content of that file. 3- Copy example1 to another file called example2. Use ls to show the files under the current directory. 4- Use vi and change the sentence in example2 to become this is file example2. Save and exit. Use the cat command to show the content of both files. Copy and paste the result of the cat command. 5- Change the directory back to your home directory (i.e. go one level up). 6- Use the ls l command and use ls F command. Copy and paste the result of each. Explain each command. You may type man ls to get information about ls. 7- What is the relative pathname of example2 file. Use the relative pathname of example2 to cat the content of that file from the current directory you are in. 8- What is the absolute pathname of example2? 9- Remove example2 and use the ls command to show that you have removed it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!