KernelTurtle / linux-shell-c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux Shell in C

Simple Linux shell written in C.

What Does It Do?

  • Executes built-in commands:
    • cd
    • help
    • exit
    • pwd
    • history
    • ! (previous command)
    • !n (nth previous command)
  • Executes external commands by forking child process.

Built With

  • C
  • Linux

Usage

Compile shell.c from Linux terminal

$ gcc -o shell shell.c

Execute the program

$ ./shell

You are now in the shell

>> help
>> pwd
>> [...]
>> exit

Author

Radhesh Goel radhesh1

Acknowledgments

About


Languages

Language:C 87.0%Language:CMake 13.0%