Question: Solve Using terminal on ubuntu Section 1: Working with a directory in Linux. Display your current directory. Change to your Desktop directory, (the Desktop directory

Solve Using terminal on ubuntu

Section 1: Working with a directory in Linux.

Display your current directory.

Change to your Desktop directory, (the Desktop directory already exists in your home directory ~).

Create the following hierarchy directory on your Desktop directory.

List a long listing of the Desktop directory and Mybooks directory.

Go to the technicalbooks directory.

Create a booklist.txt file containing the following text:

Information Technology Law

Technology Society

Rename the file booklist.txt to technicalbook-list.txt.

Save a copy of technicalbooks directory on your Documents directory (the Documents directory already exists in your home directory) and list the contents of the Documents directory.

Go to the technicalbooks directory on Documents directory, and list the contents of this directory.

Remove technicalbooks directory on Mybooks directory, and list the contents of the Mybooks directory.

Section 2: Working with File in Linux and File Compression.

Go to the technicalbooks directory on your Documents directory, and display the type of file technicalbook-list.txt

Save a copy of file technicalbook-list.txt on the same directory, and give it named tech-book-list.txt. And list a long listing of the technicalbooks directory

Change the date on file technicalbook-list.txt to match your current date and time and list a long listing of the technicalbooks directory for displaying the date.

Go to Documents directory. Compress technicalbooks directory into a new archive using gzip, and give the new archive named tech-book-archive. And list the contents of the Documents directory.

Stay in the Documents directory, and now extract the tech-book-archive archive into your home directory (~). And list the contents of your home directory (~).

Section 3: I/O REDIRECTION USING PIPES.

Create a file called security-book-list.txt, and add the following text to it:

And then, sort the content of security-book-list.txt depending on the second column.

Count words, lines, and characters in file security-book-list.txt

Using a pipe, print the following message (Group3 Group3), and substitute '3' for '5'.

Using a pipe, set all letters to uppercase in security-book-list.txt

Using a pipe, print the following message (Monday), and use regular expression with (&&) character to reference the searched string Mon.

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 General Management Questions!