Group 199's implementation of Famous little unix shell. Flush is a basic shell written in C to be run on UNIX machines.
Build from source by running make
(requires gcc).
Then run the binary flush.o
.
These lines exhibit the same behaviour
$ /usr/bin/ls
$ ls
/usr/ $ cd bin
/usr/bin/ $
These lines exhibit the same behaviour
$ exit
$ ^d
Write output to foo
$ ls > foo
Read from foo and write result to bar
$ wc -l < foo > bar
!! Multiple input, or output redirects not supported !!
$ ls > foo > bar <- Illegal syntax
$ sleep 1 &
> [sleep 1] - pid -> sleep 1 now running in background with process id = pid
Run 'jobs' to see current background processes
$ jobs
> Background jobs:
> [sleep 1] - pid
$ ls | grep .o | wc -l
> 1
Commands with pipes can be backgrounded