ShweetShell
Sachet Neupane
sn0552
ShweetShell is a simple shell written in Go that supports various built-in commands.
Getting Started
To get started with ShweetShell, follow these steps:
-
Clone the repository:
git clone https://github.com/Sachneu/4600Project2.git
Navigate to the project directory:
cd 4600Project2
After this go to Project2 directory
cd Project2
Run the code
go run main.go
Features
ShweetShell supports the following built-in commands:
cd: Change directory
env: Display environment variables
exit: Exit the shell
echo: Display arguments
pwd: Print working directory
mkdir: Create directories
rmdir: Remove directories
touch: Create empty files
Usage
Once the shell is running, you can use the supported built-in commands as follows:
cd directory # Change to the specified directory
env # Display environment variables
exit # Exit the shell
echo message # Display the message
pwd # Print the current working directory
mkdir directory # Create a new directory
rmdir directory # Remove a directory
touch file # Create a new file