Skip to content

Simple implementation of a basic linux shell in C, capable of handling any executable binary (need to give the absolute path), pipes, I/O redirections, as given in the ReadMe file.

Notifications You must be signed in to change notification settings

dushyant18033/LinuxShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinuxShell

Simple implementation of a basic linux shell in C, capable of handling any executable binary (need to give the absolute path), pipes, I/O redirections, as given in the ReadMe file.

The following are handled.

  • command: execute the command and wait for the command to finish
  • command > filename: redirect stdout to file filename. If the file does not exist create one, otherwise, overwrite the existing file
  • command >> filename: If the filename already exists append the stdout output, otherwise, create a new file
  • 1>filename: redirect stdout to filename
  • 2>filename: redirect stderr to filename
  • 2>&1: redirect stderr to stdout
  • command < filename: use file descriptor 0 (stdin) for filename. If command tries to read from stdin, effectively it will read from filename.
  • |: pipe command
  • exit: exit from the shell program

About

Simple implementation of a basic linux shell in C, capable of handling any executable binary (need to give the absolute path), pipes, I/O redirections, as given in the ReadMe file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages