HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL
SHELL SCRIPT?
Answer Posted / nimal
#!/bin/sh
for i in {1..10)
do
echo "creating user"$i;
useradd user$i;
done
to list the created users.
cat /etc/passwd
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is a command line shell?
What is the use of a shebang line?
Calculate a real number calculation directly from the terminal and not any shell script.
How do I open the shell prompt?
What is shell scripting?
What is the conditional statement in shell scripting?
Write a shell script to get current date, time, user name and current working directory.
What is an sh file?
Is shell and terminal the same?
How do you debug a script?
What is a shell? · Types of shell · what is shell scripting?
How many fields are present in a crontab file and what does each field specify?
How do I run a shell script in powershell?
What happens when you type ls?
Which shell is the best?