搜索资源列表
12
- 实现一个简单的shell,实现步骤:(1)在虚拟的shell界面上出现命令提示符($或#); (2)获取用户指令:获取用户在命令提示符后面输入的命令及其参数,并注意命令输入的最大长度; (3)解析指令:对用户输入的命令进行解析,解析出命令名和参数; (4)寻找命令文件:每个命令的执行都必须依靠对应的可执行文件,这些文件的存放路径存放在用户的PATH环境变量里; (5)执行命令:可通过fork( )系统调用创建一个进程来完成执行命令的任务,具体的命令执行用execv( )函
shell
- 实验一利用课本第9页程序1-5的框架,实现允许输入命令带参数的简单shell。原来的实现是不能够带参数的。输入命令所能带的参数个数,只受到系统键盘输入缓冲区长度(以及shell输入缓冲区长度)的限制,该缓冲区的缺省长度是4096个字节。-Experiments using the framework of textbooks 9 program 1-5, simple shell allows the input command with parameters. The original imp
shell
- Linux ubuntu下类shell指令的实现代码-Under Linux ubuntu, shell-like command s complement
bash-4.1.tar
- 1,此源代码为本人所写,非GNU的源代码,不要因此而误导大家,摆出此来仅供交流 2,此源代码不完整,shell的很多功能都没有实现,只是实现了一些主要的功能 3,实现功能如下: a,输入命令,并运行 b,实现if 和while的深层嵌套 c,实现环境变量,和shell本身变量 d,实现管道和重定向等功能。 4,由于能力问题,程序可能有错误,欢迎高手指点-1, this source code as I wrote, non-G
zynq_linux.tar
- Linux for Xylinx Zynq Chip. Many software items, such as Linux, use the environment variable CROSS_COMPILE, to invoke the GNU tools that are used to build it. The following command should be used to add the tools to the Linux host path and setup th
lad2src.tar
- code for shell command implementation-code for shell peogramming
2011813035ex3
- Linux shell的使用:i. 将cp命令设置别名为copy,将mv命令设置别名为move。 ii. 使用history命令查看命令历史。 -Linux shell usage:. I would cp command to set an alias for copy, the mv command to set the alias for the move. ii. use the history command to view the command history.
sh.c
- c语言实现linux的命令执行,<>重定向,管道命令-c implements linux shell command like : excution,redirection,pipe
myshell
- 一个自己写的shell,其功能如下: 1) cd <directory> ——把当前默认目录改变为<directory>。如果没有<directory>参数,则显示当前目录。如该目录不存在,会出现合适的错误信息。这个命令也可以改变PWD 环境变量。 2) clr ——清屏。 3) <directory> ——列出目录<directory>的内容。 4) environ ——列出所有的环境变量。 5) echo &l
