About 621,000 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 environment changes are kept. source script This also sources the script. The source command is not required by POSIX and therefore is less portable than the shorter ..

  2. Source vs . why different behaviour? - Unix & Linux Stack Exchange

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

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

    2 source is there for readability and self-documentation, . exists because it is quick to type. The commands are identical. Perl has long and short versions of many of its control variables for the same reason.

  4. 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 bang line would suggest you are). source is not POSIX. Using source on dash does not work, only . works.

  5. bash: ‘export: command not found - Unix & Linux Stack Exchange

    Nov 23, 2017 · There is a mistake every time a new terminal is opened, error: "bash: ‘export: command not found" I only copy export all_proxy="" and export ALL_PROXY="" to terminal,then when I open a new termi...

  6. How can I reduce a video's size with ffmpeg?

    How can I use ffmpeg to reduce the size of a video by lowering the quality (as minimally as possible, naturally, because I need it to run on a mobile device that doesn't have much available space)?...

  7. bash - read only TMOUT variable - Unix & Linux Stack Exchange

    Aug 10, 2015 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I get it? Instead, you can save this post to reference later.

  8. 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, when it is defined in man bash as an array of source filenames corresponding to shell functions?

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

    Apr 20, 2017 · I think I read something a while back about this, but I can't remember how it's done. Essentially, I have a service in /etc/init.d which I'd like to start automatically at boot time. I remember i...

  10. ubuntu - bash: source: filename argument required source: usage: …

    Sep 28, 2017 · i run ubuntu os. i read similar question but my problem is different whenever i launch the terminal it hangs for few seconds showing this message: bash: source: filename argument required source: