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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started