Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS 129 Project 1 The purpose of this project is to introduce you to creating a script file. Your task is to find the solution

CIS 129 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. I need help please with this.

image text in transcribed

CIS129 Project 1 Find solutions to the following items: 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 of 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 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 1) Show the last 10 users that have logged onto the server. 1) 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. 1) 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. 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 - echo echo OR Deliverables # The number of users on the system echo The number of users logged in is: 'who | wc -1" echo echo a) Run your solutions file and correct any errors that are displayed RUN: bash project1.sh Both of the above examples would be a valid answer for that question. b) Once you have corrected the errors, redirect the output to a file. RUN: bash project1.sh > projecti.out A couple of requirements: c) Upload both project1.sh AND project1.out files into Moodle 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: 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 of 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 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 1) Show the last 10 users that have logged onto the server. 1) 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. 1) 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. 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 - echo echo OR Deliverables # The number of users on the system echo The number of users logged in is: 'who | wc -1" echo echo a) Run your solutions file and correct any errors that are displayed RUN: bash project1.sh Both of the above examples would be a valid answer for that question. b) Once you have corrected the errors, redirect the output to a file. RUN: bash project1.sh > projecti.out A couple of requirements: c) Upload both project1.sh AND project1.out files into Moodle 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 "**

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions