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

How to print all array elements and their respective indexes?

1014


What is shell geeksforgeeks?

1172


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4183


How to debug the problems encountered in the shell script/program?

1193


Is shell scripting useful?

1099


What is computer cli?

951


Is cmd a shell?

1067


Explain about "s" permission bit in a file?

1119


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2707


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

1029


How will you emulate wc –l using awk?

1596


Is scripting and coding the same thing?

1039


Can shell script run on windows?

1123


How to find duplicate record in file using shell script?

1446


How can we find the process name from its process id?

1220