Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

what does source command do in linux

## 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 :: nasm compile windows 64 
Shell :: journalctl vacuum 
Shell :: docker get image size before pull acr 
Shell :: valgrind usage 
Shell :: grep in windows 
Shell :: how to install socket.io to node js 
Shell :: seeing all the installed apps i terminal 
Shell :: change user password on mac terminal 
Shell :: How to list manually installed packages in ubuntu 
Shell :: check if command exists bash 
Shell :: how to put files into gitignore 
Shell :: brew upgrade 
Shell :: ignore file git 
Shell :: how to enable mod_headers in apache ubuntu 
Shell :: git commands list 
Shell :: permissão wordpress 
Shell :: kube log 
Shell :: push-github-project 
Shell :: nginx block post files 
Shell :: install apexcharts 
Shell :: pull a specific branch from github 
Shell :: docker auto start when reboot 
Shell :: ssh login 
Shell :: install aptitude ubuntu 20.04 
Shell :: add ignored file to git 
Shell :: linux change user password 
Shell :: docker all logs at once 
Shell :: ubuntu install latest vim 
Shell :: rename multiple files in linux 
Shell :: bin bash date save file 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =