The Complete Guide on How to Work in the Linux Shell the Easy Way

We have different little-known tools for this versatile system environment that Linux provides Among them, we find the Linux Shell, which becomes a powerful tool dedicated to specific basic actions. The truth is that many people who don’t know it tend to confuse it with the operating system’s console or terminal. To do this, it is crucial to understand how they differ.

Create scripts using the linux shell

As for how to perform the action, or to execute the job using a Linux shell that we can execute, it can be Refers to operations in system applications For example, create a «script» to manage A home network created in Linux, in terms of its purpose, we can get a lot.

How to enter the Linux shell?

in order to enter Linux shell you have to press «Alt + F12» first This way, it will ask us for the «login» password, from this moment we can go into the directory where we want to generate the script to give the functions we need to grant, «sh» means all Linux shells.

What are the most commonly used commands in the Linux Shell?

As for the shell’s most common commands, these are just a few of them. Most Common Commands in Linux Shell Although there are many more, these will be.These commands can be used for various functions, such as changing the language of the operating system keyboard and have it according to our needs.

  1. Man, this provides information about the programs and commands in the Linux environment it runs (man man),
  2. ls, which gives us a listing of the current execution directory (man ls),
  3. more, is a filter that displays the contents of a file in one terminal at a time, in two forms (more and ls /more),
  4. cd, change directory (cd
  5. mkdir, create directory entry (mkdir)
  6. rmdir, remove empty directories (rmdir)
  7. passwd, modify the user password (passwd)

Is Bash in Linux equivalent to Shell?

As for Bash (Burn Again Shell) on Linux It becomes an intermediary or interpreter for commands that interface between users or programs and applications and the Linux kernel. This will be responsible for inputting the commands or instructions entered by the user one by one to form a «script»; return the result thrown after the command is executed.

The interface between the bash program and the kernel

What is the way to get into the Linux shell?

To enter Linux shell mode, we have a few ways to help us do this, all of which work equally well.Because in case you only know one, if you can’t get through this way, you’re fine Another way to enter backup mode. The Linux Shell is the shell of the system and is associated with what is called the «kernel»..

For this action we can use keyboard command input which is a shortcut to access it faster We have a tool called «hints» This is also useful for accessing the Linux shell, let’s see how to use them.

Use keyboard commands

As we mentioned before, to get into this tool, just press (Alt + F12), so the login will appear to enter your password and gain access.Also we need to know that the number of Linux Shell consoles we can execute is determined by the function keys we have, that is from (F1 to F12), so for To change the console, you must combine «Alt +f(x)»where a corresponding number from 1 to 12 is entered in «x».

Use the tooltip

The Prompt tool is the shell’s indication that it expects a command from the user, which means it’s used to interpret a «shell-script», which is a command-script, which is a set of commands that a file shell interprets.

This tool is suitable for making a pre-built command line that waits for the command to be executed. This tool can be modified and varies according to the user. If the user does not have permission, the prompt will be $, but if it is case otherwise it will look like #. To open a shell, the command would be «# sh».

run linux shell and scripts

What parts of the Linux shell do I need to know?

When we get a Linux system like Ubuntu, the purpose is to interact with the shell and determine the script. First, in order to understand it, we have to know what its parts are about. In the case of Shell, there are some parts that are essential, let’s see.

This is first and foremost a command interpreter with the ability to generate «scripts» for the system to act according to the user, it has parts like «Bash». Interaction between «Shell» and «Kernel» commandswhich is the center of the system, the «prompt» is the condition waiting for the user to execute the command, with or without admin rights.

Deja un comentario