Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.1Login, passwords, shell and prompt Login to the system. Read the man page for

ID: 3782137 • Letter: 1

Question

1.1Login, passwords, shell and prompt

Login to the system.

Read the man page for script

Initiate a script named lab1pt1, and use the following commands:

        date

        whoami

        who

close your script

logout

1.2Calendars, dates and time

Login to the system

Initiate a script named lab1pt2, and do the following:

Tell us what time it is

What day is today, and what day of the week

Use a command to get the calendar of the current month

Use a command to find out what day of the week the first day (0001) of this year was

Use a command to find a historical fact about the year 1752

Close your script

Explanation / Answer

1) hwclock

2) DOW=$(date +%u)

3) cal

4) echo -n "The week of the date 01jan2017: "
echo -n `date -d 20170101 +%A`
5) man cal

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote