Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a single-line command for each scenario listed below: 1.Write a command that makes a directory called EX1 inside your home directory. 2. Write a

Write a single-line command for each scenario listed below:
1.Write a command that makes a directory called EX1 inside your home directory.
2. Write a command that makes a directory called EX2 inside your EX1 directory.
3.Create a text file called practice inside your EX1 directory.
4.Insert this content inside the practice1 file: touch practice2.txt .
5.Append this content inside the practice1 file: echo 'File creation complete!'
6.Change the permissions of the practice1 file so only the owners can read, write, and execute.
7.Execute practice1.
8.Rename practice1 to complete_practice.txt. 9.Move and rename practice2 to EX2 and name it total_practice.txt.
10.Inside complete_practice, create a variable called name and assign it the value of your last name.
11.Append this content inside complete_practice: echo 'Hello, my name is: ${name}'
12.Change the permissions of the complete_practice file so everyone can read, write, and execute.
13.Execute complete_practice.
14.Word count complete_practice and insert those results into total_practice.
15. List all the contents in your home directory into the total_practice file.

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions