Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - command shell
Search - command shell - List
DL : 0
实现一个简单的shell,实现步骤:(1)在虚拟的shell界面上出现命令提示符($或#); (2)获取用户指令:获取用户在命令提示符后面输入的命令及其参数,并注意命令输入的最大长度; (3)解析指令:对用户输入的命令进行解析,解析出命令名和参数; (4)寻找命令文件:每个命令的执行都必须依靠对应的可执行文件,这些文件的存放路径存放在用户的PATH环境变量里; (5)执行命令:可通过fork( )系统调用创建一个进程来完成执行命令的任务,具体的命令执行用execv( )函数。 - Implement a simple shell, implementation steps: (1) appears on the virtual shell interface command prompt ($ or#) (2) to obtain user instructions: Get the user at the command prompt type the command and its parameters, and Note that the maximum length of command input (3) resolve command: the command to parse user input, parse out the command name and parameters (4) to find the command file: Each command must rely on the implementation of the corresponding executable files storage paths stored in the user s PATH environment variable (5) execute the command: by fork () system call to create a process to execute the command to complete the task, the specific command with execv () function.
Date : 2025-12-18 Size : 1kb User : 包伟伟

实验一利用课本第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 implementation can not take parameters. Enter the command with the number of parameters can only be subject to the limitations of the system keyboard input buffer length (and the shell length of the input buffer), the default length of the buffer is 4096 bytes....
Date : 2025-12-18 Size : 38kb User : 林素素

Linux ubuntu下类shell指令的实现代码-Under Linux ubuntu, shell-like command s complement
Date : 2025-12-18 Size : 12kb User : dave

1,此源代码为本人所写,非GNU的源代码,不要因此而误导大家,摆出此来仅供交流 2,此源代码不完整,shell的很多功能都没有实现,只是实现了一些主要的功能 3,实现功能如下: a,输入命令,并运行 b,实现if 和while的深层嵌套 c,实现环境变量,和shell本身变量 d,实现管道和重定向等功能。 4,由于能力问题,程序可能有错误,欢迎高手指点-1, this source code as I wrote, non-GNU source code, do not let that mislead you, put this to only exchange 2, this source code is not complete, the shell s many features are not implemented, but to achieve some of the major functions 3, the following functions: a, enter the command and run b, if and while the deeply nested c, the environment variable, and the shell itself variable d, pipes and redirection. 4, due to capacity issues, the program may have errors and welcome expert guidance
Date : 2025-12-18 Size : 6.29mb User : 佳毅

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 the environment variable in a Bash shell.
Date : 2025-12-18 Size : 10.14mb User : rojoorbalino

A Linux Shell in C. It can parse the user input with options, pipes, input/output re-directions. The command can be executed with multiple process with system call.
Date : 2025-12-18 Size : 4kb User : Liang
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.