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
Get step-by-step solutions from verified subject matter experts
