Write a script file that checks if you have a .profile


1. Create a shell script named LL that lists your directory in a long format.
a. Execute LL using the sh command.
b. Change LL to an executable file.
c. Execute LL again.
2. Create a script file that performs the following:
a. Clears the screen.
b. Skips two lines.
c. Shows the current date and time.
d. Shows the number of the users on the system.
e. Beeps a few times and shows the message Now at your service
3. Modify the largest script file from this chapter to recognize the number of inputs
and display appropriate messages.
4. Write a script file similar to largest that calculates the smallest of three integer num-bers that are read from the keyboard. Make it able to recognize some input errors.
5. Create a script file for each of the script examples in this chapter that were typed at the $ prompt. Make the appropriate modifications if necessary and run them. Use sh with the -x and other options to debug, and investigate the way shell scripts are executed.
6. Write a script file that sums the numbers passed to it as arguments on the command line and displays the results. Use the for loop construct in your program. For ex- ample, if you name this program SUM, and you type $ SUM 10 20 30 [Return] the program displays the following:
10 + 20 + 30 = 60
7. Rewrite the SUM program, this time using the while loop.
8. Rewrite the SUM program, this time using the until loop.
9. Modify the script file largest from this chapter to accept numbers from the com- mand line. For example, you type LARGEST 1 2 3 and the program displays:
The largest numbers is: 3
10. Modify the script file greetings1 from this chapter and use the cut command to calculate the hour of the day.
11. Create a script file called file_checker that reads the filename entered and out-puts the file properties such as: exists, readable and so on.
12. Write a script file named d that shows the current date.
13. Write a script file named t that shows the current time.
14. Write a script file called s that displays the name of your current shell.
15. Write a script file that checks if you have a .profile file in your HOME directory or not and displays an appropriate message.

Ideally it would be preferred if you could have a step-by-step I could follow with additional images for better visualization

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a script file that checks if you have a .profile
Reference No:- TGS082734

Expected delivery within 24 Hours