Write a shell script that will describe the current directory in four lines. The first line will show the number of files in the directory that can be read, written, and executed by the user.

computer science

Description

Problem Description 1. (40 points) Write a shell script that will describe the current directory in four lines. The first 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

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.


Related Questions in computer science category