Skip to content

Commit 647c093

Browse files
Add files via upload
1 parent b4c5ff7 commit 647c093

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+

0 commit comments

Comments
 (0)