░█░░░█▀█░█░█░▀█▀░█▀▀░█░█░█▀▀░█░░░█░░
░█░░░█░█░█▀▄░░█░░▀▀█░█▀█░█▀▀░█░░░█░░
░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀
LokiShell is a simple Unix shell with additional features like bookmarks, I/O redirection, and background process handling.
- Bookmarks: Save and execute frequently used commands with named bookmarks.
- I/O Redirection: Redirect input and output for commands using
<,>,>>, and2>operators. - Background Processes: Run commands in the background by appending
&at the end.
- exit: Exit LokiShell. Use
exitto terminate the shell.
- bookmark -l: List all saved bookmarks.
- bookmark -i : Execute the bookmark at the specified index.
- bookmark -d : Delete the bookmark at the specified index.
- bookmark : Add a new bookmark.
Use the following operators for I/O redirection:
<: Redirect input from a file.>: Redirect output to a file (overwriting existing content).>>: Redirect output to a file (appending to existing content).2>: Redirect error output to a file.
Append & at the end of a command to run the command in the background.
To compile and run LokiShell, use the following commands:
gcc lokishell.c -o lokishell
./lokishell