Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

source command in shell script

## Defination -------------------------------------
# Source is a bash shell built-in command that executes the content of the file
# passed as argument, in the current shell. It has a synonym in `.` (period).



## Syntax -----------------------------------------
> source filename [arguments]
or 
> . filename [arguments]

## Additional Informaion ---------------------------
# Be careful! ./ and source are not quite the same.
> ./script # runs the script as an executable file, launching a new shell to run it
> source script # reads and executes commands from filename in the current shell environment
# Note: ./script is not . script, but . script == source script
Comment

PREVIOUS NEXT
Code Example
Shell :: Cannot install windows-build-tools 
Shell :: recursive dir batch 
Shell :: create dummy file windows 
Shell :: unzip file to folder 
Shell :: how to convert dos to unix in shell 
Shell :: install visual studio on ubuntu 
Shell :: linux add user to group 
Shell :: flatpak repo 
Shell :: git go back to previous commit 
Shell :: how to add opt/homebrew/bin to the PATH m1 macbook 
Shell :: Impossible de trouver le paquet php-gettext 
Shell :: install windows without usb or dvd 
Shell :: see changes git command line 
Shell :: git change rempte 
Shell :: dotnet test 
Shell :: linux hex to dec 
Shell :: rename remote branch in git 
Shell :: ubuntu change user 
Shell :: install software manager linux kali 
Shell :: chown command 
Shell :: serverless sqs batch size 
Shell :: git add new origin 
Shell :: edit text file bash 
Shell :: Command "server:run" is not defined. 
Shell :: add file in ignored folder git 
Shell :: heroku error: src refspec master does not match any 
Shell :: git push local branch to remote repo 
Shell :: ubuntu startup script 
Shell :: commit unstaged changes to new branch 
Shell :: ubuntu customize Bash prompt 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =