Midterm Review
Post date: Feb 22, 2011 7:03:16 PM
Midterm Exam will be 3/2, Wednesday, in class.
Content to be covered:
OSS concept.
Basic Shell Commands: man, cat, more, cp, mv, rm, mkdir, cd, pwd, rmdir, ls, whoami, hostname, who, whereis, lpr / pr, cal, write, passwd, alias
Vi editor:
Command mode <-> Insert mode
Command syntax: [#1] operation [#2] target
Commands as listed in the previous class note (summary)
Sample questions: (see assignments)
Samples for filling in blanks:
Common functions for Text Editors:
1) __________________________________________________________
2) __________________________________________________________
3) __________________________________________________________
4) __________________________________________________________
5) __________________________________________________________
6) __________________________________________________________
7) __________________________________________________________
8) __________________________________________________________
9) __________________________________________________________
Describe how to achieve above functions in vi editor?
3yy is a command in vi editor, which means ____________________________.
Samples for writing commands:
Display file content of “StudentRoll”
Find out info. or related commands for “print”
Copy file “file1” as “cfile1”
Move file “StudentRoll” to “/home/temp”
Edit a file named “newfile” with content: “This is the content.”
Find out info. about how to use command “chsh”
Print file “StudentRoll” using default printer
Delete an empty subdirectory “tmp”
Delete an empty directory “class313” under subdirectory “courses”
Rename file “fileold” to “filenew”
delete 3 words in vi editor
move the cursor to the 2nd line in vi editor
quit the vi editor without saving any change
appends text after the current cursor in vi editor
Describe the following basic functions for a TEXT Editor in Vi editor:
1. Opening existing file:
2. Starting a new file:
3. Inserting text:
4. Deleting text:
5. Cursor movement:
6. Cut / copy / paste:
7. Saving:
8. Quitting with or without saving:
9. Search / replace: