Question: Write a script file named SecondScript.sh that does the following actions All files should be created and saved in your user home directory. show the

Write a script file named "SecondScript.sh" that does the following actions All files should be created and saved in your user home directory.

  • show the current user-id
  • print on the screen "Current listing under / "
  • list all directories under /
  • print on the screen "Current listing under the user home "
  • list directories and files under your user home directory
  • save the listing under your user home directory into a file named "User_home_files"
  • sort and print the content of the "User_home_files"
  • list all currently running processes
  • save all currently running processes under a file named "User_processes"
  • Change the permission on "User_processes" file to be read-only for user, groups and other.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!