Differences Between source xxx.sh and ./xxx.sh in Linux

Differences Between source xxx.sh and ./xxx.sh in Linux

Both source xxx.sh and ./xxx.sh are common methods for executing Shell scripts in Linux/Unix systems, and they have fundamental differences in execution environment, permission requirements, and their impact on the current Shell. The table below summarizes their core differences for easier understanding: Feature Comparison <span>source xxx.sh</span> <span>./xxx.sh</span> Execution Environment Current Shell Process New Sub Shell … Read more

Differences Between source xxx.sh and ./xxx.sh in Linux

Differences Between source xxx.sh and ./xxx.sh in Linux

The source xxx.sh and ./xxx.sh commands are two common methods for executing Shell scripts in Linux/Unix systems. They have fundamental differences in execution environment, permission requirements, and their impact on the current Shell. The table below summarizes their core differences for quick understanding: Feature Comparison source xxx.sh ./xxx.sh Execution Environment Current Shell Process New Sub … Read more

Building Ansible Execution Environment Images

Building Ansible Execution Environment Images

Building Ansible Execution Environment Images The construction of Ansible’s execution environment is essentially the construction of a container image, with Ansible providing a command <span>ansible-builder</span> to achieve standardized image building. <span>ansible-builder</span> will by default use the <span>execution-environment.yaml</span> or <span>execution-environment.yml</span> in the current directory as the execution environment definition file (which is the <span>Containerfile</span> or <span>Dockerfile</span>). … Read more

Ansible: From Introduction to Abandonment (Part 15)

Ansible: From Introduction to Abandonment (Part 15)

Ansible-navigator exec Common Options and Explanations <span>ansible-navigator exec</span> is equivalent to <span>podman run -it –rm <image> /bin/bash</span> (default is <span>/bin/bash</span>), <span>ansible-navigator exec</span> is commonly used to execute Ansible Ad-Hoc. The available options are as follows: Parameter Meaning Example Default Value <span>exec_command</span> Specifies the command to run in the execution environment (EE) <span>ansible –version</span> <span>/bin/bash</span> <span>–exshell</span>, … Read more

Ansible: From Introduction to Abandonment (Part 16)

Ansible: From Introduction to Abandonment (Part 16)

Last time we discussed two subcommands of Ansible-navigator: exec and run. Here, we will introduce five more subcommands of Ansible-navigator (and there are 5 more to write about next time). Ansible-navigator welcome <span>ansible-navigator welcome</span> starts an interactive interface similar to a help document for quickly understanding the usage of <span>ansible-navigator</span>. [root@ansible-controller ansible-navigator]# ansible-navigator welcome \ … Read more