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. 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 1 year, 11 months ago Modified 1 year, 11 months ago

  3. 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 …

  4. bash - Revert '.' or 'source' - Unix & Linux Stack Exchange

    Mar 17, 2018 · I accidentally sourced the wrong environment from a script. Is there any way to 'unsource' it or in other words to revert it and restore the previous environment? The obvious answer …

  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. 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 …

  7. 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. -t or - …

  8. zsh - Error while trying to source a .zshrc file - Unix & Linux Stack ...

    Apr 29, 2022 · You're missing / Your command source ~.zshrc tries to lookup the home directory for a user called .zshrc. The source command would presumably attempt to execute that user's home …

  9. Where to download Linux Kernel source code of a specific version ...

    Is there a resource to download a specific kernel version source? For example, I want to get 2.6.36.2 sources to compare with this package and see what changes were introduced?

  10. 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 …