{"id":1687,"date":"2025-07-01T10:06:04","date_gmt":"2025-07-01T09:06:04","guid":{"rendered":"https:\/\/workboot.fr\/ciela\/?page_id=1687"},"modified":"2025-07-21T09:06:10","modified_gmt":"2025-07-21T08:06:10","slug":"bash-shell","status":"publish","type":"page","link":"https:\/\/workboot.fr\/ciela\/bash-shell\/","title":{"rendered":"Bash shell"},"content":{"rendered":"\n<nav aria-label=\"Table des mati\u00e8res\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/bash-shell\/#commande-builtin-ou-non\">commande builtin ou non<\/a><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"https:\/\/workboot.fr\/ciela\/bash-shell\/#console-virtuelle-tty\">\ud83d\udda5\ufe0f Console virtuelle (TTY)<\/a><\/li><\/ol><\/li><\/ol><\/nav>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/variables-denvironnement\/\">les variables d&rsquo;environnement<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/les-variables-en-shell-bash\/\">les varriables en shell bash<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On va ouvrir un terminal, le terminal va permettre la communication avec le shell (pour communiquer avec le noyau)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etudiant@ordi:~$ ls\nBureau     Images   Musique  snap             Vid\u00e9os\nDocuments  Mod\u00e8les  Public   T\u00e9l\u00e9chargements\netudiant@ordi:~$ _<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">la on remarque l&rsquo;utilisateur etudiant (le login de connexion)    (\u00e9viter les accents , les accents n&rsquo;existe pas en anglais)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">on a taper ls (suivi d&rsquo;une validation avec entr\u00e9e)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">on y voit ici des r\u00e9pertoires  , on est positionn\u00e9 actuellement dans le r\u00e9pertoire de travail d&rsquo;\u00e9tudiant ( pwd )<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etudiant@ordi:~$ pwd\n\/home\/etudiant\netudiant@ordi:~$ <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Par d\u00e9faut en g\u00e9n\u00e9rale  on est sous l\u2019interpr\u00e9teur bash <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etudiant@ordi:~$ echo $SHELL\n\/bin\/<strong>bash<\/strong>\netudiant@ordi:~$ <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"commande-builtin-ou-non\">commande builtin ou non<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Les commandes quand on est avec l\u2019interpr\u00e9teur bash sont soit interne (builtin) ou externe , des ex\u00e9cutables mis dans l&rsquo;arborescence du syst\u00e8me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">la variable $PATH  d\u00e9fini ou chercher ces commandes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etudiant@ordi:~\/Works\/TP0_LINUX$ echo $PATH\n\/usr\/local\/sbin:\/usr\/local\/bin:<strong>\/usr\/sbin<\/strong>:\/usr\/bin:\/sbin:<strong>\/bin<\/strong>:\/usr\/games:\/usr\/local\/games:\/snap\/bin<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>whereis<\/strong> savoir ou trouver  la commande <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etudiant@ordi:~\/Works\/TP0_LINUX$ <strong>type<\/strong> whereis\nwhereis est \/usr\/bin\/whereis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">par exemple <strong>whereis<\/strong> est une commande ex\u00e9cutable dans \/usr\/bin\/whereis<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etudiant@ordi:~\/Works\/TP0_LINUX$ type type\ntype est une primitive du shell<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">alors que type est une commande interne (builtin) a bash <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"console-virtuelle-tty\">\ud83d\udda5\ufe0f <strong>Console virtuelle (TTY)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Lorsque tu es <strong>en dehors de l\u2019environnement graphique (GUI)<\/strong>, ou m\u00eame depuis un terminal graphique, les touches <code>Ctrl + Alt + F1<\/code> \u00e0 <code>F6<\/code> permettent de <strong>changer de terminal virtuel (TTY)<\/strong> :<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Raccourci<\/th><th>Effet<\/th><\/tr><\/thead><tbody><tr><td><code>Ctrl + Alt + F1<\/code><\/td><td>Acc\u00e8de \u00e0 TTY1 (session texte)<\/td><\/tr><tr><td><code>Ctrl + Alt + F2<\/code><\/td><td>Acc\u00e8de \u00e0 TTY2, etc.<\/td><\/tr><tr><td><code>Ctrl + Alt + F7<\/code> ou <code>F1<\/code><\/td><td>Retour \u00e0 l\u2019interface graphique (sur certaines distributions)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ces TTY sont des <strong>terminaux ind\u00e9pendants<\/strong> o\u00f9 tu peux te connecter \u00e0 ton compte en ligne de commande.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>les variables d&rsquo;environnement les varriables en shell bash On va ouvrir un terminal, le terminal va permettre la communication avec le shell (pour communiquer avec le noyau) la on remarque [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-1687","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bash shell - workboot<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/workboot.fr\/ciela\/bash-shell\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash shell - workboot\" \/>\n<meta property=\"og:description\" content=\"les variables d&rsquo;environnement les varriables en shell bash On va ouvrir un terminal, le terminal va permettre la communication avec le shell (pour communiquer avec le noyau) la on remarque [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/workboot.fr\/ciela\/bash-shell\/\" \/>\n<meta property=\"og:site_name\" content=\"workboot\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-21T08:06:10+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/bash-shell\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/bash-shell\\\/\",\"name\":\"Bash shell - workboot\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\"},\"datePublished\":\"2025-07-01T09:06:04+00:00\",\"dateModified\":\"2025-07-21T08:06:10+00:00\",\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/workboot.fr\\\/ciela\\\/bash-shell\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#website\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"name\":\"workboot\",\"description\":\"Open Source, Open Minds \",\"publisher\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#organization\",\"name\":\"workboot\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"contentUrl\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/logo_ciel-dorian-1.png\",\"width\":1024,\"height\":950,\"caption\":\"workboot\"},\"image\":{\"@id\":\"https:\\\/\\\/workboot.fr\\\/ciela\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bash shell - workboot","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/workboot.fr\/ciela\/bash-shell\/","og_locale":"fr_FR","og_type":"article","og_title":"Bash shell - workboot","og_description":"les variables d&rsquo;environnement les varriables en shell bash On va ouvrir un terminal, le terminal va permettre la communication avec le shell (pour communiquer avec le noyau) la on remarque [&hellip;]","og_url":"https:\/\/workboot.fr\/ciela\/bash-shell\/","og_site_name":"workboot","article_modified_time":"2025-07-21T08:06:10+00:00","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/workboot.fr\/ciela\/bash-shell\/","url":"https:\/\/workboot.fr\/ciela\/bash-shell\/","name":"Bash shell - workboot","isPartOf":{"@id":"https:\/\/workboot.fr\/ciela\/#website"},"datePublished":"2025-07-01T09:06:04+00:00","dateModified":"2025-07-21T08:06:10+00:00","inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/workboot.fr\/ciela\/bash-shell\/"]}]},{"@type":"WebSite","@id":"https:\/\/workboot.fr\/ciela\/#website","url":"https:\/\/workboot.fr\/ciela\/","name":"workboot","description":"Open Source, Open Minds ","publisher":{"@id":"https:\/\/workboot.fr\/ciela\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/workboot.fr\/ciela\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/workboot.fr\/ciela\/#organization","name":"workboot","url":"https:\/\/workboot.fr\/ciela\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/","url":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","contentUrl":"https:\/\/workboot.fr\/ciela\/wp-content\/uploads\/2025\/05\/logo_ciel-dorian-1.png","width":1024,"height":950,"caption":"workboot"},"image":{"@id":"https:\/\/workboot.fr\/ciela\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/workboot.fr\/ciela\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"les variables d&rsquo;environnement les varriables en shell bash On va ouvrir un terminal, le terminal va permettre la communication avec le shell (pour communiquer avec le noyau) la on remarque [&hellip;]","_links":{"self":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/comments?post=1687"}],"version-history":[{"count":7,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1687\/revisions"}],"predecessor-version":[{"id":2654,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1687\/revisions\/2654"}],"wp:attachment":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/media?parent=1687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}