0:04
hey there welcome back to our Channel
0:07
today we are diving into a beginner
0:09
friendly guide to Linux we will cover
0:11
what Linux is how to install it and
0:14
basics of Linux whether you are new to
0:16
Linux or just curious you are in the
0:19
right place let's dive in so what
0:22
exactly is Linux Linux is a free and
0:25
open source operating system which means
0:28
its source code is freely available for
0:31
anyone to view modify and distribute in
0:34
Layman language we can say that Linux is
0:36
a software that allows your computer's
0:39
hardware and lets you run programs Linux
0:42
was created in 1991 by Linux stws and
0:47
has since grown into a diverse ecosystem
0:49
of distributions each tailored for
0:52
different uses and users Linux is
0:57
stable secure and super flexible you can
1:00
use it for anything from your laptop to
1:02
servers even on Smart devices plus it's
1:05
free so anyone can download and
1:08
customize it it is backed up by a large
1:10
community for support before installing
1:13
Linux you will need to pick a version
1:15
called distribution or a drro some
1:18
popular options include obuntu perfect
1:22
for beginners Fedora great for
1:24
developers Linux Mint deban Arc Linux
1:28
Reddit Enterprise Linux we call it rhl
1:31
col Linux rocki and am Linux and op Su
1:35
in this tutorial we will use ubu because
1:38
it's easy to use and well supported
1:41
let's get Linux up and running here is
1:43
how to do it first you need to download
1:46
Ubuntu ISO file create a virtual machine
1:49
in Virtual box Mount the downloaded ISO
1:52
file start the virtual machine follow
1:55
the screen instructions finish the OS
1:57
installation and reboot your system
2:00
after the successful installation of
2:01
Ubuntu and then log to your Ubuntu
2:04
system start the browser in Google
2:10
ISO click on this first
2:15
link and download desktop uh Edition
2:18
that is Ubuntu 24.4 LTS click on
2:24
download download will start and it will
2:27
take 5 to 10 minutes depending upon your
2:30
speed once the ISO file is downloaded
2:37
box create a new virtual machine click
2:40
on machine and then choose new type the
2:44
virtual machine name let's say to
2:58
file ch skip unintended installation and
3:03
next give the CPUs as two Ram
3:08
as depending upon your resources so I
3:12
have enough resources on my laptop so
3:15
I'm giving it as 4GB to course and then
3:20
next select the virtual disk as minimum
3:31
choose this virtual machine and then
3:34
settings go to network choose bridge
3:38
adapter and click okay now start this
3:47
machine choose first option try and
3:50
install Ubuntu and hit enter
4:00
choose your prefer language and then
4:08
next choose your keyboard
4:12
layout your system is connected to the
4:15
internet then select the first option
4:16
use wide connection else select do not
4:19
connect to the internet click on
4:23
next skip for the time
4:27
being choose the first option install U
4:33
next choose first option interactive
4:36
installation and then click
4:42
selection and then hit next if your
4:45
system is connected to the internet and
4:47
you want to install third party
4:48
softwares for graphics and Wi-Fi then
4:51
choose the first option and you want to
4:53
install some additional media formats
4:55
then choose the second option as
5:00
so how do you install Ubuntu choose the
5:02
first option erase disk and install
5:05
Ubuntu and click next now specify the
5:08
username for your obuntu Linux in my
5:15
techi and the computer name that you
5:17
want to set or the host name that you
5:19
want to set for your ubu
5:21
Linux let's say it's two set the
5:36
and choose this option require my
5:37
password to login and then click
5:47
zone and then click next and click on
5:51
install to proceed with the
5:55
installation as you can see installation
5:58
has been started it may take 5 to 10
6:01
minutes depending upon your system
6:17
resources installation is completed
6:26
now press enter to remove the ISO
6:34
file we'll start our UB LX
6:42
VM choose the user Linux Tey and enter
6:45
the credentials that you have created
6:54
installation it will take us to the
6:57
following desktop screen
7:01
instructions click on next choose skip
7:05
for now and then click next choose no do
7:09
not share the system data and click
7:11
next and then click on
7:14
finish now that you have Linux installed
7:18
explore on the desktop screen you will
7:21
see application menu from here you can
7:24
search the application and start your uh
7:27
applications like I want to start
7:30
terminal so search here
7:34
terminal and click on the
7:36
icon it will start the terminal for
7:43
panel in the panel first you will see
7:46
the Firefox web browser if you click on
7:49
the Firefox web browser icon it will
7:51
start the Firefox for
7:52
you below to Firefox you have file
7:56
explorer it's similar to the file
7:58
explorer on window windows or the Mac
8:00
just click on this icon it will take us
8:04
to this window so from here you can
8:07
Travers or you can go to the different
8:09
folders like I would like to go to
8:10
download folder you click on it you will
8:13
be in the downloads folder if you again
8:16
go back to your home directory just
8:17
click on home icon here below to this uh
8:21
file explorer we have App Center app
8:24
just if you click on App Center it will
8:26
start the app App Center for you from
8:29
here you can search your applications
8:32
that you want to install on your Ubunto
8:34
Linux and and you can install it from
8:36
there let's say I want to install Visual
8:40
code so in the search bar
8:49
code just click on this Visual Studio
8:54
icon and then click on
8:56
install it will prompt you to enter your
8:59
local user password because your local
9:01
user password has the administrative
9:03
rights to install the softwares on your
9:12
authenticate so it will start installing
9:15
the visual studio code on your OBO
9:24
Linux once installed just click on open
9:26
it will start your Visual Studio code
9:32
all right this confirms that we have
9:34
successfully installed Visual Studio
9:35
code using App Center let's close for
9:40
being okay below to this app center you
9:43
have help center so you will get the
9:45
required ha for your Ubuntu desktop just
9:48
click on the links you will get the
9:52
documentations and Below to this you
9:54
have press it's similar to recycle bin
9:57
that you have on Windows
10:01
desktop all right let's try some simple
10:04
terminal commands let me close this
10:08
window all right so this is my terminal
10:12
let's run the command who am
10:16
I as the name suggests it will give us
10:19
the information about the user which is
10:21
currently logged in in your system so in
10:24
my case I am logged in with Linus te
10:27
user if you want to print the current
10:29
location or present working directory
10:31
you can type the command
10:35
PWD PWD stands for present working
10:40
directory as the output
10:42
shows my current working directory is/
10:45
home/ Linus teing and if I want to list
10:48
the files and the folders inside this
10:51
current working directory for that we
10:53
have a command LS stand for
10:56
list if you type here LS
11:00
it will show the files and the
11:02
directories under this present working
11:05
directory that is SL home/ so under this
11:09
folder I have these folders and
11:14
files all right if you want to see
11:16
whether these are files or folders you
11:20
run the command LS space hyphen
11:25
L it will show the output in Long
11:28
listing format if you see this is the
11:31
permissions uh section the first
11:33
character is d d stands for directory it
11:36
means demo is a directory desktop is a
11:39
directory this empty file it's a file
11:42
type as we have hyphen in front of uh
11:48
permissions another basic command is CD
11:51
CD stands for change directory or just
11:53
to change the folder from one location
11:56
to another location let's say I want to
11:59
to change my current working directory
12:01
to a where temp folder for that I can
12:05
run the command CD space SLV SL
12:11
stamp and if you type here
12:14
PWD you will see your present working
12:17
directory has changed to /w/
12:21
Temp let's create a data folder here in
12:25
order to create a folder in Linux we
12:28
have the command and mkd make directory
12:36
mkd and the name of the folder that I
12:40
create and if I hit enter it will create
12:44
a data folder or we can say data
12:47
directory inside my present working
12:52
sl/ if you do LS i l here all right now
12:58
I want to create a file inside this data
13:01
folder for that I need to go to this
13:04
folder I need to Travers to this folder
13:06
for that you can use CD command and type
13:11
data if you want to create an empty file
13:14
under this data folder we have the
13:25
skills if you type L here you will see a
13:32
created under where /t/ data
13:38
folder in order to add some content or
13:41
to modify the content of this file we
13:46
Linux VI editor is installed by default
13:50
whenever we install Linux so you can use
13:52
it by typing the command VI and then the
13:56
file name in our case File name is
13:58
skills so VI space skills hit
14:02
enter in order to enter anything on this
14:06
file you need to move into the insert
14:08
mode for that you type I here now you
14:11
are into the insert mode and start
14:19
Linux then enter Let's uh
14:31
it in order to save the file press
14:34
Escape then colon WQ this will save and
14:41
file all right if you want to view the
14:44
content of this file we can use the
14:47
command cat cat followed by the file
14:51
name so we have created a empty file
14:54
using touch command we have modified the
14:56
content of this skills files using V
15:01
editor and we can view the content of
15:04
our skills file using cat
15:07
command so if you want to go back to
15:09
your uh home directory that was uh slome
15:13
SL Linus Tei you just type CD
15:18
here you will be back in your home
15:20
directory if you type
15:22
PWD another important command is sudu
15:26
sudu will allow you to run the command
15:29
with administrative privileges so by
15:31
default whenever you install Ubuntu you
15:34
create a local user that local user will
15:37
have the administrative rights but if
15:39
you want to run the commands with
15:41
administrative right you need to append
15:44
sudo in every uh command let's say I
15:47
want to install a package like Vim for
15:51
that we have the app utility but app
15:54
utility will need some administrative
15:57
privileges for that I need to run apt
16:00
command with sudo privileges let's run
16:05
sudu apt update first so this command
16:09
will update the repositories index here
16:12
repositories are the package
16:14
repositories for your OB LX if you type
16:18
sudu app update it will prompt you to
16:21
enter the password for your local user
16:24
the specify the password and it will
16:26
authenticate and will run the command
16:33
all right let's say I want to install a
16:37
Vim it is highly recommended to install
16:40
the Wim package if you are beginner in
16:45
sudu appt is your command install is
16:50
your keyword followed by the package
16:53
name I want to install Vim here so type
17:01
type y here to continue and hit
17:12
enter all right we is installed now
17:16
let's try to edit uh Etc host files for
17:21
that again if you type Etc host here
17:31
the at the bottom of your screen it's
17:33
read only if you make the changes but
17:36
those changes will not be saved because
17:38
it's a readon file so in order to open
17:41
this file in read write mode you need to
17:44
use the command sudu sudu then VI then
17:51
enter and if you type here I this time
17:55
you will see insert you are into the
17:59
use down arrow key let's add an entry
18:11
entry now type escape and WQ to save
18:16
your changes now you can see the content
18:22
file so our changes are there in the
18:25
file if you want to print the IP address
18:29
Ubuntu system we have the command IP
18:32
space EDR space so let me clear the
18:35
screen first using the command
18:37
clear and type IP space ADR space
18:44
show this command will show how many
18:46
interfaces are attached to my Linux
18:48
system what is the interface name and
18:52
what IP is assigned to this
18:55
interface and this Dynamic word says
18:57
that it Go the IP from the dscp server
19:01
another way to verify the network
19:05
interface if you see carefully on the
19:08
top of your screen you have this icon
19:11
just click on this icon and then click
19:14
on wire click on wir
19:19
settings click on this wir settings
19:23
again it will take us to this
19:27
window it will show so the link speed IP
19:30
address Mac address default gateway if
19:33
you go to ipv4 tab you will see that
19:36
automatic or DP option is enabled it
19:39
means it will get the IP from the DP
19:42
server or you want to configure static
19:44
IP address choose the option manual
19:47
specify the IP details here IP address
19:50
let's say I want to set the IP address
19:59
subnet Mass would be
20:05
255.255.255.0 Gateway is
20:11
192.168.1.1 and DNS name let's say 4.2
20:18
apply just disable and enable this
20:22
interface by toggling this button and
20:29
go back to the terminal again and type
20:32
the IP addr show command
20:34
again you will see the system has new IP
20:39
address so this time the dynamic word
20:42
has been removed it means we have the
20:46
static IP address on our ob2 system if
20:51
updates including security updates on
20:54
your system from the command line again
20:56
you have to use the command appt let me
20:58
clear the screen again in order to
21:01
install all the available updates on
21:03
your system you can run the command sudu
21:15
upgrade hit enter and type y so it will
21:19
install all the available updates
21:22
here if you want to cancel Type n in
21:26
order to reboot or shut down your a
21:32
system this command will reboot your
21:40
system if you want to shut down then
21:43
type the command sudu space down minus h
21:47
space now it will shut down your system
21:51
if I hit enter it will set down my
22:00
all right select the watch again and
22:02
click on start in order to start your
22:13
Linux enter the credentials of your
22:26
enter let's talk about Linux voice
22:28
system hierarchy Linux organized the
22:31
files into a structure that looks like a
22:34
tree here are the main
22:37
folders We have slash at the top we call
22:40
it the root directory it's where
22:44
starts so under this/ root directory we
22:47
have multiple folders like Ben that will
22:51
have the required binaries to run the
22:53
programs boot folder will have static
22:56
files for the boot loader Dev folder
22:58
will have device files Etc will host the
23:03
system configuration files slome will be
23:06
the user home directory live will have
23:08
sh libraries media will be used in order
23:16
Medias MNT will be used for mounting a
23:20
file system opt is optional application
23:23
software packages folder SL temp is used
23:27
for in the temporary files and USR will
23:31
have users utilities and the
23:33
applications let's see this in action
23:36
again go back to your terminal order to
23:40
open the terminal you can use open
23:42
Terminal or you can from the
23:45
applications you can type terminal here
23:52
well if you go to slash directory that
23:56
is/ root directory type LS
23:59
l so this is my Ru directory that is top
24:04
directory under this directory I have
24:08
folders as shown in this figure so this
24:12
directory so again this is the one under
24:15
this root directory I have multiple
24:18
folders like boot directory Dev EC
24:33
where if someone says let's create a
24:37
folder under /w/ temp with the name
24:43
devops so you should understand that
24:45
your mkd command will start with Slash
24:48
because in Linux everything starts with
24:51
Slash if you go back to your home
25:03
slash location is slw SL St and
25:13
devops in order to verify this folder
25:16
has been created or not you just type
25:19
command LS hyphen L then D for
25:24
directory and the path the path is /w/
25:30
devops this confirms that you have
25:33
successfully created a devop folder
25:39
folder someone says let's go to a USR
25:43
local bin folder and do LS there so you
25:47
should understand automatically that
25:50
path will start with
25:56
CD USR would be under slash so it would
26:00
start with sl/ USR under this we have
26:04
local folder under local we have bin if
26:07
you do enter here you are in user local
26:12
bin folder you can run the command PWD
26:18
LS there is no files or directories
26:21
under this folder for the time
26:24
thinging type CD to go back to your home
26:28
directory that's all from our beginners
26:31
guide to Linux we have covered what
26:33
Linux is how to install it and some
26:36
basic commands to get you started if you
26:39
found this video helpful smash that like
26:41
button subscribe to our Channel and turn
26:44
on notification for more tutorials what
26:47
questions or tips share them in the
26:49
comments below see you in the next video