COMP 3000 Lab 1 2011

From Soma-notes
Revision as of 19:59, 26 September 2011 by Afry (talk | contribs)

Help

  1. When working in the shell, help is available on most programs in the system, especially those that are command line based. This system of help is available by using the man command. If one wanted to get help on the echo command, the associated command would be man echo. What does man stand for? (1 point)

Answer: Manual

  1. The man command can also be used to get help on standard C functions. Briefly (in one line), what does the C function brk do?

Answer: The brk() function sets the lowest address of a process's data segment to addr and either returns a pointer to the new end of memory upon success or errorno set to -1 if allocation failed.

  1. How do you quit the less command?