Title: Quiz 3-1 - Joys of the Command Line
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review

Q: Write a command to list all of the non-hidden files in your current directory and their create/modify times.
A: ls -l / ls -l|more
If wrong: The command to list all of the non-hidden files in your current directory and their create/modify times is: ls -l

Q: What two people were the primary developers of the UNIX operating system?
A: Dennis Ritchie and Kenneth Thompson / Ken Thompson & Dennis Ritchie / Kenneth Thompson, Dennis Ritchie / Dennis Ritchie and Ken Thompson / Ken Thompson and Dennis Ritchie / Dennis Ritchie, Kenneth Thompson / Ken Thompson Dennis Ritchie / Dennis Ritchie, Ken Thompson / Ken Thompson, Dennis Ritchie / Kenneth Thompson and Dennis Ritchie / Dennis Ritchie & Ken Thompson / Dennis Ritchie, and Kenneth Thompson
If wrong: Dennis Ritchie and Kenneth Thompson were the primary UNIX developers.

Q: Enter a command that will display the calendar for this year.
A: cal 2014 / cal 2014|more
If wrong: The command to display the calendar for this year is: cal 2013

Q: List all files in your current directory that start with a lower case "t".
A: ls t* / ls -d t* / ls -l t* / ls [t]* / ls -d [t]* / ls ./[t]*
If wrong: The command to list all files in your current directory that start with a lower case "t" is: ls t*

Q: What command can I use to find who is logged on to the computer?
A: who / finger / who and w / who and finger / who, w and finger / w, who and finger
If wrong: who, w and finger

Q: How do I display my current working directory?
A: pwd
If wrong: The pwd command

Q: How do I display the contents of a file called "log_one" one screen at a time?
A: more long_one / cat long_one | more / cat long_one | "more" / more "long_one"
If wrong: more long_one

Q: Write a command to copy the contents of the file called "file1" to a new file called "file2".  (The quotes are not part of the files names)
A: cat file1 > file2 / cp file1 file2 / cp file1 file2 OR cat file1 > file2 / cat file1 > file2, or cp file1 file2 / cp -i file1 file2
If right: cp file1 file2 OR cat file1 > file2

Q: Write a command that will display the names of all users currently logged on AND whether or not they are currently active.  The list may be long, but you wat to see it one screen at a time.
A: w|more / finger|more / finger|less / who -u|more / w|less / w|more, finger|more
If wrong: w|more OR finger|more

Q: How do you print the file"my_file" on the printer be300_p1 ? (The quotes are not part of the file name.)
A: lp -d be300_p1 my_file / cat my_file | lp -d be300_p1 / lp -d be300_p1 "my_file"
If wrong: lp -d be300_p1 my_file

Q: As we will use the term in this class, what is a process?
A: A running program / a program that is running / An instant of a program running on a computer / A process is a program that is being executed / An ongoing instance of a program / a running or executing program / actively running program
If wrong: A process is a running program.