Question: Write a shell script (bash or sh) that prints out the following lines/information: 1. Name: Your name 2. Hostname: The computer's hostname 3. Host IP:

Write a shell script (bash or sh) that prints out the following lines/information: 1. Name: "Your name" 2. Hostname: "The computer's hostname" 3. Host IP: "The computer's IP number" 4. Default Gateway: "The computer's default gateway" 5. OS Version: "Whatever information on the OS version you can get programmatically" 6. Memory: "The amount of physical memory (not disk) the system has" 7. CPU Speed: "The CPU speed (in Hz not MIPS) the system thinks it has" 8. Disk space: "The amount of aggregate physical disk the system has" 9. A blank line (or two) 10. The shell script itself Only your name may be hard coded, the rest must be obtained programmatically within the shell script. Only the requested information should be output and only one line per item including label.

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!