THE TERMINAL FOR ROOKIES: FISH, SHORTCUTS, ALIAS AND MORE

TRICKS FOR TERMINAL

Ideas and tips to make life easier for newbies to the world of GNU / Linux

INTRODUCTION

Many users, especially those who come from Windows, use the terminal find it complex and cumbersome. However, as you go deeper into the world GNU / Linux, which is a really useful tool, and its use is almost inescapable. We can not help you have to use it occasionally, but if easy handling with these tricks.

TRICKS

Fish installation - The terminal uses a default command language called Bash. However, there are other very similar friendlier user languages. One of them is Fish, which adds some extra features that make using the terminal. In another article we talk about the benefits of this fantastic shell, you can see in the following link.

autostart command to open the terminal - To run, one or more commands every time you open a tab terminal must enter the command in .bashrc, which is located the user folder. Let's use a practical example to make it clearer. First, we activate the view hidden files in the file manager by pressing Ctrl + H. Second, we open the .bashrc file with a text editor. Finally we add the commands you want to run, in this case, will add frases_celebres command, so that each time you start a terminal us an inspiring phrase appears.

** Note: To use this command must be installed first update && sudo apt install sudo apt-famous phrases.
** Note: If you are using Fish, you must create a file called fish.config in the folder /home/tu_nombre_de_usuario/.config/fish/
where you add commands.

highlights shortcuts

  • Two shortcuts you will use or yes, if you're a beginner are: Ctrl + Shift + C to copy and Ctrl + Shift + V to paste into the terminal. In settings Deepin terminal, you can change them to Ctrl + C and Ctrl + V if you find maas comfortable.
  • Ctrl + A: move the cursor to the beginning of the command line.
  • Ctrl + E: moves the cursor at the end of the command line.
  • Ctrl + W: deletes the word immediately before the cursor.
  • Ctrl + Z: suspend the execution of the process is running and puts it in the background with the command fg we can return to continue execution.
  • Ctrl + Shift + F: Find a word in the terminal screen.
  • Shift + Ctrl + J: Split terminal screen vertically.
  • Shift + Ctrl + H: Split terminal screen horizontally.
split with Ctrl + Shift + J and Ctrl + Shift + H Display

Using Aliases - Save some alias used for commands you commonly use, or you want to save it with an easy word to remember. Some useful examples:

  • alias up = 'Sudo apt update && sweat apt full-upgrade' to actualize.
  • ins = alias 'Sudo install apt $ 1' to install a program, where $ 1 is to be introduced to indicate an argument that command. Example usage: spotify ins.
  • alias bor = 'sweat apt remove $ 1' deletes the program that you specify.

Move with the file manager and open terminal from there - Occasionally, some command we have to run from a direction of your file system. If you are not accustomed to move from the terminal, it is best you navigate directories from the file manager and copy the route from there, or open a terminal from the context menu.

Using Command History - The terminal records the commands used by you before; with directional keys up and down you can move between them quickly.

0 0 vote
Rate the Article
 
Subscribe
Report of
5 Reviews
More popular
Newer Older
Opinion from the article
See all comments
Ranita
Ranita (@ranita)
1 año atrás

Interesting how to split the screen, I did not know that, thanks for sharing!

Ramon Milian
Ramon Milian (@ramonmilian)
1 año atrás

All excellent advice as usual.

Эли
Eli (@eli)
Admin
11 meses atrás

interesting reading Jorge Kenobi Jorge Kenobi thank you.

Matias Reyes
Matias Reyes (@mati2020)
5 meses atrás

That aliases if this good, did not know you could do that in Linux, just beginning in this world, all very useful.

JosDipin
JosDipin (@josdipin)
5 meses atrás

Very instructive. Thank you.

5
0
We would like to know what you think, Join the discussion.x
()
x