OS Lab Part-I
OS Lab Part-I
ECEG-5202
Lab Session
• Linux vs GNU/Linux
• Linux
– Production OS
– Dynamic kernel
– Hypervisor
– Monolithic
– Efficient in terms of both memory and CPU usage
– Stable
– Portable
while (1) {
read line from terminal;
parse into words;
substitute variables;
execute commands (execv or
builtin);
}
• Example
cd / >>> will take you to the root directory
cd >>> will take you back to the home directory
cd .. >>> will take you one directory up
• Online help
– Linux comes with online help called man pages
– Man pages are short references for commands
– Syntax
man commandName
– Example
man ls
– Alternative
commandName --help
• Editors
– Vi
– gedit