HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL
SHELL SCRIPT?
Answer Posted / dibala
#!/bin/ksh
set -x #on
#variable
i=1
while [ i let 10 ]
do
/usr/sbin/useradd user$i -d /home/user$i -s /bin/ksh -m
user$i
i=$(expr $i + 1)
done
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How do you create a shortcut in linux?
Which scripting language is best for automation?
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.
What happens when you type ls?
What is a shell script? Can you name some of its advantages?
How will you emulate wc –l using awk?
Why is it called a shell?
What is shell application?
How would you compare the strings in a shell script?
What are the different variables present in linux shell?
What language is used in terminal?
Explain about "s" permission bit in a file?
How do I set bash as default shell mac?
How to find duplicate record in file using shell script?