Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is a command line shell?

1010


What is the use of a shebang line?

1129


Calculate a real number calculation directly from the terminal and not any shell script.

1166


How do I open the shell prompt?

1150


What is shell scripting?

993


What is the conditional statement in shell scripting?

1181


Write a shell script to get current date, time, user name and current working directory.

1040


What is an sh file?

895


Is shell and terminal the same?

1002


How do you debug a script?

1018


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

937


How many fields are present in a crontab file and what does each field specify?

1073


How do I run a shell script in powershell?

1080


What happens when you type ls?

942


Which shell is the best?

945