I need help with the following Final. If you can provide the commands so I can e
ID: 3723311 • Letter: I
Question
I need help with the following Final. If you can provide the commands so I can enter them into the bash environment. I want to enter them myself so I can become more familiar.
Getting Your Bearings: In this section of the final project, you will demonstrate your ability to execute commands to verify and confirm the status of the directory, files, and user account. At the end of this section, you will create a log file that will include a list of all the commands you used to complete these steps Navigate: The first step in this process, which you will provide evidence for in your log file, is to view the following using Linuxcommands: A. Current directory B. Current user C. Directory contents I Command list information: Your next step will be to utilize a resource inside the Linux operating system that can provide you with more information for how to utilize commands A. Utilize a command to access key command information that would inform which command switch to use to show all files in the directory including hidden files. Review the directory contents again utilizing a command with a switch that includes hiddenfiles. B. II IV. V. VI. Locate a file: Locate and open a file in the Linux workspace directory that contains the following text string: lastbackup File permissions: Locate the whoownsme.txt file and confirm that all users have the ability to execute the file Running processes: View all the processes running in the system in order ofpriority Log file: Utilize a Linux command to create a log file that contains all of the commands you have utilized up to this point, and ensure all of the commands utilized in critical elements I through V are listed. Title this file Bearings_Log_File.txt, and download this file forsubmission.Explanation / Answer
** Commands as per your queries are as below
1. Navigate :
A. Current Directory
ans: pwd
B. Current User
ans: whoami
(or $ echo $USER)
C. Directory Contents
ans: ls -l
2. Command list information :
A. Command to show all files in directory including hidden
ans: ls -a
B. Directory contents include hidden files
ans: ls -al
3. Locate a file :
ans: grep -r "lastbackup"
4. File permissions :
ans: find . -name whoownsme.txt -ls
(Result : 4195203 4 -rw-r--r-- 1 6003 6003 55 Mar 5 04:45 ./whoownsme.txt)
(In result permissings are "-rw-r--r--". Yo can chech from here that all users have execute permission or not. ugoa rwx)
(u - Owner, g - Group, o - Others, a - All users)
(r - Read, w - Write, x - Execute)
5. Running processes :
ans: top -n 1
6. Log file :
ans: history > Bearings_Log_file.txt