Write a script file named “SecondScript.sh” that does the following actions
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.
The post Script file first appeared on COMPLIANT PAPERS.