Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Boot into Centos and login as the user, student (password: student402!) not as root. Create an empty file in your home directory (ie /home/user1) name

Boot into Centos and login as the user, student (password: student402!) not as root.

Create an empty file in your home directory (ie /home/user1) name maya Mylog.txt.

Run a command that will repeat back a message you type but direct the output to Mylog.txt: type SYSTEM INFO.

Run the command that displays following and have the out redirected append to Mylog.txt.

Operating system

Kernel Release

Machine name

Run a command that lists the name of the logged in user and appended this to Mylog.txt.

Create a directory in your home directory (ie /home/user1) name this directory MyFiles.

Run a directory listing of the new directory and showing the Mylog.txt file but have the list be appended to Mylog.txt.

Run a command that will repeat back a message you type but direct the output to Mylog.txt: type The above information is a directory listing of /home/user1 and append it to Mylog.txt

Change your path to the MyFiles directory.

Use the touch command to create 10 files in MyFiles with extensions txt, doc, mp3, jpeg (10 of each type).

Run a directory listing of the new directory showing the multiple files but have the list be redirected and appended to Mylog.txt. Make sure to include all the file info in the listing.

Create another new folder in /home/user1 named OurFiles (see if you can create this directory from your current path without changing directories).

In OurFiles create a folder named Text.

In OurFiles create a folder named DOC.

In OurFiles create a folder named JPEG.

In OurFiles create a folder named MP3.

Copy all the TXT files from MyFiles to OurFiles/Text.

Move all the DOC files from MyFiles to OurFiles/DOC.

Copy all the JPEG files from MyFiles to OurFiles/JPEG.

Move all the MP3 files from MyFiles to OurFiles/MP3.

Run a listing of OurFiles and files in the subdirectories, redirect, and append to Mylog.txt.

Delete the MyFiles directory and its contents.

Output all of your the previous commands you typed and append to Mylog.txt.

Change to your user profile directory (/home/user1) and run a listing that shows hidden files. Direct the output of this to a new text file named Myhist.txt.

Append the contents of Myhist.txt to Mylog.txt.

Display the contents of the .bash_history.

Run a command that will search for a file in /usr directory or one of its subdirectories that has the text dummy-virt. Direct the output of your search to Mylog.txt.

Using Vi, open Mylog.txt and add headings like with the Step 1 to all your outputs. For example:

Step 9 Directory listing of MyFiles folder

Take screenshots of the opened Mylog.txt files to show the contents

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_2

Step: 3

blur-text-image_3

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

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions

Question

6. Describe why communication is vital to everyone

Answered: 1 week ago