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.
- 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.
-
Compile the program using any C++ compiler.
g++ myshell.cpp -o terminal
-
Run the compiled executable.
./terminal
-
Follow the on-screen instructions to navigate and perform operations in the simulated terminal.
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.