Linux Source Command

Ғылым және технология

The source command is a built-in command in Unix-based operating systems like Linux and macOS that is used to read and execute commands from a file in the current shell session.
When you run the source command followed by the name of a shell script file, it reads and executes the commands in that file as if they were entered directly on the command line. This is useful for setting environment variables, defining functions, or running scripts that modify the current shell environment.
The . (dot) command is an alias for the source command in most shells.
Both source and . can be used interchangeably in most cases.

Пікірлер: 2

  • @silenthill47
    @silenthill475 ай бұрын

    Your videos are very informative. Can you continue it more? Specially for Bash Scripting. And try to create a playlist for that. Thank You!

  • @nikkiinit

    @nikkiinit

    5 ай бұрын

    I sure will continue on some more bash topics! And yes, I will put them in a playlist! Thanks for the advice ❤️

Келесі