CIS108 Project CIS129 Project 1 The purpose of this project is to introduce you to creating a script file. Your task is to find the solution (unix command) to each of the items below, then put your...

1 answer below »
h


CIS108 Project CIS129 Project 1 The purpose of this project is to introduce you to creating a script file. Your task is to find the solution (unix command) to each of the items below, then put your solution into a file, execute a shell to run your commands and capture the output into another file. You will: 1. Put all your commands for this project in one text file: project1.sh 2. Find solutions to the items posed below. 3. Put a comment on the line above each of the commands, which explains the command you are using. For example, if the question is to find the number of users on the system: # The number of users on the system echo “The number of users currently logged in is: “ who –q echo echo OR # The number of users on the system echo “The number of users logged in is: `who | wc –l`“ echo echo Both above examples would be a valid answer for that question. A couple of requirements: 1. You should use the Borne Again shell (bash) to complete this project. 2. You must use "echo" statements to complete the heading; project number, your name, date. Notice that the date will show the current date/time the script was executed. Example heading: echo “*********************************************” echo echo “CIS 129 Project 1” echo “Your Name” echo `date` echo echo “********************************************” CIS129 Project 1 Find solutions to the following items: a) Show information about your UID, GID, and any groups you belong to. b) Show your UNIX login name. c) Show the number of users currently logged in. d) Show the directory listing of your home directory in columns. e) Show the absolute path to, and the name of, your home directory. f) Show the last time the cislinux server was booted. g) Using the date command, the cut command and piping, display just the current month of the year. h) Show the first 4 lines of the /etc/passwd file i) Show the last 10 users that have logged onto the server. j) Find the number of lines in the password file, on the server. /etc/passwd k) Create a directory called PROJECT1 and copy all the hidden files from your home directory into the PROJECT1 directory. IMPORTANT: Do NOT use the -r switch on the cp command when copying the hidden files. It is NOT required and will cause other directory structures to be copied and then they can not be removed! l) Show the directory listing for the PROJECT1 directory in reverse alphabetical order. m) Remove the PROJECT1 directory and all files in that directory. n) Print the calendar for June 2000 and November 2005. You must show the calendar entries side-by-side. Deliverables a) Run your solutions file and correct any errors that are displayed RUN: bash project1.sh b) Once you have corrected the errors, redirect the output to a file. RUN: bash project1.sh > project1.out c) Upload both: project1.sh AND project1.out files into Moodle
Answered Same DayFeb 25, 2022

Answer To: CIS108 Project CIS129 Project 1 The purpose of this project is to introduce you to creating a script...

Vibhav answered on Feb 26 2022
139 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here