PyShell is a simple, beginner-friendly shell for both shell and Python programming. This README file provides an overview of the PyShell code and how to use it effectively. It is designed to help beginners get started with shell and Python scripting in a user-friendly environment.
PyShell is a Python script that provides a command-line interface for executing shell commands and Python scripts. It allows you to navigate directories, view files, and run shell commands or Python scripts in a simple and interactive manner. It is designed with beginners in mind, making it an excellent tool for learning shell and Python programming.
goto
command.
view
command to list files in the current directory.
display
command.
__help__
command.To use PyShell, follow these steps:
pyshell.py
.pyshell.py
.python pyshell.py
.You should see the PyShell prompt, which looks like this:
$
You can now start using PyShell to run commands and scripts.
PyShell supports the following commands:
view
: List visible files and folders in the current directory.goto <directory>
: Change the current directory.display <file_path>
: View the contents of a file.current
: Display the current working directory.show_current
: Show current directory on start.hide_current
: Hide current directory on start.create_file <file_name>
: Create a new file.create_folder <folder_name>
: Create a new folder.edit <filename>
: Edit a file using basic text editor.view_all
: List all files and folders in the current directory.copy <source_file> <new_file>
: Copy a file/folder.move <source_file> <new_file>
: Move a file/folder.delete <source>
: Delete a file/folder.delete_folder <source>
: Delete a folder.__help__
: Get help about PyShell.__exit__
: Exit PyShell.version
: Check version.<shell_command>
: Execute a shell command.If you need help with PyShell commands, you can use the __help__
command to display the help
text.
Example:
$ __help__
To exit PyShell, use the __exit__
command:
$ __exit__
If you'd like to contribute to PyShell or report issues, please feel free to create an issue or submit a pull request. Your contributions are welcome and appreciated.
This project is licensed under the MIT License - see the LICENSE file for details.