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 …

  2. Why can `BASH_SOURCE` be used to obtain the current directory …

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

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

  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 …

  5. 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, 6 months ago Modified 4 years, 11 months ago

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

  7. How to view source code to built in linux commands?

    May 1, 2022 · 0 When you say cat /bin/ping, you are trying to look at the binary code for the command that has been compiled from the C source. You should be looking for the C source …

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

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

  10. Getting kernel source code (ubuntu) - Unix & Linux Stack Exchange

    Apr 10, 2017 · I want to try my hand at writing a linux driver. I am trying to set up my environment. My current kernel: $ uname -r 4.10.0-37-generic I then download the source code: $ apt-get …