Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to run shell script in linux

# Give the script file correct permssions $chmod 744 <name of scipt file e.g script.sh>
$ chmod 744 script.sh 

#now the file is ready to run run it with $ ./<name of scirpt file e.g. script.sh>
$ ./script.sh
Comment

ubuntu run file .sh

# Add Permissions to your script to be executable.
chmod +x /path/to/yourscript.sh
# Run your script.
/path/to/yourscript.sh
# Or if you're in the right directory.
./yourscript.sh
Comment

how to run shell script

chmod +x <fileName>
./fileName.  # or use ->. bash fileName
Comment

ubuntu run a shell script

$ ./script_name.sh

// if it need sudo permission the type:
$ sudo ./script_name.sh
Comment

how to run shell script

include 
#!/bin/bash (1st line inside yourfile.sh)

to run
./yourfile.sh

if you do not include that line
bash yourfile.sh
Comment

run shell script linux

$ chmod 744 script.sh 

#now the file is ready to run run it with $ ./<name of scirpt file e.g. script.sh>
$ ./script.sh
Comment

how to run shell script

# method 1
chmod +x <filename>
./<filename>

# method 2
sh <filename>.sh

# method 3 (Only for bash script)
bash <filename>.sh
Comment

how to run shell script

bash yourfile.sh
Comment

PREVIOUS NEXT
Code Example
Shell :: force remove hidden folder in linux 
Shell :: mkdir multiple directories windows 
Shell :: git bash terminal weird characters 
Shell :: gnome 42 force dark mode 
Shell :: hwo to remove ssh key 
Shell :: Bash print elements in array 
Shell :: instal kdenlive 
Shell :: how to install react loader spinner 
Shell :: loop array bash 
Shell :: chmod a+x 
Shell :: create new file terminal 
Shell :: close terminal commang 
Shell :: comments in bash file 
Shell :: remove staged files 
Shell :: arch linux c# install 
Shell :: serverless sqs batch size 
Shell :: ffmpeg add audio to image 
Shell :: install specific webpack version 
Shell :: master to main github 
Shell :: fastlane match update certificate 
Shell :: remove git repository from remote 
Shell :: no source map sass 
Shell :: linux chmod permissions 
Shell :: python convert excel to html table 
Shell :: clone github repository mac terminal 
Shell :: open current folder in terminal linux 
Shell :: git reset to a specific commit 
Shell :: create mysql user and database from script 
Shell :: kill app processes on port 3306 
Shell :: Push an existing repository to an empty github repository 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =