line will show the number of files in the directory that can be read, written, and executed by the user. The second line will contain the number of files that were modified in the last 14 days. The...

line will show the number of files in the directory that can be read, written, and executed by the user. The second line will contain the number of files that were modified in the last 14 days. The third line will show the name of the largest file in the directory. Finally, the last line will contain a comment-separated list of the hidden files in the directory. All of the output lines should be preceded by an appropriate message. Thus, the output should have the following format: Number of rwx files: 5 Number of modified files: 10 Largest file: test.dat Hidden files: .profile, .bashrc, .myfile.txt 2. (40 points) Write a shell script that will create a new password-type file that contains user information. The file should contain information about the last five users added to the system with each line describing a single user. This information is contained in the last five lines of both the /etc/shadow and the /etc/passwd files. Specifically, you should produce a file where each line for a user contains the following fields: user name, encrypted password, and shell. The fields should be separated using the colon (:) character.
Oct 09, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here