文件名称:myshell
介绍说明--下载内容均来自于网络,请自行研究使用
一个自己写的shell,其功能如下:
1) cd <directory> ——把当前默认目录改变为<directory>。如果没有<directory>参数,则显示当前目录。如该目录不存在,会出现合适的错误信息。这个命令也可以改变PWD 环境变量。
2) clr ——清屏。
3) <directory> ——列出目录<directory>的内容。
4) environ ——列出所有的环境变量。
5) echo <comment> ——在屏幕上显示<comment>并换行(多个空格和制表符可能被缩减为一个空格)。
6) help ——显示用户手册,并且使用more 命令过滤。
7) quit ——退出shell
-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 shell
1) cd <directory> ——把当前默认目录改变为<directory>。如果没有<directory>参数,则显示当前目录。如该目录不存在,会出现合适的错误信息。这个命令也可以改变PWD 环境变量。
2) clr ——清屏。
3) <directory> ——列出目录<directory>的内容。
4) environ ——列出所有的环境变量。
5) echo <comment> ——在屏幕上显示<comment>并换行(多个空格和制表符可能被缩减为一个空格)。
6) help ——显示用户手册,并且使用more 命令过滤。
7) quit ——退出shell
-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 shell
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3130000534 刘敏俊 linux实验4\Makefile
............................\myshell.c
............................\myshell.h
............................\readme
............................\重要信息.txt
3130000534 刘敏俊 linux实验4