Question: write a BASH script that gathers information about a system. Include ONLY the following information: Current User @ Hostname CPU name and speed Free and

write a BASH script that gathers information about a system.
Include ONLY the following information:
Current User @ Hostname
CPU name and speed
Free and Total memory
Free and Total swap space
Free and Total space on ext4 and XFS partitions
Current IP address and Subnet or CIDR Mask (do not display Bcast or Brd)
Use theechocommand in your script to document what you're looking at and to separate information.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!