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.
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.
- 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.
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.
Jorge Perez He is a contributor and author Deepin in Spanish. Jorge He is also an active member in our group chat live Telegram.