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 – El terminal usa un lenguaje de comandos por defecto llamado Bash. Sin embargo, hay otros lenguajes muy similares mas amigables con el usuario. Uno de ellos es Fish, que añade ciertas funcionalidades extra que facilitan el uso de la terminal. En otro artículo hablamos de las bondades de ese fantástico shell, puede verlo en el siguiente 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.
** Nota: Si estas usando Fish, debes crear un archivo llamado fish.config en la carpeta /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.

3
What do you think about it?

please Enter to comment
3 Comment threads
0 Responses thread
0 Followers
 
Comment with more reactions
Highly Commended thread
3 Authors comments
EliRamon MilianRanita Authors of the most recent comments
subscribe
Newer oldest More popular
Report of
Ranita
Member

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

Ramon Milian
Member

All excellent advice as usual.

Eli
Publisher

interesting reading Jorge KenobiJorge Kenobi thank you.