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
How to debug the problems encountered in the shell script/program?
What happens on a system call?
How do scripts work?
What does it mean to debug a script?
How do I run a bin bash script?
What is the default ubuntu terminal?
Can you write a script to portray how set –x works?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What are different types of shell?
Why is shell scripting important?
What is shell variable?
What are the advantages of shell script?
Is shell scripting a language?
How do I run a powershell script?
What are the types of script?