Description: Write their own shell, its function as follows:
1) cd <directory>- The current default directory is changed to <directory>. If there is no <directory> parameter, it displays the current directory. If the directory does not exist, there will be an appropriate error message. This command can also change the PWD environment variable.
2) clr- clear the screen.
3) <directory>- list directory <directory> content.
4) environ- lists all environment variables.
5) echo <comment>- Display <comment> on the screen and a line feed (multiple spaces and tabs may be reduced to a single space).
6) help- displays the user s manual, and use the more command filtering.
7) quit- quit she
To Search:
File list (Check if you may need any files):
3130000534 刘敏俊 linux实验4\Makefile
............................\myshell.c
............................\myshell.h
............................\readme
............................\重要信息.txt
3130000534 刘敏俊 linux实验4