Operating system course design and simulation Linux system
Project Introduction
- This project is designed based on the relevant topics in the operating system course design of Professor JHY, School of Artificial Intelligence, Nanjing Agricultural University (difficulty coefficient 5)
- All this project is designed in Java language, and simulates the process management, job management, scheduling management, equipment management, file management and other contents of Linux system.
- All source codes of this project are completed within 30 days, and the time is relatively rush. Please give me some advice on any inappropriate design.
Run and install
- clone or pull all files
- Create a new Java project using IDEA (recommended) or Eclipse (JDK version >= 1.8)
- Delete the default generated src directory under the project
- Copy all /src, /static/, xxxxx-jobs-input.txt files after decompression to the project root directory
- Use the run function in IDEA or Eclipse to start running, or generate .jar executable files yourself, etc.
Use and Instructions
- For the first time, you need to delete all contents in the xxxxx-jobs-input.txt file except the first line. Remember that there is no newline at the end of the first line!
- The visual operation interface, file system command line, and file system window provided by this project can basically explore functions by yourself.
- The file system command line provides the following commands (can only be used under English input method)
- ls [-l] Display file information in the current directory -l Display detailed information
- cd dir switches the current working directory dir Specify the directory absolute or relative path
- mkdir dir [-p] Create directory dir in the current directory Specify the absolute or relative path of the directory -p Recursive creation
- touch file/dir Create a new file in the current directory; if the file already exists, update the file modification time file/dir file or directory path
- rmdir dir -p Delete directory dir in the current directory Directory path -p When the subdirectory is deleted, it becomes an empty directory, delete it together
- rm file/dir [-r] Delete file or directory file/dir file or directory path -r Recursively delete, the parameter must be a directory
- close file/dir Close file or directory file/dir File or directory path
- cat file display file content file file path
- vim file modify file content
file file path - link old new link to an existing file old directory of existing files new file directory
- chmod mode path [-r] Change the permissions of a file or directory mode permission mode 000-777 path file or directory path -r Recursively modify, and modify the permissions of the directory and all the following subfiles
- explorer Open Explorer
- Enter the explorer command on the command line to enter a more friendly window-style interface, providing the following functions (please try to minimize mouse movement when clicking the mouse)
- Left-click the directory and enter the relevant directory.
- Left-click the file to view the file information.
- Double-click the file with the left mouse button to open the file or directory.
- Right-click the stand-alone file to open, rename and delete
- Right-click the blank space of the stand-alone file list, create a new file or directory.
- The forward and back button on the upper left side of the mouse stand-alone machine is switched to the historical access path.
- The .jfd file in the /src/gui directory is the configuration file when drawing swing by IDEA plug-in JFormDesign, and does not affect the operation of the program; if you need to use it, please download it yourself
Friendly Tips
- Please do not copy the source code directly to submit the coursework assignments!
- The code structure of this project is relatively large, and secondary development is not recommended. It is encouraged to learn from ideas
- The source code contains detailed comments to meet basic reading needs
- If there are still problems, please contact qq: 404874351