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

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

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

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

  6. How to run source and export inside a systemd unit file to start the ...

    Oct 4, 2021 · Is test.startup the same as the bash script you posted, or is it something different? Are you trying to run source and export in the service file directly or in test.startup?

  7. How to compile and install programs from source

    That being said... +1 bump for asking a common question that should be answered for all newcomers to *nix systems. :) Building from source sometimes means the difference between fixing a nasty bug …

  8. 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 and breaks the …

  9. How to "source" a specific variable - Unix & Linux Stack Exchange

    Apr 16, 2020 · When you say source and have two files, I am thinking that you are wanting to have the two commands available at the command line and want provider to set the variable for the consumer …

  10. Why does Bash's source not need the execution bit?

    Jun 22, 2016 · 58 source or the equivalent but standard dot . do not execute the script, but read the commands from script file, then execute them, line by line, in current shell environment. There's …