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 - 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.
- 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.