Repository files navigation
sirya is a user-defined interactive shell program that can create and manage new processes
make
./a.out
To exit, type exit
Maximum input length is 1000 characters.
Maximum number of commands is 1000.
Supports multiple commands separated with a semicolon
Supports commands run with an &, i.e., background processes
Supports input/output redirection and command pipelines
ctrl+z pushes any currently running foreground process to the background
ctrl+c interrupts any currently running foreground process
ctrl+d logs out of the shell
autocompletion is supported
Switches between directories
'.' , '..', '-', '~' flags are implemented
Prints the absolute path of the current working directory
Displays the line of text following it
Lists all the files and directories in the specified directory in alphabetical order
'-l', '-a' flags are implemented
Executables are listed in green, files in white and directories in blue
Prints the process related info of the shell
pinfo <pid> prints the process info of the given pid
finds the given file from the specified directory
if no file is given as input, lists all the files and directories in the specified directory
does not search hidden folders
prints the last 10 command line inputs
stores only the last 20 commands
creates a new file hist.txt for implementation
prints list of all currently running background processes spawned by the shell, along with job number, process id, and state
sends a signal to the corresponding process
brings the running or stopped background job corresponding to job number to the foreground, and changes
its state to running.
changes the state of a stopped background job to running (in the background)
You can’t perform that action at this time.