File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ Steps to create any user on Ubuntu server:
2
+
3
+ useradd automation
4
+ passwd automation
5
+ Check UserHome: ls -lrt /home/automation
6
+ if user home is not created then run below two commands:
7
+ mkdir -p /home/automation
8
+ chown -R automation:automation /home/automation
9
+ How to change a shell for the user ?
10
+
11
+ simply run below command and provide the password and path of the required shell.
12
+ Command is: chsh
13
+
14
+ Steps to create and execute a shell script:
15
+ ============================================
16
+ Step1: Get Manual Commands for the requirement
17
+ Step2: Select any command line editor like vi, vim and nano to write a script.
18
+ Step3: Write a Bash shell script
19
+ - Now open a text file with anyName and with any extension but will take .sh just to represent that text file is a shell script.
20
+ - Write first line as a shebang line.
21
+ - Paste all required commands in a sequence
22
+ Step4: Executing Bash Shell Script
23
+ - Provide the Execution Permission using chmod +x script_name.sh
24
+ - Run with ./script_name.sh or <complete_path>/script_name.sh
25
+ ==========================================================================
26
+
You can’t perform that action at this time.
0 commit comments