Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started