The Official DevClouds Blogs

logo-devclouds

Familiarizing yourself with the Linux Terminal

January 13, 2023

Linux Terminal

Now that we have our Ubuntu Desktop installed and configured in VirtualBox. I like to show you how to familiarizing yourself with the Linux Terminal.

How to Start VirtualBox Machine

Start Normal

To start the virtual machine just right click on that and go to start you have three options. And what you’re interested in is the normal start now.

Full View Option

To see the screen properly what I like to do is expand this so you can either enter full screen mode or you press Ctrl + command F on your keyboard if you’re on Mac. Or you can just click on the expand maximize button to do that.

Ubuntu Desktop Interface

Ubuntu Desktop Interface

You might have gotten the prompt to put in your password when you do that you will see this beautiful interface.

Basically your entire career around DevOps is basically gonna revolve around Linux operating system. But when you start working in the real world. Or if you’re currently working in the real world you probably won’t be working on a GUI(graphical user interface) based system.

Where you get to click and see Mouse moving around. You’re gonna have to deal with the terminal and I’m gonna show you how to get into the terminal

show applications

You see this icon bottom left side that says show applications click on that and that will bring up a box where you can type things. I’m going to search for terminal and click on that and basically it’s going to bring up this terminal box.

Why you need LINUX TERMINAL to work in DevOps

Terminal

Let’s talk about the terminal so you might be wondering why we need the terminal to do everything we’re doing in DevOps. Well there’s quite a number of reasons why it’s quite important to know how to navigate the Linux terminal.

One of which is for connectivity reasons so if you want to connect remotely to another computer your best doing that through the terminal you can imagine as a systems administrator or a DevOps engineer.

And you have hundreds of thousands of servers to manage. It’s very unrealistic that you’ll be going into a computer using the graphical user interface to connect just like we’ve done on VirtualBox.

You can easily connect to another computer straight from the terminal so it makes administration very easy.

Home Folder on Ubuntu Desktop

home folder

Now the first thing you would notice is I’ve got my name here there’s an app symbol there is the name of the computer. I remember what we were creating the Ubuntu desktop I specify the web server there that’s basically the name of the computer.

There’s this squeeze Li icon here it’s called “tilde” character i blue and it basically represents the home folder. And this dollar sign as well basically signifies that this is a regular user not a super user in the system and we get into all of that information in upcoming articles.

Now Dare@webserver is basically saying direct connected to web server if I were to connect to another server this would change and you start seeing that happening very soon.

Home Folder on Ubuntu Desktop

home folder GUI

What we start going into remote connectivity now let’s talk about the home folder. This home folder on picture above.

So this home folder if we go here into this icon here that is going to show us basically the graphical version of what we’re doing.

Familiarizing Linux Terminal Commands – Ls | pwd | touch | cat | clear (CTL L) | tail | head

pwd command

On the Linux terminal now you can see home. So home represents where we are on graphic interface and there’s a command called “PWD” If I enter you can see “/home/dare”.

So basically “home/dare” is where we are and this is basically what’s going on in home. You may won’t be able to see “dare”. But you know this is the “home” of “dare”. And there are many folders in the home for dare.

ls command

To see all these folders what we need to do is to use a command called “LS”. You would see just about the same folders that we’re seeing in the graphical user interface on its desktop.

documents  - downloads - desktop

The order is not the same but it’s basically the same thing right so. Let’s try to create a file now.

Touch command

there’s a there’s a command to do that called torch if I type “touch” and I named it just DevOps. As you can see on the graphical user interface. Now we have the file called DevOps if I open up this file graphically.

Notepad

And let’s just write something in there “I am learning Linux to become a DevOps engineer”. And if I click on the Save button and to read the content of this file on the terminal.

cat command

I would use the command called “cat DevOps. Now if I hit on enter you can see what I wrote in here I can also see it straight from the terminal.

All right I want us to keep taking note of the commands we’ve been learning so far.

notepad content

First we have learned “PWD”, second we have learned “LS”, third we have learned, forth we have learned “cats”. And the next one I like to show you how to use the “clear” command.

So if I type in clear it would basically clear the screen and everything will become plain again. Now another thing you can do instead of using the command Clear is. You can just use ctrl + L and that basically does the same thing. let’s save this file.

tail command

The last command I like to show you is the “tail” command. So let’s do a tail on our DevOps file.

Notice what happens here the first line of text has been removed. And all we have is LS Touch Cat and Clear. So basically what “tail” does is it just shows us the last part of the file.

head Command

And there’s the opposite to that which is the “head” if I did “head” as you can see it’s taking the data from the top. That’s the difference between the two.

So we would end this article and in the next article I’ll show you more commands and gradually taking baby steps.

Share This Article

Join our newsletter & get update, It’s That Simple!

Join, Blogs, Discount & Promo code !!!

THERE’S MORE TO READ.

connecting to EC2 Virtual Machine in AWS instance.

| January 11, 2023

EC2 as your Virtual Server to take advantage of AWS public cloud solution.

| January 11, 2023

how to download and install Ubuntu Server and configure it.

| January 11, 2023

download and install Ubuntu Desktop and configure one of the Linux distributions called Ubuntu.

| January 11, 2023

Download and install VirtualBox in your PC or your laptop or whatever machine you intend to use.

| January 10, 2023

History of Linux. How Linux actually came and how exactly did he start to exist.

| January 10, 2023

Leave a Reply

Your email address will not be published. Required fields are marked *

Cyber​​Power Cloud, fast, protected virtual servers, instant setup.

Spin up your choice of virtual machine in just 55 seconds.

OVH

Cloud VPS & Dedicated Servers, advanced hosting solutions

Amazon Lightsail provides easy-to-use cloud resources for web applications

Managed Google Cloud Virtual Machines

Easily deploy cloud servers and storage worldwide

Cloud VPS & Dedicated Servers, advanced hosting solutions

Cloud optimized for performance equipped with fast NVMe drives.

AWS

Amazon EC2, the broadest and deepest compute platform

Managing complex cloud infrastructure made easy

High-Performance Cloud Storage Solutions

10 Clouds 1 Panel

Fully managed by our team

All your clouds and dedi's

All your control panels (CP,DA)

All your wordpress sites&plugins

All of that in one CyberPower

Mega control panel

Reliable Co-Location in ISRAEL Service

Buy and add server hardware components to your co-located servers.

Attacked? We Can Defend You!

Advanced DevOps Services

All about us and what we do in cyberpower

Contact us to activate your custom affiliate plan

Terms & Conditions, Privecy Policy