A Guide To Loving Your Terminal

lazar

Lazar

Posted on August 13, 2019

A Guide To Loving Your Terminal

*Congratulations, you are a proud terminal owner! *

When I first switched to Linux, I avoided my terminal like the plague. Now I don't know how I managed without my terminal!

But I think there is a lot more we can do to just make our experience easier.

Write Shell Scripts

Say you have a long list of commands you need to run, but now enough time to sit there waiting typing them all out one at a time. A simple shell script can solve that problem! But shell scripts go beyond just commands.

Since I use Bash. I am going to focus on Bash. A few people don't realize that Bash is a full featured scripting language. It has while loops, if statements, takes input, and does basically anything that any other scripting language can do. This can be really great for making things automated on your computer. It is also really easy to get shell scripts to start running on startup, which is perfect if you wan't it running in the background.

I have a joke that I already built AI by myself because of the amount of shell scripts I have running at one time.

Use the '&&' operator

The && operator is what turns two terminal commands into one. For example:

echo "hello" && echo "Lazar"
Enter fullscreen mode Exit fullscreen mode

This just prints out in the terminal:

"hello"
"Lazar"
Enter fullscreen mode Exit fullscreen mode

Word for the wise here this is NOT concatenation! It runs the two commands separately, that's why it printed on two different lines.

So what can you do with this, plenty It really saves time for me. When I used to use Debian, and I was installing something it would sometimes take a really long time for the repositories to update, then I would have to go still and type the command to install something. So I would just type:

sudo apt-get update && sudo apt install
Enter fullscreen mode Exit fullscreen mode

Change the terminal font

Comment down below, if you change the font on your terminal. Because I don't know ANYONE who does. Now, I can't comment on every terminal out there, but for gnome, deepin and tilix, it is really easy. ** Preferences => General => Font**. I find if you wanna make the terminal just a little less scary, just use a font that maybe is a little more calming for you. Also, In deepin, you can change the theme and the opacity of the terminal.

So that's all for now. I think I may have to write a few of these articles like this, this week because I am working on two different projects for two different people and really can't work on anything spectacular right now.

Y'all have a great day!

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
lazar
Lazar

Posted on August 13, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About