CustomShell is a basic shell application written in C that mimics some functionalities of a Unix shell. This project allows users to navigate directories, list files, create directories, view paths, and log session history through custom commands.
-
Custom Commands:
help: Displays a list of available commands and their descriptions.tree: Creates a directory structure withDir0andDir1inside it.list: Clears the terminal and lists directory content in a filetree.txtand displays it.path: Shows the current directory path and logs it inpath.txt.exit: Displays session history, lists the directory content, and logs the session history insession_history.txtbefore exiting.
-
Session History:
- Keeps track of all commands entered during the session.
- Logs the session history to
session_history.txt.
-
File Operations:
- Creates, writes, and reads from files such as
tree.txt,path.txt, andsession_history.txt.
- Creates, writes, and reads from files such as
-
Custom Prompt:
- Displays the current directory as part of the shell prompt.
- main.c: Contains the code for the custom shell.
- Makefile (optional): You can include a
Makefilefor easier compilation if needed.
- Clone the repository:
git clone https://github.com/moe0009/CustomShell.git cd CustomShell