The Shell - The Unknown Black Hole - TUXEDO Computers

  • Notebooks
    • Notebooks/Laptops with preinstalled and configured Linux and more. TUXEDO Computers are individually built computers and PCs being fully Linux-suitable, custom tailored Linux hardware so to say. We deliver all TUXEDOs ready to go so you only ha...
    • 10-14 inch
    • 15-16 inch
    • 17 inch
    • Immediate shipping
    • Business notebooks
    • Gaming-Notebooks
    • Mobility notebooks
    • Deep Learning AI
    • All Notebooks
  • Computers / PCs
    • Computers / PCs with Linux preinstalled & more TUXEDO Computers are individually built computers and PCs being fully Linux-suitable, custom tailored Linux hardware so to say :) We deliver all TUXEDOs ready to go so you only have to unwrap,...
    • Mini Systems
    • Midi Systems
    • Maxi Systems
    • AMD Systems
    • Intel Systems
    • All Systems
  • Accessories
    • Here you will find accessories, components and peripherals for your TUXEDO system. Nothing suitable found here? Get in touch with us directly!
    • Batteries
    • Displays
    • Dockingstations
    • Books
    • Input Devices & Peripherals
    • Bags & Sleeves
    • Fan Merchandise
    • Notebook Power Supplies & Cords
    • Components & Complements
      • Cables
      • Drives
      • Hard Disk Drives 2.5"
      • Memory
      • PC Power Supplies
      • SSDs 2.5"
      • SSDs m.2 (SATAIII and NVMe)
      • WiFi, LAN & Mobile Network
      • Licenses
  • B2B
    • In this category you can find equipment for your company, office, school, university or educational institution and servers and solutions. Appliances with CRM, ERP and merchandise management, cloud storage, cloud server for self-hosting, services...
    • Business notebooks
    • Business computers
  • Novelties
  •  
    • Notebooks
      • 10-14 inch
      • 15-16 inch
      • 17 inch
      • Immediate shipping
      • Business notebooks
      • Gaming-Notebooks
      • Mobility notebooks
      • Deep Learning AI
      • All Notebooks
    • Computers / PCs
      • Mini Systems
      • Midi Systems
      • Maxi Systems
      • AMD Systems
      • Intel Systems
      • All Systems
    • Accessories
      • Batteries
      • Displays
      • Dockingstations
      • Books
      • Input Devices & Peripherals
      • Bags & Sleeves
      • Fan Merchandise
      • Notebook Power Supplies & Cords
      • Components & Complements
        • Cables
        • Drives
        • Hard Disk Drives 2.5"
        • Memory
          • DDR4 DIMM
          • DDR4 SO-DIMM
          • DDR5 DIMM
          • DDR5 SO-DIMM
        • PC Power Supplies
        • SSDs 2.5"
        • SSDs m.2 (SATAIII and NVMe)
        • WiFi, LAN & Mobile Network
        • Licenses
    • B2B
      • Business notebooks
      • Business computers
    • Novelties
  • Settings

  • Deutsch
  • English

  • Customer Account

  • Log in
  ATTENTION: To use our store you have to activate JavaScript and deactivate script blockers!  
Thank you for your understanding!

The Shell
The Unknown Black Hole

Shell, Bash, Terminal, Console? We clarify

Before there were graphical user interfaces, operating systems were operated via terminals. Those who still remember 10 kg displays with green or amber output know this. Even today, a terminal under Linux is an alternative method of operating computers, but it is no longer absolutely necessary. There are hardly any situations today where you can’t get around a terminal.

Overview

  • The Shell
  • Terminal emulators
  • The Prompt
  • Root - the SuperUser
  • Frequently used commands
  • The direct way
  • Why use the terminal at all?
NIXDORF computer 8810/25 with amber monitor.CC BY_SA 4.0 by Andreas Franzkowiak
NIXDORF computer 8810/25 with amber monitor. CC BY_SA 4.0 by Andreas Franzkowiak

The shell

Terms like shell, terminal, or console are often used synonymously, which leads to some confusion of terms. In this article, we will disentangle the basic terms and their connection and give a brief introduction to how to interact with them.

In computer science, a shell is a software by which a user interacts with an operating system. It is a command-line interpreter that allows you to interact with the OS through textual commands. It takes your input, processes it, and communicates with the Linux kernel to execute the requested actions. Finally, it gives you an output. Linux knows different shells such as Bash, Dash, Fish or Z shell, among others. Distributions come with a default shell, usually Bash, but the user can switch to other shells. These work fundamentally the same, but differ slightly in their approach and included functionality

Shells or their command line interfaces in a graphical environment are used to execute scripts and commands that perform actions on the respective computer or via SSH on remote computers. Shells already bring plenty of built-in commands for these purposes.

A terminal, in simple terms, is the shell’s window. Here, you enter the commands to be processed. Synonymously, the terms console, command line or CLI (Command Line Interface) are also used. The proliferation of terms has grown historically and unfortunately, we have to live with it. But if you know the terms, it’s not so bad and nothing to be afraid of.
 

Terminal emulators

A terminal runs below the graphical layer. To have access to a text-based terminal in the graphical layer - in our case KDE Plasma - there are various terminal emulators. A terminal emulator shipped by default with all distributions that use the common X11 display server is xterm. The individual desktop environments bring their own customized emulators such as GNOME terminal, XFCE terminal or MATE terminal. Windows also has a terminal emulator with cmd.exe. In KDE Plasma and thus in TUXEDO OS the emulator is called Konsole.

 

You can find it in the main menu by simply typing the first two or three letters and then clicking Konsole. Alternatively, start it by keyboard with CTRL+ALT+T. You can also install the Yakuake drop down terminal, which unfolds from the top of the screen using a key combination (by default F12). If you don’t like the colour scheme, font size, or other default settings for Konsole or Yakuake, right-click to change them using Edit Current Profile. If necessary, you can also create multiple profiles with different configurations.

The practical part

Now that the terminology and its connections have hopefully been sufficiently clarified, we will explain some of the most important rules and commands in Konsole, which also apply to other terminal emulators and terminals in general. Firstly, it is essential to know where you are in the file system. The first thing you see in your terminal is the so-called prompt.

The prompt

Simply put, the prompt is an input field in the terminal emulator that allows you to input and output commands. The prompt also provides the user with some useful information:

The prompt shows user and host names
The prompt shows user and host names

The prompt can look different for you, you can also install individual designs. However, it always displays some basic information. First, it displays the name of the logged-in user and the host name of the installation in the format user@hostname. After the colon comes a wavy character, the tilde. It represents where you are currently located in the file system. The tilde always represents the home directory of the logged-in user and always represents the starting point. In our case, this is ft@tuxencrypt, the latter being the hostname we chose during installation. This means that the user ft is in his home directory.

To make this clear, let’s apply a first command right away. If you type the command pwd, which stands for print working directory, and press Enter, the terminal will return your location in the file system.

pwd always knows where you are
pwd always knows where you are
Note: In the shell, there is usually no separate confirmation given for the successful execution of a command. If the prompt appears again after processing a command, the command was successful. If it was not, you will receive an error message. This is useful, for example, if an application started from the menu does not work as expected. Starting such an application in the terminal by entering the program name typically gives an explanatory error message.
If a command could not be executed successfully, an error message appears
If a command could not be executed successfully, an error message appears

Executed commands always affect the respective location in the file system or the path entered with the command. More about this later. It is therefore always important to know where you are. Even in a graphical file manager, you have to be in the right folder to edit files. From experience, it is critical to mentally apply this principle to the terminal before you can work with it successfully.

Folder view in file manager and console
Folder view in file manager and console
Note: If the console is cluttered due to too much content, clear it with CTRL+L or the clear command. The previous content is lost using clear, but not with CTRL+L, it’s merely not visible. If you scroll up, it will reappear.

Root - the SuperUser

You have just learned that as a logged-in user, at the beginning you are always in your personal home directory.

Before we dive further into the file system, one more significant point: By default, the files in your Home belong to the user who is logged in at the time. You can read them and write to them. The rest of the file tree belongs to root, the superuser account in Unix and Linux.

This is a user account for administrative purposes and has more restrictive access rights. Suppose you want to look at what files and directories are in /etc. You can do this without root privileges. However, to save changes, you need these extended privileges.

Most Linux distributions use the sudo command to temporarily grant root privileges to the user. To achieve this, a command is preceded by sudo, after which the root password is requested. An example is updating the repositories using sudo apt update.

Sudo grants root privileges for time to execute administrative commands
Sudo grants root privileges for time to execute administrative commands

Frequently used commands

Assuming you want to look at which files are in the /etc directory, there are two ways to get there. which is used here as an example of how to send commands to the right place. First the somewhat more complex way via the command cd (change directory). To achieve this, give the cd command the folder you want to change to, like cd /etc in our example. If you now call pwd again, the prompt shows that you have changed to the /etc directory.

With the command <kbd>cd</kbd> you switch up and down in the directory tree. Entering <kbd>pwd</kbd> confirms that
With the command cd you switch up and down in the directory tree. Entering pwd confirms that
Note: You can navigate with the cd command not only forward but also backwards in the file tree. With cd … you move up one level, cd without option always brings you back to your Home.

You have given the cd command the path to another directory. In our case, the path is simple and short, but it can also include many subdirectories, as in cd /etc/apt/sources.list.d.

Note: The slash in Linux is the path separator. If a slash stands alone, it symbolizes the path to the root directory, the so-called root of the file system. The command cd / takes you exactly there. The directories in it are defined in the Filesystem Hierarchy Standard, which most distributions adhere to.
cd / takes you to the root directory. With [ls] you see the directories belonging to root with the exception of home
cd / takes you to the root directory. With ls you see the directories belonging to root except for home
Note: In the file system there are files that remain invisible even in the basic settings of the graphical mode. These are hidden configuration files whose view you can unlock and which then appear with a dot in front of the file name.

But let's first continue in our example: So you are now in the directory /etc and want to view its contents. Since you are already in the directory, the command ls (list) is sufficient for that. This lists the directories and files without further information in different colours. The output becomes more detailed by using options by typing ls -l. If you also want to show the hidden files, the option -a is added. The commands are then either ls -a or more detailed ls -la

The option -l stands for long and shows more details, with ls -la you can also see hidden files
The option -l stands for long and shows more details, with ls -la you can also see hidden files

The detailed output shows the permissions, the owner in terms of user and group, the size and the creation date of a directory or file.

Note: All commands have a manual file, the so-called man page, which is called with man command. These files are not always easy to grasp for beginners and are not always available in your language. Often it is more helpful to ask a colloquial question like What does the command ls do in Linux? in the search in the browser or in an AI like ChatGPT. A first overview of the options of commands is also shown by the parameter command -h or –help, although usually less detailed than man.
The help command is usually enough to get to know a command and its options
The help command is usually enough to get to know a command and its options

The direct way

However, there is also an easier way to display the contents without changing the directory first. Here you give the command directly the path to which the command should affect. So you can achieve the same thing from your home by using ls -l /etc. This expresses that you want to see a listing of the contents of /etc.

Next, you may want to look at the contents of one of the files displayed there. To do this, you can use the cat (concatenate) command, as in cat /etc/apt/sources.list.d/tuxedo-plasma.list. If you are already in /etc the command is cat apt/sources.list.d/tuxedo-plasma.list. Since you are only looking at something here, your user rights are sufficient for this, although the content does not belong to your user, but to root.

It’s different, if you want to edit a file, that succeeds apart from in Home only with root privileges. Let’s assume you want to change the file tuxedo-computers.list. For this, we use the nano editor with SuperUser privileges as in sudo nano /etc/apt/sources.list.d/tuxedo-plasma.list. With this you open the file in write mode and can edit it if necessary. Save changes made with CTRL+O and then close Nano with CTRL+X.

Start Nano with Sudo if you want to edit a file
Start Nano with Sudo if you want to edit a file
Note: A useful function of the shell is the auto-completion for commands. This allows even long paths to be entered quickly. For example, type /etc/apt/so and press the Tab key. This completes so to sources.list. Proceed in this way until the desired path is entered.

Commonly used commands include those for creating, copying, renaming, and deleting files and directories. Use commands such as mkdir (create directory), cp (copy), mv (rename or move), and rm (delete). If, for example, a zip archive cannot be unpacked, the command file filename helps to clarify whether it is really the specified file type or whether someone is trying to foist something on you.

Use the up and down arrow keys to access previously entered commands from the command history. Press the Enter key to re-execute a command from the history.

You can also combine multiple commands. The characters between the commands determine how execution is handled. With sudo apt update ; sudo apt upgrade, the semicolon conditions both commands to be executed unconditionally in succession, even if the first command fails. In contrast, sudo apt update && sudo apt upgrade executes the second command only if the first one completes successfully. Conversely, mount /cdrom || eject /cdrom executes the second command only if the first fails.

If you are unsure what a command does that you found on the Internet, please be careful, especially if it requires root privileges. The Explainshell website breaks down commands into their components and explains them.

Here Explainshell disassembles the command to extract an archive
Here Explainshell disassembles the command to extract an archive

A good start to get to know more commands is this command overview Clicking on the individual commands leads to a detailed explanation of what a command is used for and what options it offers.

Why use the terminal at all?

There are several valid answers to this, and they apply to different user groups. If you are the type that feels most comfortable in the graphical environment and would like to work mostly with a mouse or touchpad, there are still situations where the terminal is helpful. For example, when something is not working as it should, and you can read the logs using the journalctl command. A detailed explanation of this powerful command can be found in the article Using Journalctl. Our experience also teaches that updates to the system are more informatively mapped in the terminal and thus safer to execute than in graphical applications.

However, if you are one of those users who are generally annoyed by graphical applications and cannot identify yourself as a mouse pusher, if you find graphical applications slow and confusing, then you should probably dive deeper into the topics of shell and terminal. Once you get involved with the terminal, over time a workflow will emerge that probably combines both paradigms of operation, graphical and textual. Advantages of the terminal include a faster workflow, better error messages, and a more profound understanding of Linux in general.

The criticism often heard in the past that Linux was backward-looking and complicated because the use of the shell was mandatory no longer applies today, if it did at all in the last ten years. You can use TUXEDO OS without a shell throughout today, but it is not always the best way. Of course, the decision is entirely up to you.

Complementary to this article is the YouTube series Linux Crash Course by the fabulous Jay LaCroix.

 

Service & Support

Welcome to TUXEDO Support - how can we help you?

Linux at TUXEDO

Are you wondering if Linux is right for you? Our team will be happy to answer your questions and explain details about the free operating system at TUXEDO.
Let the advantages and services convince you!

Hardware

Notebook, PC, both - and which model? Our technical service team also provides advice on selection, equipment and puts together suitable offers for your technical requirements.

Questions and Answers

Frequently asked questions and the corresponding answers can be found here. If you cannot find a solution to your problem here, it is also worth taking a look at the instructions section.


Find out more

Instructions and Tips

Most situations can be solved quickly and easily by yourself. This saves you time and you can use your device directly again. We provide you with instructions, first steps and short tips for all TUXEDO models.


Find out more

System Recovery

Even in the case of a case, you don't have to rely on us: Your device can be reset to the factory settings - completely automatically! Everything is included with your order and you can get started right away.


Find out more

Technical Service

Our competent technicians are also happy to help with service requests. You have different possibilities to contact us. We are personally there for you Monday to Friday from 9 am to 1 pm and from 2 pm to 5 pm. But also outside these times, you can contact our team with your request by e-mail.
An extra function is available in your customer account for repair requests (RMA).

 

Contact

We are personally there for you Monday to Friday from 9 am to 1 pm and from 2 pm to 5 pm (German time). But also outside these times you can contact our team with your request by e-mail. Please include your customer number, the model name of your laptop or PC and as detailed a description of your request as possible. The more details you give us, the faster we can process your request!

We might not be able to answer questions about third party hardware or software. For questions about popular open source software (Thunderbird, Filezilla...) please contact a forum e.g. ubuntuforums.org. The research effort for application specific setup is immense and not manageable at the current time. Basic compatibility questions e.g. are of course still welcome!

An extra function is available in your customer account for repair requests (RMA).

 

Image of Tux

Linux compatible
image of 5 years warranty badge

Up to 5 Years Warranty
stylized image of a Rocket

Immediately ready for use
image of germany with a wrench in the center

Assembled in Germany
image of germany with a section sign in the center

German Data Privacy
stylized image of a tech support worker

German Tech Support

Guidance

  • Service & Support
  • B2B
  • Newsletter


Mo - Fr: 9-13 & 14-17h
+49 (0) 821 / 8998 2992

About TUXEDO

  • Why TUXEDO
  • TUXEDO Control Center
  • TUXEDO Tomte
  • TUXEDO WebFAI
  • TUXEDO OS
  • TUXEDO Aquaris
  • Individual logos and keyboards

Help & Support

  • Downloads & Drivers
  • System Diagnostics
  • Frequent questions (FAQ)
  • Instructions
  • Help with my device
  • Revocation right
  • Shipping costs & delivery times
  • Payment methods

News & more

  • News & Blog
  • Press
  • Newsletter
  • Event Calendar
  • Jobs & Career
  • Sponsoring

Community


Your Linux specialist since 2004

  • Accessibility
  • Privacy policy
  • Imprint
  • Battery disposal
  • Conditions of Use

Shipping costs & delivery times

We ship your order to almost all countries, in Europe mostly even free of charge! The respective shipping costs and the cost threshold above which we will cover the costs for you can be found here or for international shipping in the table below.

 


Free shipping within Germany

There are no shipping costs within Germany for goods worth €100 or more.

 

7.99 € shipping cost at max!

No matter how many small articles you order, such as USB stick card reader, LAN adapters or fan articles, with us, you pay a maximum of 7.99 € shipping costs.

  • 7.99 € shipping fee for all orders below 100 € of goods
  • Free shipping from 100 € total value of goods

You can check all occurring shipping costs or if we even deliver for free right before sending your order!

 


International delivery

Here are the shipping costs as well as the amount threshold for your order. The threshold is referring to the total amount of your order, which enables free shipping.
 

Taxes and customs outside the EU:

For orders outside the EU there might be additional duties, taxes or charges needed to be paid by the customer. These don't have to be paid to the supplier, but to local authorities. Please check for any details with your local customs or tax authorities before ordering! But as a benefit you don't have to pay German taxes, this means you save up to 19%!
Due to the Brexit and the associated changes, there may be delays of several days in customs clearance on site for deliveries to the UK. This is not within our sphere of influence, so we ask for your understanding.

 

 
⚠️   Countries to which we unfortunately cannot ship, and information on how you can still order from us, can be found here!
Country Shipping Fee Free Shipping From
Albania 99,00 EUR -
Andorra 59,00 EUR -
Belarus Temporarily no delivery possible 59,00 EUR -
Belgium 8,49 EUR 100 EUR
Bulgaria 15,99 EUR 160 EUR
Denmark 8,49 EUR 100 EUR
Estonia 15,99 EUR 160 EUR
Faroe Islands 129,00 EUR -
Finland 14,99 EUR 150 EUR
France 9,99 EUR 120 EUR
Greece 22,90 EUR -
United Kingdom 9,99 EUR 120 EUR
Hong Kong 199,00 EUR -
India 199,00 EUR -
Ireland 14,99 EUR 150 EUR
Island 129,00 EUR -
Italy 9,99 EUR 120 EUR
Japan 99,00 EUR -
Canada 99,00 EUR -
Croatia 34,90 EUR 500 EUR
Latvia 15,99 EUR 160 EUR
Lithuania 15,99 EUR 160 EUR
Luxembourg 8,49 EUR 100 EUR
Macau 199,00 EUR -
Malta 34,90 EUR 500 EUR
Macedonia 59,00 EUR -
Moldova 199,00 EUR -
Monaco 19,00 EUR -
Montenegro 99,00 EUR -
Netherlands 8,49 EUR 100 EUR
Norway 14,99 EUR 150 EUR
Austria 8,49 EUR 100 EUR
Poland 15,99 EUR 160 EUR
Portugal 14,99 EUR 150 EUR
Romania 15,99 EUR 160 EUR
San Marino 9,99 EUR 120 EUR
Sweden 14,99 EUR 150 EUR
Switzerland 13,99 EUR 150 EUR
Serbia 34,90 EUR 500 EUR
Singapore 199,00 EUR -
Slovakia 15,99 EUR 160 EUR
Slovenia 15,99 EUR 160 EUR
Spain (without Canary Islands) 14,99 EUR 150 EUR
Czech Republic 15,99 EUR 160 EUR
Ukraine Temporarily no delivery possible 129,00 EUR -
Hungary 15,99 EUR 160 EUR
USA including Hawaii 99,00 EUR -
United Arabic Emirates 199,00 EUR -
Cyprus 34,90 EUR 500 EUR
Qatar 199,00 EUR -
⚠️ Countries to which we unfortunately cannot ship, and information on how you can still order from us, can be found here!

 


Time of delivery

If not stated differently in the article's description, we deliver goods in:

  • 7-10 working days within Germany
  • 10-12 working days outside Germany

For orders paid in advance, the delivery time starts with receipt of the payment. Please keep in mind that there is no delivery on Sundays or on holidays.
For goods delivered as download, there will be no shipping fees due.
Access data for downloads are sent out via e-mail 1-3 working days after contract formation. For orders with advanced payment, we will deliver after receiving the payment. You can download the item by using the link sent to you via e-mail.

Self-pick-up of orders is not possible, unfortunately.