Skip to content

This repository hosts a C++ program that simulates a Linux terminal from scratch, providing basic file and directory operations

License

Notifications You must be signed in to change notification settings

gopikrsmscs/linux-terminal-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Linux Terminal Simulator

This is a simple C++ program that mimics the functionality of a terminal in Linux. It allows users to perform basic file and directory operations such as viewing files, editing files, running commands, changing directories, sorting directory listings, removing files, and moving files.

Features

  • Display Files and Directories: Display files and directories in the current directory along with their sizes.
  • Edit Files: Edit a selected file using the 'E' option.
  • Run Commands: Execute Unix commands on files using the 'R' option.
  • Change Directory: Change the current directory using the 'C' option.
  • Sort Directory Listings: Sort files and directories based on their sizes using the 'S' option.
  • Remove Files: Remove files from the current directory using the 'r' option.
  • Move Files: Move files from one directory to another using the 'M' option.

Usage

  1. Compile the program using any C++ compiler.

    g++ myshell.cpp -o terminal
  2. Run the compiled executable.

    ./terminal
  3. Follow the on-screen instructions to navigate and perform operations in the simulated terminal.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository hosts a C++ program that simulates a Linux terminal from scratch, providing basic file and directory operations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages