Telegram- 👇 😉
-
. WIKIMERIONET
Merion Mertics , ,

CRM

5

, , Bash . , Bash , .

Bash, , , .

  Bash   Linux

Bash Linux.


, , . Linux, chmod execute. , .

$ chmod u+x script
$ chmod 744 script	

, , .

, .

script

, , , Bash.


Bash

Bash Linux, , Bash .

$ /path/to/script <arg1> <arg2> ... <argn>	

, , Bash-, .

, , .

#  
$ /home/user/script 

#    
$ /home/user/script "john" "jack" "jim"	

, Bash, .

#  
$ ./script

#    
$ ./script "john" "jack" "jim"	

, Bash- .


Bash , bash

Bash , bash , , .

$ bash <script>	

, sh, sh.

, , Bash script. bash,

$ bash script

This is the output from your script!	

Bash, sh, zsh, dash

, .

Bash - , , . , , which .

$ which sh

/usr/bin/sh

$ which dash

/usr/bin/dash	

, , , .


Bash

Bash, .

Bash , PATH.

$ export PATH="<path_to_script>:$PATH"

, PATH, , .

$ script

This is the output from script!

, PATH .bashrc source Bash.

$ sudo nano ~/.bashrc

export PATH="<path_to_script>:$PATH"	

source bashrc .

$ source ~/.bashrc

$ echo $PATH

/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games	

! .


Bash

Bash - , GNOME.

GNOME

GNOME, Ask what to do .

Ask what to do

, .

: ( ) .

, .

!


, Bash , , . , , PATH GNOME.