Background image

Lab 2: nyush

Back to Operating Systems

A Small Unix-like Shell with Pipelines, Redirection, and Job Control

nyush
Welcome to nyush shell!
Try commands like: ls, jobs, fg 1, cd, or exit

[nyush lab2]$

Built-in Commands

cd [dir]

Change directory

jobs

List background/stopped jobs

fg [index]

Resume job in foreground

exit

Exit the shell

Features

  • Pipelines: cmd1 | cmd2
  • Input redirection: cmd < file
  • Output redirection: cmd > file
  • Append: cmd >> file
  • Job control with signal handling
  • No zombie processes (uses waitpid)