【发布时间】:2020-07-19 11:21:00
【问题描述】:
我的一个朋友已经开始学习 shell 脚本并完成了一项小任务,但他不知道如何开始以及从哪里开始。
Problem statement is:
a. Create a file 'user_UserID.info' file under /tmp. Populate the file 'user_UserID.info' with the following data:
Username,Password,PrimaryGroup,Comment,HomeDir
b. Create a Shell script to add user accounts and set the password for the users listed in 'user_UserID.info' file. All other
dependent activities like group creation, directory creation etc. also should be done through this script.
c. Display the content of /home directory on console. Redirect the newly created 3 user’s information to userdetails_UserID.txt
这里,如何创建.info文件,它的目的是什么?
请提出建议。任何建议或好的资源都会有所帮助。
谢谢。
【问题讨论】:
标签: linux shell unix command-line