admin

Linux: Shell

liste shells: cat /etc/shells indiquer l’analyseur: #!/bin/sh lancer fichier shell (/root/scripts/hello.sh) bash hello.sh sh hello.sh /root/scripts/hello.sh (#!/bin/bash) ./hello.sh source hello.sh (无子shell) . hello.sh(无子shell) si on met les fichier shell dans /bin/, on peut lancer directe, ou on peut ajouter le chemin du fichier dans le $PATH (echo $PATH) Parametres: $HOME $PWD $SHELL $USER Définir Variable:

Linux: Shell Read More »

Panier