Skip to content

kpraveenkumar19/byte-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ByteShell icon ByteShell

ByteShell is a UNIX-like command-line shell written in C. It's a simple shell used to execute built-in Linux commands.

Table of Contents

Installation

Requirements :

  • Language: C
  • Compiler: gcc (or any POSIX-compliant C compiler)
  • Environment: UNIX-like system (Linux, macOS, WSL, etc.)
# Use the provided compilation command:
gcc *.c

# This compiles all C source files and produces an executable (by default `a.out`).
# After a successful compilation, run:
./a.out

If everything is set up correctly, you will see the ByteShell prompt:

>

Usage

Builtins implemented:

  • echo: Print its arguments to standard output.
  • cd: Change the current working directory.
  • pwd: Print the current working directory.
  • exit: Exit the shell.

Examples:

> echo hello world
hello world

> cd /

> pwd
/Users/Praveen/documents/projects-new/byte-shell

> exit

Resources

Contributing

Contributions are welcome! To propose changes:

  1. Fork the repository and create a feature branch
  2. Make your changes
  3. Open a Pull Request with a clear description and examples

About

A simple shell used to execute built-in Linux commands.

Topics

Resources

Stars

Watchers

Forks

Languages