Skip to content

This is a simple shell terminal written in Go, demonstrating a basic implementation of built-in commands.

Notifications You must be signed in to change notification settings

merdernoty/simple-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Shell

This is a simple shell terminal written in Go, demonstrating a basic implementation of built-in commands. The project includes the following commands:

  • cd: Change directory.
  • ls: List files and directories.
  • pwd: Print the current working directory.
  • echo: Print provided arguments.
  • cat: Display the contents of a file.
  • mkdir: Create a new directory.
  • help: Show help information for built-in commands.
  • exit: Exit the shell.

Features

  • Built-in Commands: Custom commands are implemented directly within the shell instead of calling external utilities.
  • Extensibility: Easily add new commands by modifying the input handling function.
  • Simplicity: Minimalistic code that demonstrates the core concepts of building a shell in Go.

Prerequisites

  • Go version 1.16 or higher

Installation and Build

  1. Clone the repository:

    git clone https://github.com/merdernoty/simple-shell.git
    cd simple-shell

About

This is a simple shell terminal written in Go, demonstrating a basic implementation of built-in commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages