wq11midterm-sample

wq11midterm-sample - ECS 30 Practice Midterm #1

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECS 30 Sample Midterm Questions Winter Quarter, 2011, Devanbu These are just samples of questions. may not cover all topics---please see "how to prepare" message. In general, don't expect any partial credit. The answer is correct and complete, or there is no credit. DON'T PANIC! Just come during office hours and get help. 1. (5 points) You just printed something, and realize that it is a binary file that will print a bunch of garbage. What are the steps you take to cancel the print job? F irst do lpq to find the job, and then do lprm to remove the job. 2. (5 points) What UNIX command would you type to see a list of all of the files (including the hidden files) in directory hw1? ls -la hw1 3. (5 points) You just wrote and saved the file test2.c. Now you want to make sure that only you can read and write it. What UNIX command would you type to make test.c only readable and writeable by you? chmod og-rw test.c 4. (5 points) You want to move all of your C source files (ending in .c) and header files (ending in .h) from your hw1 subdirectory to your mid1 subdirectory. What UNIX command should you type? mv hw1/*\.c hw1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

wq11midterm-sample - ECS 30 Practice Midterm #1

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online