+101 Linux Tricks  Secrets that will change your Life ▷ 2020

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 honest 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 will be able to 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 Unique?

One of the most efficient operating systems out there. 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 of two or more users working at the same time in 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 probably 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 a system created with open source, 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 great problems regarding this point.

Another point for which these two great computer scientists use Linux is because of the versatility of its components, since they are adaptable to Token Ring, FDDI, X.25, Arcnet, and the ones you name above.

It is 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 the Linux Kernel, which is the kernel or the central part of the operating system which ensures that the communication between the software and the computer is as good as possible.

Your penguin is called Tux

Curiosities about Linux.  Your 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

Top 20 Linux Tricks To Get The Most Out Of It

Every time we write lines in long routes and you don’t know how to return or how to find a certain file, with these tricks that we present you will get rid of 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 type “cd ~”

Another way to get back to the home directory is to type directly “CD”, since Linux is preconfigured with the “~” character.

List content

We mention enumerating 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 only 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 be able to write the other.

Multiple commands only if its predecessor was successful

We can also write many commands in one and save time, the problem that arises 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 type “!!”

Help for any command

When we do not really know how to use a command we will have to write “command_tool –help”, for 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

There are two functions we use permanently and they save us a lot of time, for this we will need to select the text that we want to copy, and later we will write “Ctrl + Shift + C” (copy) and after “Ctrl + Shift + V” (job)

Stop execution of a command

When we need to write a command, but another command is executing in the foreground, we will have to stop the execution of the one that is working.

For this we will write “Ctrl + C”

Autocomplete tab

When we are using Linux and we are copying a file we can write “cp m” and it will return all the possible options to complete the commands.

Last directory different path

If we need to return to the last directory when we are on a long path and we need to return to a completely different path we can write the command “cd -“ and we will return to our last directory.

Interaction with the user

If we need to work with those commands or scripts that need the action of each 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 are going to use the command “> filename”

Search for files with a particular text

When we need to find a text that has one of the files, we can search for it by typing “grep -Pri Search_Term path_to_directory”

Find commands

If we need to find those commands that we used previously, we will have to write “ctrl + r search_term”

Unlock the command line

Linux tricks.  Unlock the 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 will 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 registers, 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 “! $”

If you have any questions, leave them in the comments, we will answer you as soon as possible, and it will surely be of great help to more members of the community. Thank you! 😉

You may be interested:

Rate this post

Leave a Comment