background preloader

Bash

Facebook Twitter

Bourne-Again shell. Un article de Wikipédia, l'encyclopédie libre. Bash, acronyme de Bourne-again shell, est le shell du projet GNU. Son nom est un jeu de mots sur le nom du shell historique d'Unix, le Bourne shell. Littéralement, Bourne again signifie « Bourne encore », mais se prononce également presque comme born again, signifiant « né de nouveau » ou encore « réincarné ».

Également, to bash signifie « frapper violemment » en anglais. Histoire[modifier | modifier le code] Brian Fox, en 1988, a publié la première implémentation de Bash pour le compte de la Free Software Foundation. Le Bourne shell originel, dont s'inspire Bash, fut écrit par Stephen Bourne en 1977. Usage[modifier | modifier le code] Comme tous les interpréteurs en ligne de commande de type script, Bash exécute quatre opérations fondamentales : Il fournit une liste de commandes permettant d'opérer sur l'ordinateur (lancement de programmes, copie de fichiers, etc.) Les scripts sont de courts programmes généralement faciles à construire. Guide avancé d'écriture des scripts Bash. Google Traduction. Shell Scripts - Learn Linux. LINUX CLASSES - PROGRAMMING So how do you run this little wonder of technology? In DOS, all you have to do is name a file with a .bat extension and it'll be recognized as an executable file--but not so with Linux. Since Linux attaches no meaning to file extensions, you have to mark the file as executable by using the chmod command, like this: $ chmod +x deltemp The x marks the file as executable; if you list the permissions for the deltemp file afterward, you will see the x in position four, confirming this: $ ls -l deltemp -rwx------ 1 hermie other 55 Feb 19 14:02 deltemp If you want other users to be able to run this script, give them both read and execute permission, like so: $ chmod ugo+rx deltemp $ ls -l deltemp -rwxr-xr-x 1 hermie other 55 Feb 19 14:04 deltemp Now the permissions show that any user can view or execute the deltemp script, but only you can modify it.

. $ . Note: If the current directory is in the PATH environment variable, you can omit the ./ before the name. . setvar. Traduction. Bash shell.