CSCI 57 and 65: Introduction to Unix Courses
Laboratory Assignment 3
1. TURN-IN a hard copy of the following:
- On all homework please include
- Your Name
- Course Number
- Date
- ecst login name
- This homework is to be printed from unix. You must include the printing cover page (details given in lab).
- To print use the command lpr -Pparrot <filename>
- To view the printer queue use the command lpq -Pparrot
- (parrot is the name of the printer in our lab)
- Please answer the following questions (answers and/or help given in lab). Use pico (or other editor) to type your answers.
- How can you customize the Bash shell prompt?
- How do you create a Bash alias (Give an example)?
- What is the command for changing your default shell?
- What machine do we have to go to in order to change our default shell on campus?
- What does a .forward file do?
- What is the PATH variable for?
- How can you view your current PATH variable?
- What command can you use to search for a term in a man page?
- How do you exit from viewing a man page?
- How can you go back a screenful when viewing a man page?
- What does a pipe do? Give an example of using one.
- What wildcard matches zero or more characters?
- What does the ln command do?
- What command do you use to change your password in unix?
- What command do you use to exit from a shell in unix?
- What does the -R option for the command ls do (read the man page, type man ls)?
- Take a look at the man page for bash. What person or organization holds the copyright for bash?
- What do the -f and -i options for rm do (read the man page, man rm)?
- What does the -r option for rm do (read the man page, man rm)?
- What is inside the file /user/s/toddj/somefile.txt (view the file)?
- Start the pico editor by typing pico, next type <control>-G to view the help, <control>-V to view the next page of help, <control>-X to exit. Alternatively read the man page for pico which will also have this information (type man pico). Note: none of the following answers should mention arrow keys.
- How can you move forward a character (without the arrow keys)?
- How can you move backward a character (without the arrow keys)?
- How can you move forward a page of text?
- How can you move backward a page of text?
- How can you move to the beginning of the current line?
- How can you move to the end of the current line?
- How can you search for text neglecting case?
- How can you cut and paste text in pico?
- Read the preamble to the GNU General Public License, there is a copy at /user/s/toddj/gpl.txt
- In your own words what does this license mean (2-5 sentences)?