Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Digital Forensics Write a Linux command associated to each one of the following

ID: 3906485 • Letter: D

Question

Digital Forensics

Write a Linux command associated to each one of the following actions; 1.- Show on a terminal all the users in the system. 2.- Using the app GNU PG encrypt the file data.txt 3. Mount the device /etc/sdb1 in /media/myUSB 4.- Change the permission of the file data.txt to be read, written and execute only by its owner. 5.- Create the tar file data.txt.tar.ga 6. Recover the content of the file data.txt.tar.gz in the folder /backup_tmp/ 7.- Write a command to show only the hidden files in the current directory 8.- Write a command for finding all files in the system with extension jpg. 9.- Write a command to show all files accessed in the last 24 hours by any user in the system 10. Write a command to find all the files in the current directory that contain the word X007. Concepts in practice: Linux System Basics.

Explanation / Answer

Please Note: As per Chegg Answering Guidelines, I have answered the first four questions. Please Post Separate for Separate Questions.

1. Show on terminal all the users in the system.

$ awk -F':' '{ print $1}' /etc/passwd

The above command shows all the usernames in the system from the /etc/passwd file.

2. Using the app GNU PG encrpt the file data.txt

$ gpg -c data.txt

The above command excrypts the file data.txt

3. Mount the device .etc/sdb1 in /media/myUSB

sudo mount .etc/sdb1 /media/myUSB

.etc/sdb1 is the path to the device and /media/myUSB is the directory for the USB stick.

4. Change the permission of the file data.txt.tar.gx to be read, written and execute only by its owner.

chmod go-rwx data.txt.tar.gx // removing the permissions from all users

chmod u=rwx file // adding permissions of rwx for the owner only.