Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux source command vs dot

## 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 :: bash true if grep has output 
Shell :: install mpfr ubuntu 
Shell :: benchmark a network drive windows without installing 
Shell :: valgrind example usage 
Shell :: ubuntu uninstall ros 
Shell :: socket install 
Shell :: apache2 connection refused ubuntu 
Shell :: sudo passwd /Users/username 
Shell :: git move branch to previous commit 
Shell :: linux terminal delete file 
Shell :: Method ReflectionParameter::getClass() is deprecated ubuntu 
Shell :: how to push to heroku outside the master branch 
Shell :: ubuntu run a shell script 
Shell :: find mongodb process id 
Shell :: find logs in kubernetes pods 
Shell :: install laravel on ubuntu 
Shell :: how to start ngrok server 
Shell :: how to install cuda on ubuntu 20.04 
Shell :: cannot send file to server with nginx 
Shell :: cant find module firebase 
Shell :: patch: command not found 
Shell :: linux install icloud 
Shell :: how to log into a remote linux server 
Shell :: remove yum repository 
Shell :: git add file in ignored folder 
Shell :: env: sh : No such file or directory 
Shell :: git push branch to remote 
Shell :: git squash commits 
Shell :: change name of branch github 
Shell :: bash change command prompt 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =