POS/433 Version 1 Linux Script Worksheet - University of Phoenix Material

This assignment includes completed exercises for a Linux script worksheet.

Caleb Patterson
Contributor
4.7
60
about 1 month ago
Preview (2 of 3)
Sign in to access the full document!
Linux Script Worksheet
POS/433 Version 1
1
University of Phoenix Material
POS/433 Version 1 Linux Script Worksheet
Linux® Script Worksheet
To: <Insert your facilitator's name>
From: <Insert your name>
Date: <Insert the date (XX/XX/XXXX)>
Before beginning the Linux® Script Worksheet, update the PATH variable to add your folder from
last week. You will find how to do this on p. 134 of Linux® Command Line and Shell Scripting
Bible.
Linux® Script 1
Requirements
In the same folder as last week, create a new file titled week3prog1[name].scr.
Change the permissions on this new file to add the execute bit for user, group, and owner.
Edit your new file using Gedit or VI and change it so it performs the following actions:
Display the date.
Display the words Hello World.
Display information about users that are currently logged in.
Note. Remember to include #!/bin/bash as the first line of your script.
Save the file and type your file name to execute.
Source Programs
#!/bin/bash
echo "check out date is: "
date
echo "Hello World "
echo "Information about users that are currently logged in "
who
Output Results
Preview Mode

Sign in to access the full document!

100%

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

University
University of Phoenix
Subject
Information Technology

Related Documents

View all