About 50 results
Open links in new tab
  1. What is the difference between "." "./" and "source"? [duplicate]

    Sep 27, 2016 · When the script is done, any changes that it made to the environment are discarded. . script The above sources the script. It is as if the commands had been typed in directly. Any …

  2. bash script error: source: not found - Unix & Linux Stack Exchange

    You have an alias which is overriding the builtin source (fix with unalias source) You have a function which is overriding source (fix with unset -f source) You are somehow not using bash (although your …

  3. How to automatically source your bashrc file when you become a root ...

    Mar 7, 2024 · How to automatically source your bashrc file when you become a root user [duplicate] Ask Question Asked 2 years ago Modified 2 years ago

  4. If "bash <file>" works, why is "source <file>" throwing an error?

    Jun 21, 2016 · I have the following script: #!/bin/bash set -x if :; then echo a fi If I run bash /tmp/file, a is echoed, but if I run source /tmp/file, I get: bash: /tmp/test: line 6: syntax error: unexpec...

  5. Why can `BASH_SOURCE` be used to obtain the current directory of the ...

    Jul 30, 2020 · I've read that BASH_SOURCE should be populated with the name of the executing script (and it works!). But why does BASH_SOURCE hold the name of the executing script, when it is …

  6. Copy file to same path as source without changing directories

    Aug 7, 2022 · For example if you started typing or copy/pasting the source path including filename, and only after that you realize you want the copy to be in that directory, ctrl-left-arrow to move the cursor …

  7. How to list packages that have been installed from source in Linux ...

    Oct 9, 2023 · 1 I usually use package managers like apt to install packages and then use dpkg to list the packages, that I have installed. Is there any way to get a similar list if I install from source? I saw an …

  8. 100% open source linux distro - Unix & Linux Stack Exchange

    Feb 23, 2014 · Do 100% open source linux distro's exist? i.e. distros which contain absolutely no closed source components anywhere at all? Apparently distros like Ubuntu contains bits and pieces which …

  9. How can I source a bash script containing BASH_SOURCE from zsh

    Nov 1, 2018 · I need to source it from a zsh shell as I need to have all the environment variables it defines. , where it is the Bash script. The fact that the script uses BASH_SOURCE is actually …

  10. Whitelist port from specific source IP and destination IP

    Sep 20, 2021 · I am looking to whitelist port 22, but only for specific source and destination IP addresses. I am aware of how to do this using iptables for a specific source IP: iptables -A INPUT -p …