Linux is a useful OS, it is the most secured platform to work so let’s see some Tips for Linux
1. Use ! to execute the previous command
How does one work with command history usually? we all know that a lot of users use the up and down arrows. Pressing them you’ll find the command you would like from the list to execute it. Honestly, this is often the road to nowhere. you’ll not make the grade.
We are able to cause you to a suggestion that you simply can’t refuse: save to 30% of your working time! Just press “!” Open the history and choose the road number with the command you would like. Let’s imagine that we would like to open some command, which is found under the 100 number, you ought to type! 100. Nothing more. Pretty quick, isn’t it?
In addition, if you propose to use a command shell aside from bash, you merely won’t be ready to work with the history of commands using the arrows. This tip is certainly what you would like for this purpose.
Learn the Linux Commands in a simple manner.
2. Press !! to execute the previous command
Let’s make the task a touch more complicated. What if you would like to run the last command from your list? All you would like is !! you’ll definitely finish the working day before your colleagues because double-pressing an equivalent key takes only a second of your time.
And yes, this also works in csh and ksh shells, which make it impossible to use the up and down arrows.
3. Press “CTRL+R” to repeat the previous matching command
Many users complain that they only remember half or a 3rd of the command’s name. this will be frustrating because finding the proper option takes tons of your time. Fortunately, we all know the way to assist you.
If you press CTRL + R, the system will tell you the last executed command that contains this name. Keep pressing this key combination to flick through older matching commands.
This is the surest thanks to saving 50-60% of your working time. And nerves.
4. Use history
You will definitely thank us for this recommendation.
We know that you simply got to execute many different commands a day working with Linux. And it’s quite normal that you simply cannot remember all of them. We can’t also. Just run the history | grep keywords. The system will show you all the variations that contain these words. Now you’ll not use Google to look for relevant commands.
The HISTSIZE variable will assist you to set the utmost number of commands for the list (there are 500 by default).
5. Use grep and find
Grep command allows you to find the text you would like in files and directories. And with the find command, it’s possible to seek out the required files by other properties, like the name.
If you would like to seek out all the files whose name begins with a “wowarticle”, you ought to execute the subsequent command: find. -name ’wowarticle*’ and therefore the grep command will assist you to to seek out the wow article in file 1.txt, with the output of a totally matching line greps wow article 1.txt.
6. Use alias
If you exchange experience together with your colleagues, you’ve got probably mentioned that they use some strange commands. Surely, they’re going to not work on your computer. But what about creating your own?
The alias launches any command or group of ones by typing one word or character. It includes options, parameters, and files also. you’ll create simpler, shorter versions, arising with new names for them.
Instead of typing the clear command all the time you would like to clear the entire terminal, you’ll just write alias c=”clear”. Don’t forget to feature ~/.bashrc to form this alias always available. Now it’s enough to type “c” letter to clear the terminal.
7. Navigate the directory with commands
We know that you simply spend half your day traveling the shell. And if you would like to register a directory path, it’ll take even longer. All you would like to vary this is often to use the pushd, popd, cd -, ~ commands. Switching between various directories has never been so fast.
8. Learn fast typing or minimize keystrokes
Typing fast will produce an enormous amount of text in less time. But what about working even more efficiently? a tab is all you would like.
Try to enter the primary few letters of a command, path or file, and press the Tab to process. The instruction will autocomplete immediately. Enjoy it.
9. found out LibreOffice and make it faster
If you employ LibreOffice pretty often, then you’ll make it a touch faster. Launch LibreOffice and go on to its options. within the window that opens, select “Memory”, then check the box “Use quick launch” and increase the quantity of obtainable memory.
10. continue learning
The more commands you recognize, the faster and more efficiently you’re employed with a spread of tasks.
By the way, does one remember ctrl + z, FG, and bg? the primary one pauses the method, the other is important to resume the method in active mode, and therefore the third one will start an equivalent process within the background.
This were some tricks and tips for Linux. It may appear to be it makes no sense to find out these commands, but you’ll be pleasantly surprised realizing how briskly you’ll work by simply applying our advice in practice. We hope that the following pointers will assist you to work productively, celebrate, and good leads to Linux. Good luck!