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 print all array elements and their respective indexes?
What is shell geeksforgeeks?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
How to debug the problems encountered in the shell script/program?
Is shell scripting useful?
What is computer cli?
Is cmd a shell?
Explain about "s" permission bit in a file?
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.
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
How will you emulate wc –l using awk?
Is scripting and coding the same thing?
Can shell script run on windows?
How to find duplicate record in file using shell script?
How can we find the process name from its process id?