Skip to content

audreylim/mini-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Shell

A toy Unix Shell with job control.

Demo

Warning: some bugs exist.

Features

Builtin Commands

exit: Quits the shell.

jobs: Lists all running or suspended background jobs.

kill: Sends signals to processes.

Arguments: [-signal] [PID]

kill must always be accompanied by signal flag and PID of the target process.

Signals:

  • 9 or KILL [SIGKILL]
  • 18 or STOP [SIGTSTP]
  • 19 or CONT [SIGCONT]
  • 2 or INT [SIGINT]

Eg:

$ kill -9 12346
or
$ kill -KILL 12346

Foreground Process

Foreground process can be terminated by sending a SIGINT signal with Ctrl-c and suspended by sending SIGTSTP with Ctrl-z.

Development

Developed and tested on go version go1.4.2 darwin/amd64.

License

MIT

About

A toy Unix shell written in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages