Article 5FD40 Shell script menu option

Shell script menu option

by
iamin
from LinuxQuestions.org on (#5FD40)
I need to create a script with different menu options one of them is to have an option to create a file that contains
1. who is logges
2. disk usage
3. running processor.
The file should be date stamped and saved to a directory.

I'm new to linux so i'm trying to figure this out. So far i know 1)that to stamp i file i can use (date"+%Y.%m.%d"),
2)to show who is logged in i can use the who command
3)to show disk space is df-h
4)running processors ps -aux
5) to create a file is touch.
How do i put these together to create this menu option?

Thank you for all the help!latest?d=yIl2AUoC8zA latest?i=wt1Dwg_QEw8:MtTRjX2TGXI:F7zBnMy latest?i=wt1Dwg_QEw8:MtTRjX2TGXI:V_sGLiP latest?d=qj6IDK7rITs latest?i=wt1Dwg_QEw8:MtTRjX2TGXI:gIN9vFwwt1Dwg_QEw8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments