nstructions:
1. Prefer you to use Python
2. Doesn’t have to be super in depth. He wants to see your thought process and scripting ability.
Directions:
Write a script which will create a tmpfs mount of a certain size. Have the name and size as parms passed into the script. Check to make sure the mount does not already exist, and optionally recreate it (via command line parm). Create the directory if needed.
Write a script which uses multiple calls to ifconfig that reports on each interface which has had traffic, and how much traffic in and out it has had. Ignore NICs with no traffic. Report in bps, kps, mps based on both command-line parm and reasonable values. For instance, if the user requests mps, and there was only 200 bps, then reporting zero would seem silly, so report in bps with a notice.