CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Linux checkus
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Linux checkus - List
[
Linux-Unix
]
LINUX
DL : 0
写一个脚本文件checkuser,该脚本运行时带一个用户名作为参数,具体要求如下: 1)如果命令行格式不符合要求,应有错误提示信息; 2)在/etc/passwd文件中查找是否有该用户, 如有,则输出“Found <user> in the /etc/passwd file.” 否则,输出“No such <user> 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 <user> in the/etc/passwd file. " Otherwise, output" No such <user> on our system "
Date
: 2025-07-11
Size
: 21kb
User
:
蒙蒙
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.