Hello people! Today we will quickly show tricks and basic commands to the terminal on GNU / Linux.
Open the terminal
Open the application menu and locate the terminal application. You can open the terminal by pressing Ctrl + Alt + T.
Run a command
Type the command and press the ENTER key.
Close or leave the terminal
Run the command exit
Stop the execution of a command
To stop the execution of a command, either because it is taking too long or because he hung up, press Ctrl + X.
We can autofill pressing the TAB key either to finish writing a command or to show us that there are options available.
Complete the command
Show commands starting with ...
Complete folder addresses
Show parameters available for a command
Show package names starting with ...
Navigating folders (directories)
Display the contents of a directory.
Show list details
Show hidden files and folders
Parameters can be combined to display the list of details including hidden files.
In GNU / Linux to convert a file hidden file, simply the name starts with a dot, the same applies to folders.
Getting in and out of folders
Enter a folder
Exit a folder
Display the full path of the current folder
See text file
Show a text file
With less You can search for a word in the text
- Buscar : / + palabra + ENTER
- Buscar próxima : N
- Buscar anterior : Mayúsculas+N
To get out of less press the Q
The command man shows the manual commands
man uses the same navigation and search less. To exit, press the Q key
See the file type
The file command displays the file type regardless of whether it has changed the extension or no extension.
Edit text files
nano editor is simple and easy to use text to the terminal, at least much easier to use than vi.
Use the arrow keys to scroll through the text. To exit, press the Ctrl + X keys, then you will be asked if you want to save the changes.
On the menu the symbol '^' is replaced by the Ctrl key, so
^ X = Ctrl + X
This is enough for newcomers to the terminal, at least for a while. The terminal is a powerful and lightweight tool, gradually more and more are memorizing commands, to acquire such comfort, you prefer to perform many tasks on the terminal above do it in a graphical interface. I hope this article is helpful to facilitate the introduction and use of terminal novice to the world of GNU / Linux.
Create empty file
Another way to restart
sudo shutdown -r now
To turn off
sudo shutdown -P now
Off at 02:30 pm
sudo shutdown -P 14:30
Off in 30 minutes
sudo shutdown -P +30
watch -n [segundos] [comando]
watch run the command every few seconds, to stop watch press Ctrl + X.
watch -n 1 date
watch -n 10 df -h /dev/sda1
Isaiah Gätjens He is the author and Collaborating Deepin in Spanish. You can read several articles on our home page, as well as help messages both in the community forum and in our chat room Telegram.