Hello folks,
I am a beginner and this is the first time I have started learning how to deal with Unix based operating system and shell programming, I have a doubt as to how to write a pretty simple shell program, it is very simple for someone who knows shell programming and isn't that simple for the one who doesn't know much about it.
I hope some of the members here help me with either providing references or providing me hints as to how to write the code.
Here is the question:
Write a shell script (bash or sh) that prints out the following lines/information:
- 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 programaticly"
- Memory: "The amount of physical memory (not disk) the system has"
- CPU Speed: "The CPU speed (in Hz not mip
the system thinks it has"
- Disk space: "The amount of agregate physical disk the system has"
- A list of shells supported on the system for login (One per line)
- A blank line (or two)
- The shell script