<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Namespace Linux on Bash Tools Framework Documentation</title><link>https://bash-tools-framework.devlab.top/bashdoc/linux/</link><description>Recent content in Namespace Linux on Bash Tools Framework Documentation</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 12 Jun 2026 14:26:41 +0000</lastBuildDate><atom:link href="https://bash-tools-framework.devlab.top/bashdoc/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Namespace src/Linux/Apt</title><link>https://bash-tools-framework.devlab.top/bashdoc/linux/apt/</link><pubDate>Sun, 01 Mar 2026 00:00:00 +0000</pubDate><guid>https://bash-tools-framework.devlab.top/bashdoc/linux/apt/</guid><description>&lt;h2 id="srclinuxapt"&gt;src/Linux/Apt&lt;/h2&gt;
&lt;h3 id="overview"&gt;Overview&lt;/h3&gt;
&lt;p&gt;Directory src/Linux/Apt&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Apt/addRepository.sh"&gt;file source src/Linux/Apt/addRepository.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxaptaddrepository"&gt;Linux::Apt::addRepository&lt;/h4&gt;
&lt;p&gt;&lt;a href="#"&gt;&lt;img src="https://img.shields.io/badge/Feature-Retry%3A%3A%3A%3Adefault-green.svg" alt="Featuring Retry::default"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;add apt repository followed by an apt-get update&lt;/p&gt;
&lt;h5 id="environment-variables"&gt;Environment variables&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;SKIP_APT_GET_UPDATE&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="output-on-stdout"&gt;Output on stdout&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;diagnostics logs&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="requires"&gt;Requires&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;Linux::requireUbuntu&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="features"&gt;Features&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;Retry::default&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="srclinuxaptinstallsh"&gt;src/Linux/Apt/install.sh&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Apt/install.sh"&gt;file source src/Linux/Apt/install.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxaptinstall"&gt;Linux::Apt::install&lt;/h4&gt;
&lt;p&gt;&lt;a href="#"&gt;&lt;img src="https://img.shields.io/badge/Feature-Retry%3A%3A%3A%3Adefault-green.svg" alt="Featuring Retry::default"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;apt-get install&lt;/p&gt;
&lt;h5 id="arguments"&gt;Arguments&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&amp;hellip;&lt;/strong&gt; (softwares:String[]): list of softwares to install&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="output-on-stdout-1"&gt;Output on stdout&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;diagnostics logs&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="requires-1"&gt;Requires&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;Linux::requireUbuntu&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="features-1"&gt;Features&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;Retry::default&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="srclinuxaptinstallifnecessarysh"&gt;src/Linux/Apt/installIfNecessary.sh&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Apt/installIfNecessary.sh"&gt;file source src/Linux/Apt/installIfNecessary.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxaptinstallifnecessary"&gt;Linux::Apt::installIfNecessary&lt;/h4&gt;
&lt;p&gt;&lt;a href="#"&gt;&lt;img src="https://img.shields.io/badge/Feature-Retry%3A%3A%3A%3Adefault-green.svg" alt="Featuring Retry::default"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;apt-get install if package is not installed yet&lt;/p&gt;</description></item><item><title>Namespace src/Linux/Sudo</title><link>https://bash-tools-framework.devlab.top/bashdoc/linux/sudo/</link><pubDate>Sun, 01 Mar 2026 00:00:00 +0000</pubDate><guid>https://bash-tools-framework.devlab.top/bashdoc/linux/sudo/</guid><description>&lt;h2 id="srclinuxsudo"&gt;src/Linux/Sudo&lt;/h2&gt;
&lt;h3 id="overview"&gt;Overview&lt;/h3&gt;
&lt;p&gt;Directory src/Linux/Sudo&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Sudo/asUser.sh"&gt;file source src/Linux/Sudo/asUser.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxsudoasuser"&gt;Linux::Sudo::asUser&lt;/h4&gt;
&lt;p&gt;execute command passed as arguments
using sudo if current user is not already the targeted user&lt;/p&gt;
&lt;h5 id="arguments"&gt;Arguments&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&amp;hellip;&lt;/strong&gt; (args:String[]): the command to execute as sudo&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="environment-variables"&gt;Environment variables&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;USERNAME&lt;/strong&gt; (String): sudo as this user (root by default)&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="exit-codes"&gt;Exit codes&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;1&lt;/strong&gt;: exit code of command&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="requires"&gt;Requires&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;Linux::requireSudoCommand&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="srclinuxsudoasuserinheritenvsh"&gt;src/Linux/Sudo/asUserInheritEnv.sh&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Sudo/asUserInheritEnv.sh"&gt;file source src/Linux/Sudo/asUserInheritEnv.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxsudoasuserinheritenv"&gt;Linux::Sudo::asUserInheritEnv&lt;/h4&gt;
&lt;p&gt;execute command passed as arguments
using sudo with environment inherited if current user is not already the targeted user&lt;/p&gt;</description></item><item><title>Namespace src/Linux/Wsl</title><link>https://bash-tools-framework.devlab.top/bashdoc/linux/wsl/</link><pubDate>Sun, 01 Mar 2026 00:00:00 +0000</pubDate><guid>https://bash-tools-framework.devlab.top/bashdoc/linux/wsl/</guid><description>&lt;h2 id="srclinuxwsl"&gt;src/Linux/Wsl&lt;/h2&gt;
&lt;h3 id="overview"&gt;Overview&lt;/h3&gt;
&lt;p&gt;Directory src/Linux/Wsl&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Wsl/assertWindowsEtcHost.sh"&gt;file source src/Linux/Wsl/assertWindowsEtcHost.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxwslassertwindowsetchost"&gt;Linux::Wsl::assertWindowsEtcHost&lt;/h4&gt;
&lt;p&gt;Check if Host is defined in etc/hosts of windows&lt;/p&gt;
&lt;h5 id="arguments"&gt;Arguments&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;$1 host:String&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="exit-codes"&gt;Exit codes&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;1&lt;/strong&gt;: if hostname not found&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="srclinuxwslcachedwslpathsh"&gt;src/Linux/Wsl/cachedWslpath.sh&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Wsl/cachedWslpath.sh"&gt;file source src/Linux/Wsl/cachedWslpath.sh&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="linuxwslcachedwslpath"&gt;Linux::Wsl::cachedWslpath&lt;/h4&gt;
&lt;p&gt;&lt;a href="#"&gt;&lt;img src="https://img.shields.io/badge/Deprecated-use%20Linux%3A%3A%3A%3AWsl%3A%3A%3A%3AcachedWslpath2%20instead-red.svg" alt="Deprecated use Linux::Wsl::cachedWslpath2 instead"&gt;&lt;/a&gt;
&lt;a href="#"&gt;&lt;img src="https://img.shields.io/badge/Feature-cache-green.svg" alt="Featuring cache"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;retrieve wslpath using cache (cache is refreshed every day)&lt;/p&gt;
&lt;h5 id="arguments-1"&gt;Arguments&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&amp;hellip;&lt;/strong&gt; (args:String[]): arguments to pass to wslpath&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="environment-variables"&gt;Environment variables&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;WSL_TMPDIR&lt;/strong&gt; (String): temp directory to store the wslpath cache (default value: TMPDIR), you can use PERSISTENT_TMPDIR instead&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="exit-codes-1"&gt;Exit codes&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;ul&gt;
&lt;li&gt;if Linux::Wsl::originalWslpath cannot find the path&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="output-on-stderr"&gt;Output on stderr&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;diagnostics information is displayed&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="requires"&gt;Requires&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;Linux::Wsl::requireWsl&lt;/li&gt;
&lt;/ul&gt;
&lt;h5 id="features"&gt;Features&lt;/h5&gt;
&lt;ul&gt;
&lt;li&gt;cache&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="srclinuxwslcachedwslpath2sh"&gt;src/Linux/Wsl/cachedWslpath2.sh&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://github.com/fchastanet/bash-tools-framework/tree/master/src/Linux/Wsl/cachedWslpath2.sh"&gt;file source src/Linux/Wsl/cachedWslpath2.sh&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>