Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions