Question
UNIX help!!!! I need what the text would look like in the vi editor. also note this question has been posted before and the answers
UNIX help!!!! I need what the text would look like in the vi editor. also note this question has been posted before and the answers were all wrong!!
Write a shell script (bash or sh) that prints out the following lines/information: Only your name may be hard coded, the rest must be obtained programmatically within the shell script.
Name: "Your name"
Hostname: "The computer's hostname"
Host IP: "The computer's IP number"
Default Gateway: "The computer's default gateway"
OS Version: "Whatever information on the OS version you can get programmatically"
Memory: "The amount of physical memory (not disk) the system has"
CPU Speed: "The CPU speed (in Hz not MIPS) the system thinks it has"
Disk space: "The amount of aggregate physical disk the system has"
A blank line (or two)
The shell script itself
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