This project simulates a basic terminal environment where users can navigate through directories, create files and directories, edit file contents, and execute various terminal commands.
- This file contains the main funcionality of the terminal simulation
- It initializes the ssystem, creates directories, sets up user environment, and handle the user inputs
- Users can interact with the terminal through commands such as mkdir, ls, cd, touch, nano, cat, whoami, and clear
- Defines the File class which represents files in the terminal environment.
- Users can create, edit, and view the content of files
- Defines the Directory class, representing directories in the terminal environment.
- Users can create, delete, and navigate through directories
- Contains executable binary funcions for terminal commands.
- includes unit tests for various functionalities in the project
- Tests cover funcionalities such as creating directories, creating files, changing directories, and user identifications.
git clone https://https://github.com/pepemf/Python-Terminal-SimulatorPython Terminal.py- To list avaliable commands: help
- To create a directory: mkdir new_directory
- To list files and directories: ls
- To change the current directory: cd new_directory
- To create a new file: touch new_file.txt
- To edit a file: nano file.txt
- To view the content of a file: cat file.txt
- To clear the terminal screen: clear
- To exit the terminal simulator: exit