# virtual-terminal **Repository Path**: MrShiehX/virtual-terminal ## Basic Information - **Project Name**: virtual-terminal - **Description**: A Java Program - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-22 - **Last Updated**: 2021-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Virtual Terminal A Java Program # Author MrShiehX
Email Address: bntoylort@outlook.com # Start Arguments `-user -root ` # Commands ls: List files
exit: Exit
echo: Echo a text
cd: Change current directory
su: Switch user
co: Create an object
cf: Create a file
mkdir: Create a directory
mkdirs: Create directories
do: Delete an object
df: Delete a file
cp: Copy a file
rn: Rename a file
mv: Move a file
# Make Your Executable Commands Go to https://github.com/MrShieh-X/virtual-terminal/releases to download the corresponding version of the JAR file, import it into your project as a library file, and create the following function in the command source file: ```java public void main(String[]args){ // do something... } public void usage(String command){ System.out.println("my command usage..."); } ``` Compile this file, export it, put it in the `data/classes` directory under the program directory, then modify the file name of the main class file, delete its `.class` suffix.
If you are using JetBrains IDEA, after compiling the file, you can click `Build -> Recompile'xxxxx.java'` to compile your file, and go to the project directory to find the class file in `build/classes/java` .