Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can u write BASH script for it The purpose of this script is to display some important identity information about a computer so that you

can u write BASH script for it

The purpose of this script is to display some important identity information about a computer so that you can see that information quickly and concisely, without having to enter multiple commands or remember multiple command options. It is a typical script in that it is intended to be useful, time and labour saving, and easily used by any user of the computer regardless of whether they know or understand any of the commands in your script. The improvements we will are designed to include more information and make it easier to read with more concise and human friendly data.

  • Use an output template, with a cat command or something similar that has embedded variables for your report data
  • The output must have a blank line followed by a title with a separator line, and a matching separator line with a blank line at the end.
  • Each data item in the output must be labelled.
  • The hostname must be in a report title as a simple hostname, and the fully qualified domain name must be in the report detail like in the previous lab.
  • The operating system name and version must have only the distro name and version.
  • Only one IP address is to be shown and it is be the IP address used by your computer when sending or receiving data from the interface that provides your default route to the internet so use the ip route command to find that address.
  • Only your free disk space number is to be on the root filesystem space line and it must be be a human-friendly number

example output

$ ./sysinfo.sh Report for myvm =============== FQDN: myvm.home.arpa Operating System name and version: Debian GNU/Linux 10 (buster) IP Address: 192.168.0.16 Root Filesystem Free Space: 5.6G

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

Computer Networking A Top-Down Approach

Authors: James F. Kurose, Keith W. Ross

5th edition

136079679, 978-0136079675

More Books

Students also viewed these Computer Network questions

Question

Find the frequency domain current I0 as shown. j1 Io 2

Answered: 1 week ago

Question

=+a) Whether to invest in solar energy companies.

Answered: 1 week ago

Question

14. Let X be uniform over (0, 1). Find E[X|X Answered: 1 week ago

Answered: 1 week ago