写一个脚本文件checkuser,该脚本运行时带一个用户名作为参数,具体要求如下:
1)如果命令行格式不符合要求,应有错误提示信息;
2)在/etc/passwd文件中查找是否有该用户,
如有,则输出“Found in the /etc/passwd file.”
否则,输出“No such on our system”
-Write a script file checkuser, the script run-time with a user name as a parameter, and specific requirements are as follows: 1) If the command-line format does not meet the requirements, there should be error message 2) in/etc/passwd file to check if there were any users, and if so, then the output " Found in the/etc/passwd file. " Otherwise, output" No such on our system "
.添加系统调用.采用编译内核的方法,添加一个新的系统调用 编写一个应用程序,测试新添加的系统调用 系统调用的功能:文件拷贝.2添加设备驱动程序.采用模块方法,添加一个新的设备驱动程序要求添加字符设备的驱动 编写一个应用程序,测试添加的驱动程序. 4分析/proc文件.监控系统状态,显示系统中若干部件的使用情况 用图形界面显示系统监控状态。-. Add system calls. The methods used to compile the kernel, add a new system call to prepare an application to test the newly added system call system call features: file copy .2 add device drivers. Using modular approach to add a new The device driver requests to add character device driver to prepare an application, test driver added. 4 Analysis of/proc file. monitoring system status, display systems in several parts of the use of graphical interface display system used to monitor state.