Linux came to change the world of computer networks and the Internet. This operating system, considered by many to be the safest, cheapest and most sincere of all, is used by large companies to manage their databases and servers.
Being open source, users interact with each other, benefiting from each other (among these are programmers and developers, who solve all the problems that common users discovered)
In this article, you can read the characteristics of why it is the operating system chosen by many. You will also find the best tricks so that every time you have to use a command between the route lines you can do it in the most efficient way.
What features make Linux a unique operating system?
One of the most efficient operating systems that exist. Many of its users highlight the following characteristics:
- The capabilities it offers for networks and telecommunications are very important since it supports ethernet, synchronous and asynchronous serial lines, ISDN, among others.
- The system can run multiple programs at the same time without hindering the execution of any of them.
- Linux can connect to a local network and work as a server for different operating systems, including Windows, MacOS, MS-DOS, etc.
- It offers the option that two or more users are working at the same time on the processing of a single software, from the same terminal or separately.
- It is an open source system, so its errors are quickly detected and corrected by the users themselves.
3 curiosities about Linux that you surely did not know about this OS
There is a lot of information behind this giant operating system. We will tell you the 3 curiosities that you surely did not know about Linux:
Used on Google and Facebook servers
Being an open source system, it supports different network interfaces that are used and exploited by many servers.
Google and Facebook, for example, they need to have their servers secure and Linux is ideal for that, since Windows has big problems regarding this point.
Another point why these two greats of computing use Linux is due to the versatility of its components, since they are adaptable to Token Ring, FDDI, X.25, Arcnet, and the ones you named above.
It's a kernel
We already told you that Linux is an open source system in which many people work who constantly develop and perfect their codes.
Most of these developers work on Linux Kernel, which is the kernel or the central part of the operating system which is in charge of making the communication between the software and the computer as good as possible.
His penguin is called Tux
Its creator is Larry ewing and presented it on the market in 1996. There are two theories about the origin of its name, the first is that "Tux" comes from Torvalds ORneitherx and the second theory makes reference that, being a penguin, they seem to be tuxedo dresses ("tuxedo ” in English)
List of the best 20 Linux tricks to get the most out of it
Every time we write lines on long routes and you do not know how to return or how to search for a certain file, with these tricks that we present you will remove all those doubts.
We show you the best Linux tricks below:
Home directory
To return to the home directory after a long command line, we can write "Cd ~"
Another way to go back to the home directory is to type directly "CD", since Linux has the "~" character preconfigured.
List content
We quote listing the content that it has for example in a directory we can write the letter l twice, that is "Ll".
Multiple commands
When we want to save time we need to perform multiple commands through one, we can write «Command_1; command_2; command_3 » since it is not necessary to wait for each command to finish its work to write the other one.
Multiple commands only if its predecessor was successful
We can also write many commands in one and save time, the problem that occurs is when the last command was not successful, then the sequence of the point that we mentioned above would end.
We can fix this by writing the following "Command_1 && command_2"
Using the above command
If we need to use our last command, we will have to write "!!"
Help for any command
When we don't really know how to use any command we will have to write Command_tool –helpfor example for «tool».
Correct typos
When we write many times we press keys that are not correct and our line produces errors.
For this we can use for example "Alias cta = cat"
Copy and paste
They are two functions we use permanently and they save us a lot of time, for this we will need to select the text we want to copy, and then write Ctrl + Shift + C (copy) and then Ctrl + Shift + V (job)
Stop executing a command
When we need to write a command, but another command is running in the foreground, we are going to have to stop the execution of the one that is working.
For this we will write Ctrl + C
Autofill tab
When we are using Linux and we are copying a file we can write "Cp m" and it will return all possible options to complete the commands.
Last different path directory
If we need to go back to the last directory when we are on a long path and we need to go back to a completely different path we can write the command «Cd -« and we will return to our last directory.
User interaction
If we need to work with those commands or scripts that need the action of each one of us, we will have to develop «Yes | command_or_script »
Clean a file without deleting it
When we need to have that file name, but delete its content we will use the command "> Filename"
Search for files with a particular text
When we need to find a text that has any of the files, we can search for it by writing Grep -Pri Search_Term path_to_directory »
Search Commands
If we need to find those commands that we used previously, we will have to write "Ctrl + r search_term"
Unlock command line
When we block a command line we use Ctrl + S, to unlock it we will use Ctrl + Q
Go to the beginning of the line
When we are on a long route and we need to go to the beginning of the line, we can write Ctrl + A
If we want to go to the end of the line, we have to go to the end of all the commands, we have to write Ctrl + E
Read the file
When we need to read a file in real time we can use Tail -f path_to_Log or also Tail -f path_to_log | grep search_term »
Reading compressed files
If we need to read or extract information from the server logs, which are generally compressed, we can do it with the «z» commands:
- «Zcat» if we need to see the compressed file
- Zgrep when we look inside the compressed file
- Zless or Zmore we can find the file in pages
- Zdiff if we want to compare two compressed files
Read large files
Many people use Cat To read large files, but the command does not display the entire file on the screen.
There is a better option and that is to use the command "Less path_to_file".
Many times we need to use the last command we have written, for this we will need to use «! $ »