📄 readme~
字号:
/***********************************************************************************************This document is a readme file for myshell Program.Author: Ning Yu Email: ningyu@siu.eduDate: 09/19/2007************************************************************************************************/DESCRIPTION The shell program which can complete almost all commands in linux. And the program finish all requirement of Project One. COMMANDS The following commands are reloaded and supported by this program. cd <directory> -The <directory> presents the linux folder. '.'and '..' are supported, too. Change the current default directory to <directory>. If <directory> is not present, report the currrent directory. At the same time, the error is reported in screen. clr -Clear the screen. dir <directory> -List all dirctories and files in <directory>. '.' and '..' are supported. '>' & '>>' are supported. environ -Show all the environment strings in the screen. '>' & '>>' are supported. echo <comment> -Echo the <comment> to screen followed by a new line. Multiple spaces/tabs can be reduced to a single space. '>' & '>>' are supported. help -Display the user manual readme file. '>' & '>>' are supported. pause -Pause current operaion of the shell until 'Enter' is pressed. quit -Quit the shell program. <Other bash shell command> -Supported by the program. At the same time, 'The command is executed by /bin/shell' will be displayed in the screen. ENVIRONMENT STRINGS The environment strings, shell=<pathname>/myshell and parent=<pathname>/myshell, are created when the shell program is executed.I/O REDIRECTION The i/o redirection is supported by the program. The normal input/output in linux command line status depends on user's input and screen display, that is stdin/stdout. I/O rediction can make input from files and output to files. The program supports the '<','>' and '>>' to complete the i/o redirction operation. THE EXECUTION OF BATCH FILES (stdin redirection) The program supports the batch files. The batch file, batch.file, is created automaticaly when the shelll program. In the batch file, the following command is included: cd .. dir cd myshell echo 1234 567 8956 help > ning.yu environ >> ning.yu User can execute the following command line instead of simple 'myshell' command and press enter key in order to execute the batch file: {adm2pc4:~/myfiles/myshell}myshell < batch.file OUTPUT REDIRECTION 'dir', 'environ', 'echo' and 'help' can support the output redirection as the requirement of Project One. The example is the following: dir .. > outputfile environ > outputfile echo 1234 >> outputfile '>' represents that outputfile is created if it does not exist and truncated if it does. '>>' represents that outputfile is created if it does not exist and appended to outputfile if it does. AMPERSAND OPERATION (&) The shell program support the background execution of programs. An ampersand (&) at the end of the command line indicates that the shell should return to the command line prompt immediately after launching the command. For exameple: dir .. & The command is executed in the background. And dir display is not showed in screen. Once the command is parsed, the command line prompt immediately shows. For example: User can execute the command: dir .. > output.file & to view executed result of the command 'dir ..' in output.file. COMMAND LINE PROMPT Contain the pathname of the current directory. If user executes dir .. , the prompt will be changed automatically.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -