Want to master Linux commands for VPS management? In this video, I’ll show you the most important Linux commands every VPS user must know, from installing software to managing services, security, and system resources. Whether you're a beginner or an advanced user, this guide will help you manage your VPS like a pro!
🔗 Get the Best VPS Deals Here: https://www.hostg.xyz/SHGZy For Thapa Family 💥 Use the discount code THAPA7 to get Extra 10% OFF!
⌛TIMELINE⏳ ⏳ 0:00 – Intro to Linux Commands Every VPS User Must Know 📌 0:12 – What You Will Learn in This Video 🔥 0:45 – Must-Watch Videos for VPS Users 💰 2:30 – Best Deals on VPS Hosting 📦 3:43 – What is APT & How It Works 🔄 8:25 – How to Install & Remove Software Using APT ⚡ 9:32 – Systemctl Commands: Start, Stop & Check Services 📝 14:55 – How to Handle Files in Linux (Read, Write, etc.) 📊 24:00 – Quick Recap: What We Have Covered So Far ⚙️ 24:25 – What is PM2 & How to Use It 🛡️ 25:55 – What is UFW & How to Secure Your VPS 📈 27:40 – Important System Resource Commands 📜 29:15 – Access Free Notes & Resources 🎥 29:40 – More Must-Watch Videos
Hello, what's up guys? Today, we will see
Linux command every VPS user must know
Yes guys, this video is going to be very important
because in today's video, I will tell you the commands of every Linux
which you should know as a VPS user
Yes guys, in today's time, VPS hosting is being widely used
And why?
Because no one makes a website with the help of HTML, C, JavaScript
If someone makes, then directly React, MonstaX, Vue, Angular, Python, etc.
And you can't host it in normal shared hosting
For that, we need a cloud or a VPS hosting
So, in VPS hosting, there are some commands
which if you learn, then your life will be very easy
and you can troubleshoot very easily
You can easily install and use any website
Basically, you can host
Alright guys, before starting the video, I would like to tell you
that there are already some important videos on VPS
which I have already uploaded on my channel, Thapa Technical
Where you can see this particular video
Where I have told you how to buy VPS
How to complete the initial setup
And then how to host a MonstaX application
In which I have told you everything
How to install Node, MongoDB, Firewall, Free SSL Certificate
How to claim everything
I have told you everything in this one video
of 1 hour 30 minutes
This is like the ultimate video
Recently, 2 months ago, I realized that
In today's time, security is very important
That's why, now I want that
If you buy any VPS hosting
So, first of all, do check out this video
Where you can see, we are going to setup SSL
We are going to setup Firewall
We are going to login passwordless
We are going to remove root access
There will be a lot of things
So, this video is very mandatory
Please check it out
And then I have told you
If you want to install database, you can check it out
And extra here, MonstaX again
And then I have told you how to host React
And differences between everything
Like Shared, VPS hosting
What are the differences, I have told you
So, do check it out
So, guys, I will do one thing
I will come directly to the terminal
So, guys, you can see
I have come to the terminal
And as I told you
That was my video
You know, like first video
I told you, you have to watch it
So, I told you
Now, we will login passwordless
It means
Neither I am using root user
Nor I am entering any password
I have created a non-root user
Without even typing a password
I have created a non-root user
Now, I am in my VPS
How awesome it is
So, I have told you this in this video
Okay
Before writing any command
I would like to tell you
If you were thinking of buying a VPS
Or you already have one
But you are not happy with it
Then I would like to tell you
For the past four years
I am using Hostinger
Where you can see
If we go to services
Then you will get multiple services
But for now
We have work with VPS hosting
So, you can see
There are multiple versions of it
Here, it is highly recommended
This plan
Which comes under KVM 2
In which you get 8 GB RAM
100 GB NVMe SSD
8 TB Bandwidth
Linux Operating System
Data Center is worldwide
And recently
They have started it in Mumbai
Right
So, this is very good
When you select on this
Choose plan
Then you come to this page
I would like to tell you
Here you can see
If you want for two years
You can buy it for one year
And have a coupon code
I would like to tell you
Simply you need to type
THAPA7
To get extra 10% discount
On existing discount
So, guys
This was the good news
Which I wanted to share with you
That I have a special
Coupon code
Only for you
All the steps after this
You can check out
In this particular video
Very easily
So, please
Do check it out
Okay
And if you have any doubt
Do tell me by commenting
And yes
They have 30 days money back guarantee
So, you won't have any problem
Alright guys
So, let's go straight
To this particular file
This is the folder of Notion
I am going to share all the
Chats
With you
For free
So, you don't have to worry
So, now
Without any delay
Let's start
So, first of all
You can see
Whenever you buy
Or purchase
And when you
Login
So, the first step
Should be
This particular command
Sudo apt update
What does it mean?
Now, here
Look carefully
We have
APT
This is very important
What is this?
System updates
And package management
With what?
APT
APT stands for
Advanced Package Tool
You can see it clearly
Basically
Guys
With the help of this APT
What you can do
You can install
Any software
You can update
Or you can remove it
And this is enough
Okay
But
One thing
You have to remember
This APT
Our
Tool
Or
Our command
Package management
System
Is based on what?
Debian based
Linux
Distribution
Like Ubuntu
So, if you use Ubuntu
In which
Debian based Linux
Distribution
So, there we use APT
What does it mean?
When you go to buy
VPS
Okay
So, we get options there
Which operating system
You need
So, guys
You can see
In VPS
We have multiple operating systems
So, you just have to make sure
That you can install
Any operating system
From these
And
The package of that particular operating system
Which is
For your package management
Whichever tool you get
You can use it
Okay
In our case
You can see
And most of the time
This is what happens
You don't have to worry
That is
Ubuntu
And there we use APT
Okay
So, now
The first thing
Is
Sudo apt
This is a command
Now, why are we writing
Super user do
We write that
Because
If you have noticed
I have
Configured my VPS
Like this
That
I don't log in
We have disabled it
I log in
Through non-root user
That too
Passwordless
So, non-root user
I mean
When you use
Non-root user
And if you
Want to use
Any command
Administrative kind of
Then you have to
Sudo this word
Okay
You have to type this
After that
You can write
Whatever you want
Like apt update
So, first of all
We need to do
What
APT update
What does
APT update mean
You can see here
It refreshes the
Package list
From the repositories
Essential before
Installing software
So, guys
Our VPS
Already has
List of packages
Which has
Some versions
Okay
And when we do this
APT update
So, those
Package list
Versions
Let's imagine
2 years ago
It was updated
So, 2 years ago
That package
Update
Will be installed
On our VPS
But
I am using it
After 2 years
So, what I want
The latest
Version
For that
Particular packages
I need that
So, for that
We write
Sudo apt update
So, the work of this
The version of
Package list
Latest version
Just update it
It doesn't do
Install
Just update
Once it is
Updated
After that
We need to do
What
Sudo apt upgrade
It means
The packages
I mean
All the packages
The latest version
I have updated it
By writing this command
It installs it
This is it
So, these 2 commands
Are very important
Okay
And guys
You can see
Almost 99%
Was about to say
That I have done it
So, now
If I write node-v
It is telling me
That there is nothing
So, guys
This was your
System updates
And package management
With apt
I hope
You got to know
Update
Upgrade
Install
And then
Simply
You can remove it
But this is
Bare minimum
Which you should know
Okay
Now
Let's do one thing
First of all
This active
Let's stop it
Okay
Because it is already running
So, how to do
I will clear it
Okay
So, again
Sudo
Systemctl
Instead of
Status
I will go with
Stop
And the moment
I hit enter
Let's see
See
Nothing is working
But again
I will use status
You can see
Very clearly
Where I saw
Something active
But now
It's dead
Means
My MySQL
Is not running
We stopped it
Right
So, I am removing it
You can clear it
And clean it
Then again
I will go here
Now
If I
Start
Let's see
What happens
I have to start it again
So, first
We saw status
Then we saw
Stop
Then I started it
So, the moment
I do this
Boom
You can see
It is running
I can see it
There is a problem
It is still
Disabled
It is started
But it is disabled
We can't use it
Okay
So, how to do
So, just
In place of status
Go with
Enable
And then
You have to hit enter
Okay
So, the moment
You do this
And click on status
You can see
Your
Service
Now
Finally
It is enabled
So, guys
With the help of
Systemctl
You can
Control
All your
For example
Start
Stop
Check status
Enable
Disable
So, these are
All the
Minimum
Or bare
Minimum
You can say
You have to know
These commands
Not only
With mysql
Guys
I want to tell
Same
If you have
Node
Or mongodb
You can do
With everyone
Like
I have mongodb
Mongodb
Okay
I guess
It's not
Mongodb only
Yeah
See
You don't have to write mongodb
You have to write mongodb
So, this is
Enabled
And it's
Still running
Okay
So, for every
Application
For every service
Same command
Just
Instead of mongodb
Mysql
Instead of mysql
Postgres
Instead of that
Nodejs
It will change
Okay
Now
This
Part
I don't have
Folder
By default
.ssh
I mean
.ssh
I can go
To cd
Ls
To get
Authorized keys
So, I will
Clear
Cd
Home root
Page
Basically
Root
Part
Simple
Clear
Okay
I hope
You will
Get
Cd
Ls
I will go back and create it
alright
this much work is done
after that let's check it out
now it is showing how you can read that file
so to read it we have a command cat
and then if you want to write the file
then we have a command echo
in double quotes you have to write your code
then guys greater than sign
and then you have to write the name of the file
in this way we can write
and after writing part is done
then obviously we have to read
so we can use cat
okay
and one thing I would like to tell you guys
I have already told all of this live here
this is my VPS
I have told all of this live
so if you want to know where it is used in real life
then do check out this video
you will definitely find it here
that's why I made this video in short
so that you can understand
so let's do one thing
for now if I type cat thapa.txt
then you will see there is nothing in it
but yes if I type cat important
because this is also a file right
.txt then it has so much data
you can see
it has so much data right
so this means that with the help of cat
you can read any file very easily
however I will tell you more ways to read later
first
let's go with echo
double quotes
alright
let me write
welcome to VPS Hostinger
okay
like this
and yeah this is it
and what you have to do
greater than
and then you have to write the name of the file
that is thapa.txt
okay I have entered
now if I type cat thapa.txt
and boom guys see
welcome to VPS Hostinger
you can see this
this is so awesome
that now you can read the file
and you can write it
awesome
and guys here they have said one thing
that if you use single
okay
then you are overwriting
if you use double greater than sign
then you are appending
which is very important
this is very important
for example
what did I write just now
welcome to VPS Hostinger
I can see this
let's say now I will go here
welcome to
I will write VPS Hostinger
thapa technical
okay
now I am entering
see carefully
the moment I type cat
then see welcome to thapa technical
means
if you use single character or operator
then guys
what is happening to you
it is overwriting
but if you use double
this same operator
like this
I am thapa technical
and I will write here
please like share and subscribe my channel
okay I will hit enter
so now if I type cat
I mean
I mean if I run this comment
then you can see
welcome to thapa technical
and he appended it
just added it at the end
please like share and subscribe
so this is very awesome
so you have to keep in mind
these small things
now
let's say you want to edit your file
now here one problem is
that guys
I mean I am not enjoying
this echo thing
I am not enjoying it
so now you have to edit
you have to write properly
so for that
you will see
we have a sudo
and sudo is command
but you have to write nano
so nothing
nothing
like if you write code
you use vscode editor
so this is their editor
you can use vi
or you can use vim as an alternative
it's totally up to you
okay
so how to use it
so it's a sudo nano
and then thapa.txt
so
this kind of interface opens
where very clearly
you can write anything
edit my file in this awesome way
if you write this much
now here important things
which many people get confused
and that is
at the bottom if you see
help
exit
I mean exit
write out
so what you have to do
you have to write
ctrl
and then
o press
ctrl and then o
so your file's name is
you have to hit enter
then now you have to exit
so ctrl and then x
and then now you are
exit
so this is some command
ctrl o enter
and then ctrl x exit
okay
so now if you press cat
see I am feeling
I guess spelling wrong
but no problem
so you can check out like this
okay
alright
so you saw how easily
we can edit a file
which is awesome
and we use this a lot
a lot
literally if you see my other videos
I have used this a lot
okay
alright
after that let's now
read the file
in a less or a more way
okay
you are seeing
what is written here
less or a more way
if you write less
then it allows you to guys
navigate
whether it is forward
or backward
you can navigate
or else if you write more
then you
like
it does the similar
but without a
backward scrolling
let me tell you what happens
like I wrote a very big file
so guys
you don't have to do anything
you just have to write less
thapa.txt
so you can see
you are seeing something like this
there is nothing above or below
so now what you have to press
you know why you have to press
why
then only you will come out
or else you will get lost
what is happening
okay
but
if I start important.txt
if I start the important.txt file
I have kept this very long
see carefully
my mouse is here
one second
I have to click here first
yes
see
I am not doing anything
my both hands are here
I am just moving it up and down
either I can go up
or I can come down
either I can go up with the help of my keyboard
or I can come down
basically like this
now if I press Q
then I came out
so either you can go with less
or you can go with more
and the same imp.txt
I told you
see I can't go up now
but yes
I can come down
see it is telling
40%
45%
50%
one second
I am able to go up guys
I mean
one second
I am able to go down
and I am able to go up
okay
good
okay
here it is giving you a percentage base like this
anyway
no problem
good
and you can press Q
okay
so there is a difference
and that is guys
it came directly here
all the data
right
which is a little
I mean
I don't like it
it came here
but when we were using less
a different
guys
file
I mean
a different interface
a different page
or whatever it was
there we were able to see it
but
if you are using more
though you were getting the same functionality
but your official terminal
I mean
wherever you were working
which is not good
okay
so go with less only
your work will be done
now
so we saw guys
what
how you guys can install your software through APT
in your VPS
then once you have installed
then you have to control it
so we saw that you can do it through systemctl
once you have installed it
then files and folders will be made in it
you are one stack
whatever you host
then files and folders will be there
you have to navigate
you have to edit
you have to delete
you have to do this
you have to do that
so for that we saw
that how we can handle the handling part
how we can handle the files
now
when you install Node.js
so obviously
whatever application you install
basically you will host
you want 24x7 to be live
it should run
in case it crashes
then it should restart automatically
so all that work
your package manager 2
which is PM2
it does
and
here I have not written much about PM2
because I want to tell
regarding PM2
because without PM2
your work will not work
so if you want this video
this video
here you will get full detail
in-depth about PM2
I have also added timestamp
please check it out
and in these two videos
you will get to know about PM2
I have told live
what exactly is PM2
how you can start it
how you can create it
how you can check it out
with list or logs
how you can restart it
I have told all that
please I highly recommend
please check it out
there is no need to watch the whole video
you can check it out
in the PM2 timeline
wherever you find it
ok
so that's why I kept it as it is
I didn't want this video to be too long
ok
and second
this PM2
to install it
you will see
first we have to install
node and npm
with the help of that
you can install it
see
here
ok
whatever it is
you can see here
and do it globally
always make sure
whenever you install it
you can see hyphen g
so you have to make it global
ok
now
network management
in network management
you can see this ufw
basically
we are talking about firewall
and this ufw
with the help of this
very easily
whatever our support is
right
whatever our incoming
or outgoing
whatever our request is
we can handle it
right
and we have done this
that we have allowed only
either 22
80
443
or 3000
we have allowed only these
we have disabled others
because SSS is mandatory
with the help of that
I log in
and if I disable that
then I will not be able to log in in my life
and we have disabled everything else
and this is very important
so I would like to tell you guys
again this part
you don't have to go anywhere
just in my first video
I say
that first
the moment you do BPSBuy
first video
you have to see this
where the firewall comes
ok
in this video
I have told you completely
what is this firewall
what is this UFW
with the help of that
you can manage incoming and outgoing request
you can handle it
and here also you will get
setting of firewall
if you
see first time
if it is not in your system
which in BPSBuy
by default you get UFW
so guys you
like
there is no need to install anything by default
but still
here you can see
pseudo install UFW
something like this is visible
you can check out the status
right
deny all incoming request by default
we are denying everything
and then we
open SSH
we are giving access to STTP and STTPS
our website will run in these two only
at least we will host our website
so these are the things
I don't want to go in-depth
I just want you to check out this video
so that you get an idea
this was very important
ok
and here everything is already given
what is the meaning of each command
what is not
everything is here
ok
I hope you got to know
so guys finally we have a bonus
where you can check very easily
disk space
memory usage
how much load is coming in the system
if you want to see better user-friendly
then Htop
so let's do one thing
if you want to find out disk space
then df-h is showing right
so df-h
I mean
it is telling you
size
used
how much is available in your file system
mounted
usage
how much percentage it is using right
so it is like this
and
I know guys
it will be very rare
when you will use it
but
still
some things like this
which you can check out directly
total how much is your memory
you can see
8 GB
and I told you in the starting
I am also using KVM2
so I have 8 GB of memory
out of which I am using this much
this much is free
this much is shared
this much is buff
you can see this much in cache
ok
then
this system load
check
system load
if you want to write top
then you will see something like this
Thapa
see this user
now see this is mongodb
mysql
and Thapa
so what is it
they have given everything guys
you can check it out here
I just told you
if you want to see something
you can see this
I have kept it in bonus
so that
obviously
if you
want to see this
so I am assuming
that whatever is written here
you will have an idea about it
right
so this is a little more
user friendly way
they are trying to show
what is what is not
so yeah guys
this is it
that's all for today's video
I hope you liked the video
so whatever I told you
this is kind of
you can say
a bare minimum
which as a bps
hosting if you are doing
as a bps user
you call yourself
then this much you have to know
it is very important
so all these commands
with their definitions
I will share the file link
in the description and comment section
right
and videos
I have already uploaded
I am recommending again guys
please
at least these three videos
please watch it
how to buy start till end bps
then how to setup it
then how to install
different applications
pm2
then how to clone git
you will get everything here
right
then this part
then this second video
I will highly recommend it
the moment you buy bps for the first time
you have to come here
all these security setup
after completing it
then you can go back to the first video
right
and this video is for you
if you want to install a database
then how to install mongo db or mysql
then you can watch this video
right
so these two videos are very important
so I hope you like this video
if you want to buy
so guys I would like to tell
I have provided the link in the description and comment section
click there
and if you apply this coupon code
then it will be fun
this opportunity is going to be very awesome for you
right
so guys
if you have any doubt
do tell me by commenting
I am here with you
if you like the video
please like
share it with your friends
our next target is 8 lakh subscribers
I will meet you in tomorrow's video
till then guys thank you so much
take care