Question
Create a bash script that will run commands based on the requirements below. Before each section, display the category number. Information about your current login.
Create a bash script that will run commands based on the requirements below. Before each section, display the category number.
- Information about your current login.
- username
- user ID
- group ID
- Name of each group your user is part of
- Display information about the current system.
- The current operating system
- Hostname
- Kernel name, release, and version
- Use the date to do the following:
- The date September 5, 2019 in MM/DD/YYYY format
- Current weekday name, month day, year (For Example: Sunday, January 10, 2020)
- The current date and time in RFC 3339 format
Submission:
Place your script in a directory named hw1_FirstLast. For Example: hw1_PatrickEarl. The name of the script doesnt matter, but put .bash as the file extension. main.bash would be fine.
Submit using my submit.bash script. Make sure your current directory is the one created earlier with just the script. Run this command, ~earl/bin/submit.bash csc252, to submit your script.
Please help me the prof. said not to use the $. How do I create this? Thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started