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


Please Help Members By Posting Answers For Below Questions

Is shell a part of kernel?

649


What is path variable bash?

649


Why are there shells on the beach?

681


What is shell application?

647


What are the different types of commonly used shells on a typical linux system?

646






What is console line?

659


Is shell scripting useful?

660


Write a command sequence to find the count of each word?

618


What is difference between bash and shell?

628


What is c in shell script?

710


What is mac default shell?

696


What is a program shell?

668


What is .sh file in mac?

635


What is shell geeksforgeeks?

664


what is info area how many types?

2383