Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A) Make a script to find all old, unused files, larger than 1 megabyte, starting at a directory supplied by the user (default: /tmp). Make

A) Make a script to find all old, unused files, larger than 1 megabyte, starting at a directory supplied by the user (default: /tmp). Make old be more than a month by default, but allow the user to change it. Similarly make the size be one megabyte by default, but allow the user to change it. (Use find command.)
B)Log in remotely to newton.csmcis.net. Can you tell which daemon is handling your login? (Think ps and PPID.) . Write a script to show the commands to do this. The daemon you are after is the last process owned by "root" that starts your login session going. The process it starts has the same name, but is owned by you, and finishes setting up your current session.
C) Try to find the largest regular files in some of the partitions, either on newton.csmcis.net or (even better) on your own machine (if its some flavor of UNIX.) Try using the du and sort commands. Unless you can run as root (superuser), you wont be able to see the sizes of all the files; try to find out what you can. Either write a script, or describe the commands you would use to do this. You could try to find the largest files (and maybe directories) on the whole machine, or in a particular partition (which is best), or just in your own account. Think of this as trying to to remove some files to get more space from a full disk partition, so you might want to see the directories that contain the large files, and decide if they are very important (not to be deleted), or old, no-longer-useful files.
if you guys could also explain your answeres step by step that would help alot aswell

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions