{"id":34,"date":"2023-11-26T16:24:54","date_gmt":"2023-11-26T15:24:54","guid":{"rendered":"https:\/\/artheodoc.fr\/?page_id=34"},"modified":"2025-09-28T15:33:46","modified_gmt":"2025-09-28T13:33:46","slug":"modification-de-la-variable-denvironnement-path-pour-pouvoir-utiliser-les-commandes-du-shell","status":"publish","type":"page","link":"https:\/\/artheodoc.fr\/index.php\/modification-de-la-variable-denvironnement-path-pour-pouvoir-utiliser-les-commandes-du-shell\/","title":{"rendered":"Modification de la variable d\u2019environnement PATH pour pouvoir utiliser les commandes du Shell"},"content":{"rendered":"\n<p>Sous Debian 11, 12 et 13, si le syst\u00e8me ne trouve pas les commandes SHELL que vous voulez utiliser.<\/p>\n\n\n\n<p>La suite est r\u00e9alis\u00e9e en administrateur root <strong>su<\/strong>.<\/p>\n\n\n\n<p>1 &#8211; Modification de la variable <strong>PATH<\/strong> pour la dur\u00e9e de la session&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>export PATH=$PATH:\/usr\/sbin<\/strong><\/pre>\n\n\n\n<p>2 &#8211; Pour que les modifications soient conserv\u00e9es pour les session suivantes&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>echo 'export PATH=$PATH:\/usr\/sbin' &gt;&gt; \/home\/<em>dominique<\/em>\/.bashrc<\/strong><\/pre>\n\n\n\n<p>Remplacez <strong><em>dominique<\/em><\/strong> par le nom de votre utilisateur.<\/p>\n\n\n\n<p>Pour voir le contenu de la variable <strong>PATH<\/strong> (pas besoin d\u2019\u00eatre administrateur)&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>echo $PATH<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sous Debian 11, 12 et 13, si le syst\u00e8me ne trouve pas les commandes SHELL que vous voulez utiliser. La suite est r\u00e9alis\u00e9e en administrateur root su. 1 &#8211; Modification de la variable PATH pour la dur\u00e9e de la session&nbsp;: export PATH=$PATH:\/usr\/sbin 2 &#8211; Pour que les modifications soient conserv\u00e9es pour les session suivantes&nbsp;: echo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-34","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":3,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":2533,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/34\/revisions\/2533"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}