
scp copy direction: what is source, what is target?
Jul 5, 2016 · And most allow multiple sources before the final target if it makes sense to do so. That includes scp. Some commands (like the GNU versions of cp and mv) have an option (e.g. …
If "bash <file>" works, why is "source <file>" throwing an error?
Jun 21, 2016 · However, when you source something, it is run in your current shell which, because it is interactive, has already loaded the aliases and therefore the fi alias is recognized …
ZSH: What's the difference between `.` and `source`?
I used to think that the built-ins . and source are equivalent. This question agrees with me when it comes to bash. However I encountered the following using zsh: desktop ~/pst . env /usr/bin/e...
shell - What is the difference between sourcing ('.' or 'source') and ...
What is the difference between sourcing ('.' or 'source') and executing a file in bash? Ask Question Asked 13 years, 5 months ago Modified 4 years, 10 months ago
How to source .bashrc file directly after I close and save?
Jul 1, 2017 · In defense of &&: I actually want to source the file ONLY if vim exited correctly. Imagine if it crashes for any reason, better not to source a file in a mid-edit state! Also, I don't …
Source shell script automatically in terminal
Apr 4, 2015 · How can I automatically source a particular shell script when I open a terminal window by right clicking somewhere and choosing "open in terminal"? For example, every time …
How can I source environment changes system-wide?
Dec 14, 2021 · Similarly, source ing /etc/profile after a change will make those changes effective in your current session. But suppose you need to change an environment variable that is …
How do I apply the changes to the .zshrc file after editing it?
Jul 28, 2019 · You could source the new file, which would work for some changes, possibly including updating the PATH variable (depending on other lines). However, sourcing it would …
How to "source" a specific variable - Unix & Linux Stack Exchange
Apr 16, 2020 · Also ${BASH_SOURCE} will give the user a hint to the location of the file. The second line # -*-mode:sh;sh-shell:bash;fill-column:84-*- is for Emacs to figure out how to …
How to run `source` with `docker exec`? - linux
Nov 17, 2015 · True enough I realized that source does not seem to be your standard command, as I cannot locate it via which source. ls behaves nicely. What kind of thing is this source …