Question: LINUX Power On the Virtual Machine in your ITN 170 Virginia Cyber Range Environment name CentOS 7 Logon using the student account (if required) account
LINUX
Power On the Virtual Machine in your ITN 170 Virginia Cyber Range Environment name CentOS 7
Logon using the student account (if required)
account name = student
Password = student
Download a copy of the file name animals from CANVAS and save it on the student account Desktop
/home/student/Desktop/
Use the following command to change the permission of the animal file
$ chmod a+rwx animals
Create a new user account using your firstname and set a password for your account
Username = firstname
Add your new account to the wheel group
See the attached file/instruction on how to create your own username and add it to wheel group. Make sure this step is completed before moving forward.
You should have multiple account directory in your /home folder (example, student and your new created student name firstname)
use the command su firstname to switch into your new account (firstname)
You should be working under your newly created account directory (/home/your_firstname)
Verify to make sure you are under your newly created account your_firstname by using pwd command
Very important step to complete under your account (firstname) before you proceed
You should be working under your firstname account: /home/your_firstname
Type the command to list all files and directories under your username: there should be no files
Use the following command below to copy the animals file from /home/student/Desktop to your account "firstname" directory
$ sudo cp /home/student/Desktop/animals animals
Type the command to list all files and directories under your home directory
You should see your downloaded file
Type the command to view/display the content of the animals file
Type the command to view the content of the file animals
Make a backup copy of the file animals and name the backup file animals_bak in the same directory
Create a folder call Backup and move the animals_bak file into the Backup folder
Switch to the Backup folder and view the folder list
Type a command to switch back into your home folder/directory
Type the command to show your current location
Change the permissions on the file animals using the following settings:
You can use symbols or numeric criteria
Owner: read, write, and execute
Group: read
Others: read
Type the command to find anyone with the lastname Reptile from the file animals and sort the output in alphabetical order
$
Type the command to list only the firstnames of anyone by the name Dragon from the file animals
$
Type a command to print the names of animals from line 10 through 15 and save it or output it to a file call animal_selection
$
Type the command to replace animal names with lastnames Aves with Apes in the entire file and output it to a file call animal_apes
$
Delete the backup folder you created earlier
Create a file name superman
Then move superman file to /tmp directory
Remove/delete superman file from /tmp directory
Finally, use wildcard to create 6 random directories in your home directory.
List the directories
$
Use wildcard to delete all 6 directories at the same time
$
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
