<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Terminal on</title><link>https://XenoElectronics.com/en/tags/terminal/</link><description>Recent content in Terminal on</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 16 Feb 2025 13:10:31 +0100</lastBuildDate><atom:link href="https://XenoElectronics.com/en/tags/terminal/index.xml" rel="self" type="application/rss+xml"/><item><title>You Should Learn How to use the Terminal in Linux</title><link>https://XenoElectronics.com/en/posts/2025/you-should-learn-how-to-use-the-terminal-in-linux/</link><pubDate>Sun, 16 Feb 2025 13:10:31 +0100</pubDate><guid>https://XenoElectronics.com/en/posts/2025/you-should-learn-how-to-use-the-terminal-in-linux/</guid><description>
&lt;figure&gt;&lt;a href="https://go.getproton.me/aff_c?offer_id=7&amp;amp;aff_id=12996" target="_blank" class="inline-block"&gt;
&lt;img
class="my-0 rounded-md nozoom"
src="https://XenoElectronics.com/logos/proton.png"
alt="Affiliate-Partner – geprüft von XenoElectronics"
/&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;h2 class="relative group"&gt;Useful Links
&lt;div id="useful-links" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#useful-links" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Learning Bash&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Learning Bash: &lt;a href="https://linuxhandbook.com/bash/" target="_blank" rel="noreferrer"&gt;https://linuxhandbook.com/bash/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What dose this bash Code: &lt;a href="https://explainshell.com/" target="_blank" rel="noreferrer"&gt;https://explainshell.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Basics about Terminals: &lt;a href="https://linuxcommand.org/lc3_learning_the_shell.php" target="_blank" rel="noreferrer"&gt;https://linuxcommand.org/lc3_learning_the_shell.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Bash Youtube Series for Beginers: &lt;a href="https://www.youtube.com/watch?v=uXohpTNNP8A&amp;amp;list=PL3cu45aM3C2A-hhXVkOSXxKku1IgPdL6L" target="_blank" rel="noreferrer"&gt;https://www.youtube.com/watch?v=uXohpTNNP8A&amp;list=PL3cu45aM3C2A-hhXVkOSXxKku1IgPdL6L&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;Terminal Emulator examples&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://konsole.kde.org/" target="_blank" rel="noreferrer"&gt;https://konsole.kde.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gnome-terminator.org/" target="_blank" rel="noreferrer"&gt;https://gnome-terminator.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sw.kovidgoyal.net/kitty/" target="_blank" rel="noreferrer"&gt;https://sw.kovidgoyal.net/kitty/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gnunn1.github.io/tilix-web/" target="_blank" rel="noreferrer"&gt;https://gnunn1.github.io/tilix-web/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.waveterm.dev/" target="_blank" rel="noreferrer"&gt;https://www.waveterm.dev/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;Terminal Shells&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.gnu.org/software/bash/" target="_blank" rel="noreferrer"&gt;https://www.gnu.org/software/bash/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://fishshell.com/" target="_blank" rel="noreferrer"&gt;https://fishshell.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://linux.die.net/man/1/dash" target="_blank" rel="noreferrer"&gt;https://linux.die.net/man/1/dash&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.zsh.org/" target="_blank" rel="noreferrer"&gt;https://www.zsh.org/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 class="relative group"&gt;Forewords
&lt;div id="forewords" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#forewords" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;This will be less of a guide and more of a collection of tips where you can learn how to use a Terminal. Bash or programming itself is not something that you simply explain, you only learn it if you actually work with it. So I can explain as much as I want, if you don&amp;rsquo;t use it you will never learn it.&lt;/p&gt;
&lt;p&gt;Nevertheless, I will roughly explain the basics of what a CLI is, what a shell is and also what a terminal emulator is.&lt;/p&gt;
&lt;h2 class="relative group"&gt;The three questions I want to explain
&lt;div id="the-three-questions-i-want-to-explain" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-three-questions-i-want-to-explain" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;h3 class="relative group"&gt;What is an Terminal Emulator?
&lt;div id="what-is-an-terminal-emulator" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-an-terminal-emulator" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;Let&amp;rsquo;s start with what we see directly when we talk about a terminal. This black window with text inside is the so-called terminal interface, it is also called a terminal emulator because it is a program that behaves like a terminal but is a GUI. I will explain what a GUI is when I get to the CLI question.&lt;/p&gt;
&lt;p&gt;The purpose of a terminal is to provide a text-based interface that allows users to interact with their computer&amp;rsquo;s operating system by typing commands. These are used when an OS does not have a desktop but you still need to interact with the OS.&lt;/p&gt;
&lt;p&gt;This is often the case with servers to save resources and allow them to be managed remotely without having to transfer a desktop over the Network. This is done via SSH. Which in turn saves bandwidth.&lt;/p&gt;
&lt;p&gt;In linux, these terminals are often preferred to graphical programs if you need to make settings on the OS that go beyond graphical menus. Since these commands are identical for all Linux distros, it is also easier to write scripts or solve problems. This is why you often see solutions in forums that are solved with a terminal.&lt;/p&gt;
&lt;p&gt;Windows and Mac OS also use terminals and they are often used when you need to make settings on the OS.&lt;/p&gt;
&lt;p&gt;As you can see, the terminal is very powerful and should not be seen as an annoyance but as a powerful tool that can help you.&lt;/p&gt;
&lt;h3 class="relative group"&gt;What is a CLI?
&lt;div id="what-is-a-cli" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-a-cli" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;Now that we know what exactly a terminal is, let&amp;rsquo;s move on to the CLI, the command line interface. It can be partly derived from before but a CLI is pure text there are no graphics that visualize anything. That&amp;rsquo;s what a GUI is for, the graphical user interface. This displays everything with images, text etc. That would be e.g. browsers or games.&lt;/p&gt;
&lt;h3 class="relative group"&gt;What is a Shell?
&lt;div id="what-is-a-shell" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-a-shell" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;The shell has not been mentioned yet, except for Bash but not the fact that it is a shell, so what is a shell?&lt;/p&gt;
&lt;p&gt;In Bash we enter commands, e.g. pwd to display the current directory we are in. Of course the command pwd itself tells a PC nothing because it thinks in machine language. In other words, the shell translates the command for the PC. That is not 100% accurate but is better to understand what a shell even is.&lt;/p&gt;
&lt;p&gt;It is therefore like a programming language, which is why there are several shells, for example bash, dash, fish or zsh.&lt;/p&gt;
&lt;p&gt;They all work very similarly but have different advantages and disadvantages. Which you can read about here.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://cyberpanel.net/blog/6-types-of-shells-in-linux" target="_blank" rel="noreferrer"&gt;https://cyberpanel.net/blog/6-types-of-shells-in-linux&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I recommend using bash as it is the standard.&lt;/p&gt;
&lt;h2 class="relative group"&gt;How do you learn bash and so on?
&lt;div id="how-do-you-learn-bash-and-so-on" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#how-do-you-learn-bash-and-so-on" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;As mentioned at the beginning, just use it and read up on it if you get stuck.&lt;/p&gt;
&lt;p&gt;Good commands to find out what a command does are:&lt;/p&gt;
&lt;p&gt;tldr&lt;/p&gt;
&lt;p&gt;man&lt;/p&gt;
&lt;p&gt;for example:&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;man pwd&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tldr pwd&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;These commands show you exactly what pwd does or how to use it. man is more detailed while tldr shows a short summary of commands that are useful.&lt;/p&gt;
&lt;p&gt;Good learning materials are described above, so my tip is to install Linux in a virtual machine, be it with Virtual Box, and simply test out the terminal.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.virtualbox.org/wiki/Downloads" target="_blank" rel="noreferrer"&gt;https://www.virtualbox.org/wiki/Downloads&lt;/a&gt;&lt;/p&gt;
&lt;figure&gt;&lt;a href="https://go.getproton.me/aff_c?offer_id=7&amp;amp;aff_id=12996" target="_blank" class="inline-block"&gt;
&lt;img
class="my-0 rounded-md nozoom"
src="https://XenoElectronics.com/logos/proton.png"
alt="Affiliate-Partner – geprüft von XenoElectronics"
/&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;h2 class="relative group"&gt;Services from XenoElectronics
&lt;div id="services-from-xenoelectronics" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#services-from-xenoelectronics" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;If you need help with your projects or with open source software. Take a look at our contact page and let us know what you need. We will help you to realize your projects.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://xenoelectronics.com/contact/" target="_blank" rel="noreferrer"&gt;https://xenoelectronics.com/contact/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 class="relative group"&gt;Open source support &amp;amp; coffee fund
&lt;div id="open-source-support--coffee-fund" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
&lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#open-source-support--coffee-fund" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;Did this guide save you hours of troubleshooting?
We are happy to make this knowledge available to the community free of charge. If you would like to support our work on further open source tutorials, we would appreciate a “virtual coffee” or your support on Patreon.&lt;/p&gt;
&lt;p&gt;Thank you for reading and for your time!&lt;/p&gt;
&lt;div
class="flex px-4 py-3 rounded-md shadow bg-primary-100 dark:bg-primary-900"
&gt;
&lt;span
class="text-primary-400 pe-3 flex items-center"
&gt;
&lt;span class="relative block icon"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"&gt;&lt;path fill="currentColor" d="M512 194.8c0 101.3-82.4 183.8-183.8 183.8-101.7 0-184.4-82.4-184.4-183.8 0-101.6 82.7-184.3 184.4-184.3C429.6 10.5 512 93.2 512 194.8zM0 501.5h90v-491H0v491z"/&gt;&lt;/svg&gt;
&lt;/span&gt;
&lt;/span&gt;
&lt;span
class="dark:text-neutral-300"
&gt;&lt;a href="https://www.patreon.com/XenoElectronics" target="_blank" rel="noreferrer"&gt;Become a Patreon supporter&lt;/a&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div
class="flex px-4 py-3 rounded-md shadow bg-primary-100 dark:bg-primary-900"
&gt;
&lt;span
class="text-primary-400 pe-3 flex items-center"
&gt;
&lt;span class="relative block icon"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"&gt;
&lt;path fill="currentColor" d="M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z"/&gt;&lt;/svg&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;span
class="dark:text-neutral-300"
&gt;&lt;a href="https://www.paypal.com/donate/?hosted_button_id=TPCQVYSYC5CGA" target="_blank" rel="noreferrer"&gt;Support via PayPal&lt;/a&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div
class="flex px-4 py-3 rounded-md shadow bg-primary-100 dark:bg-primary-900"
&gt;
&lt;span
class="text-primary-400 pe-3 flex items-center"
&gt;
&lt;span class="relative block icon"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"&gt;
&lt;path fill="currentColor" d="M165 144.7l-43.3 9.2-.2 142.4c0 26.3 19.8 43.3 46.1 43.3 14.6 0 25.3-2.7 31.2-5.9v-33.8c-5.7 2.3-33.7 10.5-33.7-15.7V221h33.7v-37.8h-33.7zm89.1 51.6l-2.7-13.1H213v153.2h44.3V233.3c10.5-13.8 28.2-11.1 33.9-9.3v-40.8c-6-2.1-26.7-6-37.1 13.1zm92.3-72.3l-44.6 9.5v36.2l44.6-9.5zM44.9 228.3c0-6.9 5.8-9.6 15.1-9.7 13.5 0 30.7 4.1 44.2 11.4v-41.8c-14.7-5.8-29.4-8.1-44.1-8.1-36 0-60 18.8-60 50.2 0 49.2 67.5 41.2 67.5 62.4 0 8.2-7.1 10.9-17 10.9-14.7 0-33.7-6.1-48.6-14.2v40c16.5 7.1 33.2 10.1 48.5 10.1 36.9 0 62.3-15.8 62.3-47.8 0-52.9-67.9-43.4-67.9-63.4zM640 261.6c0-45.5-22-81.4-64.2-81.4s-67.9 35.9-67.9 81.1c0 53.5 30.3 78.2 73.5 78.2 21.2 0 37.1-4.8 49.2-11.5v-33.4c-12.1 6.1-26 9.8-43.6 9.8-17.3 0-32.5-6.1-34.5-26.9h86.9c.2-2.3.6-11.6.6-15.9zm-87.9-16.8c0-20 12.3-28.4 23.4-28.4 10.9 0 22.5 8.4 22.5 28.4zm-112.9-64.6c-17.4 0-28.6 8.2-34.8 13.9l-2.3-11H363v204.8l44.4-9.4.1-50.2c6.4 4.7 15.9 11.2 31.4 11.2 31.8 0 60.8-23.2 60.8-79.6.1-51.6-29.3-79.7-60.5-79.7zm-10.6 122.5c-10.4 0-16.6-3.8-20.9-8.4l-.3-66c4.6-5.1 11-8.8 21.2-8.8 16.2 0 27.4 18.2 27.4 41.4.1 23.9-10.9 41.8-27.4 41.8zm-126.7 33.7h44.6V183.2h-44.6z"/&gt;&lt;/svg&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;span
class="dark:text-neutral-300"
&gt;&lt;a href="https://buy.stripe.com/bJeeVd2Ni0l46EhgfY8Zq00" target="_blank" rel="noreferrer"&gt;Support via Stripe&lt;/a&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;p&gt;If you like to share this artikel click the icons below.&lt;/p&gt;</description></item></channel></rss>