About 587,000 results
Open links in new tab
  1. Source vs . why different behaviour? - Unix & Linux Stack Exchange

    source is a shell keyword that is supposed to be used like this: sourcefile where file contains valid shell commands. These shell commands will be executed in the current shell as if typed from …

  2. What is the difference between '.' and 'source' in shells?

    source is there for readability and self-documentation, . exists because it is quick to type. The commands are identical. The commands are identical. Perl has long and short versions of …

  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 …

  4. What is the difference between ~/.profile and ~/.bash_profile?

    Feb 27, 2019 · bash will try to source .bash_profile first, but if that doesn't exist, it will source .profile 1. Note that if bash is started as sh (e.g. /bin/sh is a link to /bin/bash) or is started with …

  5. shell - What is the difference between sourcing ('.' or 'source') and ...

    $ . ./file # that exact same file as above, now it is sourced $ source ./file # an equivalent (but longer) command. Of course, if the directory is not set in the path (not starting dot), some …

  6. How to export variables from a file? - Unix & Linux Stack Exchange

    . is the standard and Bourne name for the source command so I prefer it for portability (source comes from csh and is now available in most modern Bourne-like shells including bash though …

  7. What does :source % mean? - Unix & Linux Stack Exchange

    Sep 1, 2018 · The :source % command, when used on the ~/.vimrc configuration, will reload the config. You can achieve the same effect by quitting and restarting Vim, but this is faster. Note …

  8. How can I make a script in /etc/init.d start at boot?

    Apr 20, 2017 · # Source function library. . /etc/init.d/functions start() { # code to start app comes here # example: daemon program_name & } stop() { # code to stop app comes here # …

  9. How to determine the path to a sourced tcsh or bash shell script …

    @clacke: I find that in all the versions of Bash that I tested from 2.05b to 4.2.37, including 4.1.9, that . and source worked identically in this regard.

  10. What is the purpose of .bashrc and how does it work?

    May 13, 2014 · The purpose of a .bashrc file is to provide a place where you can set up variables, functions and aliases, define your (PS1) prompt and define other settings that you want to use …

Refresh