Skip to content

LokiShell is a feature-rich Unix shell written in C, featuring command execution, built-in commands, bookmarks, file searching, and background process management. It offers a user-friendly interface with colorized prompts and supports Ctrl+Z suspension for foreground processes.

License

Notifications You must be signed in to change notification settings

yigittuncer07/lokishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

░█░░░█▀█░█░█░▀█▀░█▀▀░█░█░█▀▀░█░░░█░░
░█░░░█░█░█▀▄░░█░░▀▀█░█▀█░█▀▀░█░░░█░░
░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀

LokiShell is a simple Unix shell with additional features like bookmarks, I/O redirection, and background process handling.

Features

  • Bookmarks: Save and execute frequently used commands with named bookmarks.
  • I/O Redirection: Redirect input and output for commands using <, >, >>, and 2> operators.
  • Background Processes: Run commands in the background by appending & at the end.

Usage

Basic Commands

  • exit: Exit LokiShell. Use exit to terminate the shell.

Bookmarks

  • 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.

I/O Redirection

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.

Background Processes

Append & at the end of a command to run the command in the background.

Building and Running

To compile and run LokiShell, use the following commands:

gcc lokishell.c -o lokishell
./lokishell

About

LokiShell is a feature-rich Unix shell written in C, featuring command execution, built-in commands, bookmarks, file searching, and background process management. It offers a user-friendly interface with colorized prompts and supports Ctrl+Z suspension for foreground processes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages