Due: Wednesday, January 19, at 11:00pm
This assignments asks you to exercise basic bash commands and activities. Students will submit via Gradescope, and may re-submit after viewing the intial auto-grading output. The goal is to ensure that every student has some fundamental shell skills.
This assignment will not teach you all the commands you many need to complete this course. You should use the Linux Pocket Guide and the Linux man command or the online version of the Linux man pages to find specific commands needed to answer these questions. Use the Pocket Guide to read about related commands and topics.
Google is also useful for locating things, but you need to learn your way around the Guide and the standard Linux documentation, which should be your primary source. Beware that some answers returned by Google are misleading, so use it for more finding the correct direction than for the entire solution.
For this assignment you must use either your account on the cancun.cs.washington.edu machine or your own copy of the CSE Linux Virtual Machine (VM). This will enable the autograder to evaluate your work, as well as give you more experience on those systems. See the Linux Resources page on the course web site for more information about these systems.
NOTES: Sections are highlighted below for ease of reading only. Please be patient with the autograder - we will review all points lost but that will take a little time.
script hw1.script to start recording your work.HW1nownownownow file should have three lines in it. Use the wc command to display the number of lines (and only the number of lines) in the file.now filealias. Enter a command to figure out where this file is. man -k to figure out the name of a command you don't yet know.myaliasmyalias currently has permissions set to be executable by all users. Enter a command to reset the permissions to read & write for the user, and read only for the group and all.vi myalias to open the file in vi.emacs myalias top open the file in emacs.ll and execute the command you used in step 13llemacs to start emacsctrl-z to suspend emacsctrl-z again.grep to find the phrase "emacs"echo, and the existing environment variable USERNAME to print user rocks!, with you as the user, to the screen.printenv, or the value in one variable by entering echo "$VARNAME" mh75 rocks!exit to stop recording your script.This assignment is worth 40 points. (1-2pts per step above.) There will be an autograder, and you are welcome to resubmit your assignment until you get a perfect score (or until the due date).
Hint 0: It is likely worth while going through the assignment twice. The first time work out what to do at each step. You can use all the resources at your disposal, including lectures and demos, man files, and google.Remember that you can also use the history command to look at all the commands you have executed - this may help you review your work in preparation for a second run through that you record for submission.
Hint 1: The scriptcommand records everything, even backspaces. If you have too many corrections there will be a lot of extraneous characters if your hw1.script file that may interfere with the autograder. In this case, repeat the exercise carefully avoiding extra key strokes.
Hint 2: There are usually multiple ways to accomplish a task on Linux, and there are many ways you could accomplish the steps for this assignment. If you use one that is too esoteric the autograder will not give you credit. In this situation you should try using something more straight-forward. If you still feel that the autograder is incorrect, please ask the staff to look at it.
Please submit to the Gradescope HW1 assignment. This is linked through Canvas, or you can go directly through Gradescope. You should submit one file, called hw1.script.