Maurice manages the file servers with Jen, and he says that one of the servers keeps running out of disk space. He needs to keep an eye on the files that are saved to the servers to make sure that no one is duplicating large files or saving any abnormal files. The reason this is a problem today because one of the primary servers is out of disk space right now and he is having trouble finding something he can safely delete or move somewhere else.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I got an answer to my question but I don't know where parts of the answer such as not psls container and C:\reports came from. Is there a simpler method or solution to this issue?

Problem
Maurice manages the file servers with Jen, and he says that one of the servers keeps running out of disk space. He needs to keep an eye on the files that are saved to the servers to make
sure that no one is duplicating large files or saving any abnormal files.
The reason this is a problem today because one of the primary servers is out of disk space right now and he is having trouble finding something he can safely delete or move somewhere
else.
Please create a script that will:
Ask the user to type the path to a folder; this will be the folder that they want to be inspected.
Example: C:\Users
Recursively examine the files and folders inside that path and produce the following three reports:
• Top 5 Newest Files
o Show the 5 most recent files created.
• Top 15 Largest Files
Show the 15 largest files.
• Top 20 Recently Accessed Files
o Show the 20 most recently accessed files sorted by file type.
Save your findings as three professional looking files in the C:\Reports\2021\ directory (one file per report).
· Format the information as a table with headings, columns, and rows.
· Each file should start with a line that includes the report's name (see above) followed by one or more lines that include a two-sentence description of what the report is.
- Use the following file names:
· Top 5 Newest Files: top5recent.txt
• Top 15 Largest Files: top15largest.txt
- Top 20 Recently Accessed Files: top20accessed.txt
- Use of new lines, ascii characters, and other elements to improve the look of the report should be utilized.
For all three of your reports, you should include the following information in your output, in the following order:
· Full path to the file.
· File size in GB.
- Date and time the file or folder was last changed.
· Date and time the file or folder was last accessed.
Transcribed Image Text:Problem Maurice manages the file servers with Jen, and he says that one of the servers keeps running out of disk space. He needs to keep an eye on the files that are saved to the servers to make sure that no one is duplicating large files or saving any abnormal files. The reason this is a problem today because one of the primary servers is out of disk space right now and he is having trouble finding something he can safely delete or move somewhere else. Please create a script that will: Ask the user to type the path to a folder; this will be the folder that they want to be inspected. Example: C:\Users Recursively examine the files and folders inside that path and produce the following three reports: • Top 5 Newest Files o Show the 5 most recent files created. • Top 15 Largest Files Show the 15 largest files. • Top 20 Recently Accessed Files o Show the 20 most recently accessed files sorted by file type. Save your findings as three professional looking files in the C:\Reports\2021\ directory (one file per report). · Format the information as a table with headings, columns, and rows. · Each file should start with a line that includes the report's name (see above) followed by one or more lines that include a two-sentence description of what the report is. - Use the following file names: · Top 5 Newest Files: top5recent.txt • Top 15 Largest Files: top15largest.txt - Top 20 Recently Accessed Files: top20accessed.txt - Use of new lines, ascii characters, and other elements to improve the look of the report should be utilized. For all three of your reports, you should include the following information in your output, in the following order: · Full path to the file. · File size in GB. - Date and time the file or folder was last changed. · Date and time the file or folder was last accessed.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY