写一个脚本文件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 "
本书主要介绍嵌入式LINUX的各种资源以及性能,比较系统的阐述了LINUX的文件结构和内存管理,资源释放等-This book introduces a variety of resources embedded LINUX, as well as performance, a more systematic exposition of the LINUX file structure and memory management, resource release, etc.
LINUX下的RTC驱动程序,希望大家能从这个小程序中学习到LINUX驱动的编写方法-LINUX under the RTC driver, I hope that everyone in this small program to learn the preparation of LINUX-driven approach