- 2 months ago
Category
🤖
TechTranscript
00:00yeah I got the host access just let me share my screen
00:17again how someone is logging with my name I didn't understand guys yeah thank you
00:38okay hope you are able to see my screen right so
00:42yeah yeah use your name sir use your names don't use my name use your name and then join
00:53fine okay so I have started the machine I have started the machine our Linux machine we have
01:09created yesterday so I got the new public IP address just let me open the open the mobile Xterm
01:21and edit session just let me click on ok yes so yesterday we discussed about the file creation
01:36right so how we can create the files we have discussed like the there are many many many ways
01:46in creating the file but most commonly used way is what we have seen yesterday that is a touch command
01:55we have used yesterday which will which is creating the files with the zero bytes and also we have seen
02:03with a single touch command we can create any number of files using a single command so these two things
02:10is what we have seen about the touch command and then we have seen the cp command copy basically
02:18which we will use in real time to copy the file from one source to another target or just to backup the
02:27original files so when any change went wrong then we can replace the original file with the backup one so
02:46that is the use of this cp command so using the single cp command we can't create number of files
02:56so only cp command usage is cp command usage is cp command usage is just to copy a file from source to the
03:11destination and then today we will see about this vi editor so vi this is the command used to create the file
03:22by opening by opening the editor this is the most most commonly used most most commonly used um command so
03:34that usually we will uh most commonly used command uh usually we will use to open a file and then write the
03:47content of it and then close it most most commonly used this command fine so now let us go here let me
03:59login as back as a root user and uh let me check vi hyphen hyphen help so if any command we would like to know
04:11any able to know any command then we can use that i have one thing to say uh can you please uh uh ask your
04:20questions or something in the end of the session please okay let me target whatever i would like to
04:25okay sorry sorry no problem fine so uh vi uh vim so vi improved there there is vi and uh there is vim
04:39vim vi improved is called as the vim editor so vim editor we also called it as a vim editor
04:48so vim editor or vi improved 8.1 2018 2018 may 18 compiled so vi is improved as a vim so usage arguments
05:02vim arguments and then file edit a edit specified files what here are the arguments we have given
05:11for example what we can do with this command is giving with these arguments so vi m or the command vi
05:22will takes this arguments hyphen hyphen only file names after this vi mode
05:28uh improved uh improved ex mode so there are various options we have given but usually what we will do you
05:37know let me uh lsf and l uh let me go back to the ubuntu user switch ubuntu okay so lsfl nothing is here
05:51here yesterday we have created isn't it in the opt directory i believe we have created
05:59some files so yesterday we created some files isn't it yesterday we created some files some blank files
06:07we created or we have written some content into these files so now in order to in order to
06:16write the content into this existing file or if the file is not there but we want to write some content
06:26inside in and then we can save it so for that we will use this vim vi vi editor okay so let us say vi and then
06:39linux um basic commands vi linux vi basic command c now the editor is opened editor is opened in read only mode
06:59so whatever we want to write we can write it empty file we are writing we are writing some content
07:08into the empty file so let us say this is see this wait two two things we need to know about this vi command
07:20two things we need to know about this vi command please carefully observe this is very very important
07:26command okay so when i am trying to change anything
07:31okay so it is saying insert warning changing a read-only file right i am just when we say vi space and then the file name
07:47it opened in a read-only mode it opened in a read-only mode okay let me write something
07:56this is this is this is linux basic commands so after we write something escape and shift colon
08:16w for writing q for quit exclamatory for saving now entered see what what this says linux basic commands can
08:32can't open your file or writing press enter command to continue i entered now what i do i just entered insert
08:41mode again exit mode again exit wq exclamatory done see i am not able to because it said it is a read-only file
08:51it said it's a read-only file okay now escape quit no it's not happening add exclamatory to override okay escape
09:05quit quit all right now it just got quit now see the linux sorry cat linux basic commands nothing is there
09:19what did you understand from this discussion point number one vi command will open an editor
09:31and open the file and open the file basically it will be open the file and then the editor to edit the contents
09:42of it one moment guys seems to be little disturbances are
09:52sorry so this vi command so let me write actually
09:57uh visual studio code let me write the notes so that it will be easier for you
10:06however this vi command is used to create a file if the file is not there or
10:15so the notes which you are uploading in the google classroom the daily running notes we are unable to
10:39download it sir can you please give the right access for us i'll i'll let you know how to how to take
10:46that i'll let you know i'll let you know so end of the session i will give some time so that let us
10:52discuss a lot of things okay sure sure sure now linux file related to the linux file system or linux
11:01linux file system uh we are not talking about okay so file types we discussed yesterday total we have
11:08the seven file types and how to create a file is now we are discussing as part of that we are talking about
11:15this vi so vi improved vi improved version is win right so this vi
11:31command command vi command vi command will do the following tasks will do the following tasks
11:42number one it will create a file it will create a file and open it in an editor in an vim editor
11:58in an vim editor it will create a file and open it an vim editor if the file was not exists
12:11next point b it will create a file and open it in a vim editor if the file was not exist next it will it
12:21will open a file and an vim editor if it exists if it exists right it will create a file if the file is not
12:36there and then if the file is there it will open it but to open and not open but to modify the content
12:50content of the file opened using this vi editor but to modify the content of the file opened using this vi editor
13:06here the user should be either root user or sudo user this is the point that we need to understand
13:22sir what is sudo user about sudo user i will explain in the users in the groups section
13:30but for now you understand only the root user can able to modify the content of a file when other than the
13:45root user or sudo user open open the file in the vi editor the file will be
13:59open with the read only access with the read only access okay so this is about this vi command now let
14:11us see practically we are we have already seen so i was i opened it as an ubuntu user right even ubuntu user
14:21is also a sudo user but if i open the file okay if i open the file now i'm i'm on the i'm with the ubuntu
14:36right meaning i'm logging as ubuntu user carefully observe now already file exists right so vi space linux
14:47underscore in production already file exists now i'm opening it as a ubuntu user so welcome linux is there
14:56welcome linux um now i'm just entering see it is nothing it is it is nothing now what we need to do
15:07to insert something into it to insert something into it press i right now when i press i you can see
15:14this insert insert but it is saying warning changing a read only file that's okay welcome to linux
15:25introduction class okay now after this escape
15:31and then shift colon write quit save but it is saying what can't open file are written because
15:41ubuntu is a sudo user but i have not opened the file in a sudo mode i just opened it in a normal mode
15:47so that is the reason i was not able to do any changes so let me escape let me quit and then
15:54let me quit actually so without writing let me quit it now if you can see cat linux introduction nothing is
16:04there but now let me use sudo vi linux introduction i am now opening with a sudo so press i now see then
16:17the warning is not showing here earlier we have seen one warning
16:22writing read only file it is not now showing so let me write welcome to linux this is an introduction
16:32session okay escape colon write quit then save see now cat linux introduction see this is an introduction
16:46session session right now it opened the file and then was able to write the content into it but when
16:55but when i opened it as a sudo so what is this sudo what is the sudo meaning the user the root user
17:07have all the permissions on the file system and then the directories in the linux right
17:11so if any user want to act as a root user or if any user want to get the permissions such that as the
17:22root user then that user should be created as a sudo user okay now as as the situation came now what is
17:33sudo user so what is sudo user right so what is sudo user what i am saying here either sudo user or
17:44normal root user can only open the file in a vi editor and then modify the file content or add the file
17:51content is what i said root user you know but what is the meaning of the sudo user so as we know as we know in
18:04linux operating system the root user have almost all the permissions on the all the directories
18:19directories directories and the file system right but if we login as a root user to the linux machine
18:36there might also there might also chance of chance of deleting the files or editing the files
18:53by mistake right any i logged in as a root user by mistake i deleted one file yes the file will be
19:02deleted so to avoid this accidental activities to avoid this accidental to avoid this accidental
19:11to avoid this accidental activities
19:16we have to create a user with the with the with the root user with the root user with the root user
19:27partial permissions with the root user partial permissions or toward this existential activities
19:37we have to create a user with the root user with the root user we have to create a user
19:43with the root user permissions with the root user permissions and we have to login with that user
19:52so if any file will be deleted or modified by this pseudo user okay so to avoid this
20:09existential activities we have to create a user with the root user permissions so this user is
20:15called as this user is called as called as pseudo user you got it right so root user we have the lot
20:29of permissions so rather than login with the root user if you log in if we have to create an another
20:37user and then we have to make that user as a permissions like the root user have the permissions
20:42right we can we can compose this user with the limited permissions or maybe the permissions of
20:46the root user so now this user is called as a pseudo user so if the pseudo user will be logging
20:53so so if the pseudo user will be logging and delete any file so if the pseudo user so if the pseudo user
21:02will be logged in and will be delete or modify any file by mistake then we can still recover it
21:18using the root user we can still recover the using the root user so that's the reason we will create
21:27the pseudo users and then we will work with the pseudo users mostly not rather working with the root
21:35user so a user who will be shadow of the root user is called as the pseudo user a user who will be having
21:46the permissions like the root user that user is called as the pseudo user so pseudo users by default won't
21:55created pseudo users by default won't come won't come uh except except the os operating system
22:09distribution related user for example ubuntu ec2 iphone user etc so pseudo users by default won't come except
22:23the operating system distribution related users for the operating system distribution related users for
22:26example ubuntu and then the ec2 users or operating system distribution related users other than these
22:32users no other user will become as a pseudo user so we have to make so we have to we have to made a user as a
22:42user as a pseudo users pseudo user pseudo user by adding the user in the slash etc slash pseudo users file
22:57pseudo users file note note a user a user a user will be made as a a user will be will be created by the
23:12a user will be created and made as a root user by only the root user by only the root user a user will be created
23:35and made as a pseudo user by only the root user that means what pseudo users will be created by the root user only meaning
23:46first of all a user will be created by the root user only and that your user is not the pseudo user
23:54so if we want to make him as a pseudo user then we have to add him in the etc pseudo users file by the root user
24:03only then that user become a pseudo user such pseudo users or root users only can be able to create the
24:13file using the meaning only can be able to open the file and then modify the content of the file using the
24:21vi command now let us see how to create a user and then make him as a pseudo user just let me log in
24:30as i told in order to make a in order to create one new user we have to login as a root user so i have
24:41logged in as a root user now once after the user has been logged in as a root user then what we will
24:49do is let's go to opt i mean home there is no user other than the ubuntu now let us create one user so there
24:57is another command also to create the user that command i'll explain later so let me create linux
25:05admin so linux admin is the user please enter a username matching the regular expression configured
25:13so whatever the username we have given is bad user so it is not the format expecting by the
25:20uh linux distribution this ubuntu linux distribution regex pattern so what i will do is linux admin all
25:29are small now see it created so asking the password let me give the password as admin and then re-enter
25:37the password yes so linux administrator and this room number and all not required just yes now if you can
25:47see there is a new user created called linux admin user name so should be must be in a small letters
25:56only now this linux admin is not the pseudo user how i am telling that this is not the pseudo user for
26:04example let us switch user to the linux admin let us switch user to the linux admin now we are in the linux
26:14admin l7l nothing is there now i want to go back to the go back to login as a root user now see i have used
26:25sudo iphone i it is asking the password yes i entered but now it is saying what linux admin is not in the
26:35pseudos file this incident will be reported that means what linux user linux admin is not a
26:43is not a is not a pseudo user and that is the reason i was not able to use the command called
26:50sudo from the linux admin so how do i made this user as a pseudo user let me duplicate the tab
26:59and let me log in as a root user see when the same command when i used with the ubuntu
27:06it is not saying anything pseudo iphone i but when i use the pseudo iphone i the same command with this
27:12linux admin it reported linux admin is not the pseudo users file that means linux admin is not
27:18the pseudo user whereas the ubuntu is the pseudo user however now what we will do is let us open the
27:28etc slash sudo s file in the etc there is a sudo s file now i'm just pressing i to open it in the
27:40insert mode see what what command i used here what command i used here i use the command called va only
27:49so that means what i am opening this file in an editor right where i can modify this file i'm opening
27:58this in a vim editor now this is the vim editor just to insert something in this file right just press i
28:08now i was into the insert mode okay now uh let us here add our user linux admin and let us add the
28:22permissions as that of the uh root user permissions okay now let us just enter what we did we made a user as
28:35a we made a user as a as a pseudo user now so write quit and then save while right so we are saving the
28:43content now cat slash etc pseudo users see linux admin is here now as linux admin is is added into the pseudo
28:57users list now i was in the linux admin right if i use the command pseudo iphone i
29:05right asking the password now switch to root user got it earlier when i say pseudo iphone i it said linux admin
29:15is not in the pseudo users file but when the root user added this linux admin in the pseudo users file then
29:26after that the when we say pseudo iphone i then that user is not reporting any issue so we were successfully
29:40switched back to our root user isn't it so this is about the pseudo users concept so such as pseudo users
29:49or the root users only can create a file and edit the file using the vim editor which is the improved
30:00version of this vi editor or the vi command so now so far we have opened okay now what i will do is clear
30:11everything now let me go to cd opt and ls open l so let us let me give some file name vi space let's see
30:26vi space let's see basics dot text which is not there vi space basics dot text
30:35now entered now i entered okay now entered so what it is saying here basics dot text is a new file
30:53that means the file is not there so what happened file is created and then file is open right so let me
31:02write something into this so to write something in this file press i to go into the insert mode so this is a
31:11basic text file basic text file so after inserting the text escape colon write the content quit it and then
31:24save whatever we have written enter now cat basic start txt see the basic start txt is there if i say lsf and l
31:35basic start txt is here so what what we did understand from this command now so we did understand so vi
31:46it will open it will create a file it will create a file and open it in a va vim editor if the file was not
31:54exist already if file was not existed already it will open it actually is used in normal users also now
32:05normal users it is serious when i opened but you you are logged in as you are creating this last opt that
32:15means belongs to root user now that's why we can't use vi in that directory actually in ubuntu also you
32:25switch it to ubuntu then vi also use it now ubuntu is a pseudo user that's what i told what i'm telling is
32:32is if i switch to vi is a normal user command no in normal user also we can create files by using vi
32:43okay i will repeat this class listen please carefully okay i will repeat this class please listen carefully
32:51let me switch to ubuntu user now ubuntu user ls-l nothing is there let me open vi space
33:03test dot txt the file is not there let me open right the file is open now escape colon write quit
33:17now file is created test.txt file is created okay now let me open this file test.txt and insert okay let me
33:30insert something this is a text file this is a text file escape colon wq exclamator work to find why
33:40because this ubuntu is a pseudo user ubuntu is it sorry for the introduction otherwise you can create normal
33:47user then use vi i think it will be working okay okay so we use the pseudo means you are in the slash
34:00uopt means that belongs to rudert that's why that's why that's why so pseudo uh slash opt is you can create
34:08you can you can create one normal user then then by using vi we can create files
34:16correct correct so
34:19so opt is the directory which is under the root directory but this is not the root users directory
34:27that is one now inside this opt directory okay inside this opt directory which is which is not the
34:38which is not the root directory we were inside actually under root under slash we call normal
34:45user cannot modify uh editing the content of the files under uh slash because the under slash uh
34:52directory belongs to root user correct not root users not not root users actually pseudo users and then root
35:01users okay so do you so do you know some permits are given like uh root user but you can uh one thing you
35:09can create one normal user then by using creator you can create one file that's correct that is what in
35:15the home directory that is what in the home directory so home directory in any directory not in home directory
35:23you can create one normal user then you can create the files by user it's working
35:32sorry for the interruption no that won't work add user let me create uh james
35:40linux admin is not this one so let me create uh let me say james and let me say james so james
35:53yes done now the james is the user created so if you can see here james is the user
36:02now i will go to the root directory meaning the parent directory
36:09now from here i will switch to the james user yes now i'm i'm the james user james this is okay why
36:21because you know the james is the home directory so inside the home james is a director created here he
36:29he has the permissions he has the permissions but when this james will go to any other directory
36:37like slash opt you don't have the rights to create the file yes yes under slash in a normal user can't
36:44to modify the files correct that's what i'm saying that's what i'm saying in the in the root home
36:51directory anyone have the permissions because that is his home every user have the permissions in their
36:59home directory that is that is for sure but usually we will maintain our files in some other directories
37:07right so opt for example so in that case the normal users can't open a file or can't write a file
37:16you got it that's what i told
37:18make sense right okay sir understood yeah yeah sure so now okay now sorry where are we now am i okay
37:31fine so we were um a user will be created and made as a sudo user by only the root user
37:38right so right now uh let me switch back to again let me switch back to su iphone our linux admin user
37:48sorry uh linux linux i'm sorry my back my back linux admin user so password ctrl x let me switch to linux
38:03admin user password password is admin perfect now i was where is the linux admin user but our files
38:11is in some opt directory so let us go to the opt directory ls-l now what we did understand now so
38:21the files will be created and then opened and then written by the sudo users or the root users
38:32maybe i will change the text like this uh vi it will create okay but to modify the content of the file
38:41opened using this vi editor the user should be either root user or sudo user but to modify the content of
38:47the file content of the file opened opened using the vi editor so here let me add one more thing
38:56which is created which which created other than home directory probably this makes sense other than
39:05home username directory this makes sense probably correct so everyone everyone in their home
39:13definitely have the permissions right but in the home directory we can't maintain all the things
39:18because home directory is belongs to the users directory we can't keep the data there
39:22so usually our data will be put on to the opt directory which is an optional directory correct
39:29which is coming as an empty directory so that we can add our add-on files in that opt folder but if
39:36any user want to create the files in such opt users that user should be the sudo user if you would like to
39:45create the file or edit the file using the vi editor that is the concept fine so now we have seen the
39:54usage of this vi editor but please please understand folks three things um three things we need to
40:01understand now number one three things we need to understand about this vi editor number one vi command
40:08will create a file if the file does not exist and after creating the file it will open in the vim editor
40:17which is the improved version of the vi right and then we can write the content of it and then modify the
40:24content of it and then uh we can save it but when when you know the user should be either the sudo user
40:33or the user should be the root user that is point number one point number two the vi is used to open
40:42a file and then edit the content of it so again when we are doing such activity the user should be the
40:49sudo user or the root user we most most most frequently use this command without this command
40:55we can't do anything most frequently most frequently we use this command so just an example i just have
41:03told you right we have opened the sudo users file what we used we use the vi to open the sudo users
41:08file and then we edit admin as a sudo user and then you know we have login with the linux admin to create
41:20the other files so that means what this is the most commonly used command to open the files and then write
41:27the files very important comment perfect so now what is next after this vi what is next so here two two
41:37to three things we need to understand two to three things we need to understand when we open the vi editor
41:43when we open the vi editor after writing the file we have the w q and then this exclamatory
41:51so w for writing q for quit and exclamatory for saving and then quitting it so whatever we written
42:02right so that is saved and then quit the editor because editor is opening so we have to quit the
42:10editor after writing the content by saving the data we can even quit the editor without saving the data as
42:17well just we can use q as well just to quit the editor right for example uh my bad my bad just let me log in
42:30su iphone linux admin and admin is the password let me now let me go to slash opt ls-l
42:44now what we will do is vi space um vi space basics dot txt go to insert mode now see i'm it is saying i'm
42:57opening the file in an insert uh read only file actually so what i'll do is this is sample now escape
43:06colon colon quit now what is saying whatever you add just add exclamatory to override no write since last
43:17change but if you want to override something it is asking to use exclamatory done so we were quit it but
43:25no whatever the change we done that is not written right that is not written so exclamatory
43:33is is we were suggested so just override the content what is there but as we have not
43:40opened it with the right access it didn't worked out what i mean to say is
43:46q for quit actually w for write so write and quit will save the file
43:52you write the content and then quit it but override it using the exclamatory so that is what
43:57the saving basically right whatever we have written that will be saved all right using the exclamatory
44:04and then we can quit it perfect
44:10perfect now now let me let me open one more time this vi
44:18uh sudo let me use sudo vi basics dot txt and let me open the admin so let me go to insert mode and let me
44:29change this is a welcome text so this time i will use exclamatory quit i'm not using the exclamatory i mean
44:41right so i just quit it what did it says no right since last change add add exclamatory to override right
44:52so let me again use the um colon q and then override that means exclamatory is is what it is doing here
45:05whatever the changes we have done that changes it is making as a override meaning the file is reading
45:13as a or changing as a modified modified content or override content now it will quit so let me cat
45:21the basics dot txt it was not served because we have not written so what i will do is now sudo vi
45:29basics dot txt again i am opening this time what i will do you know i will write something
45:36i will write something so this is a demo now escape colon write quit this time i don't use the
45:45exclamatory just write quit now it it oh it quit actually now see cat uh basics dot txt see this is
45:55saved why because you know i have added a new line i was not overridden the existing text i was added a new
46:04text so when we added a new text so when we added a new text no need to give this exclamatory but when
46:10we change the existing text we should have to give the exclamatory let us check that so sudo basics dot
46:17txt now insert mode i will change it this is a demo content right i was modifying it escape
46:26colon wq quit it then cat basics dot txt yeah it it was taken actually it was taken because i was not i
46:37was used the sudo if i not use the sudo then it was not overridden for example let me not use sudo
46:45and uh insert mode see it is the read-only file it is the read-only file so sudo is making a file as a
46:54writable file number one so when the file is opened in a writable mode then the exclamatory is no need to
47:02give it is taking the content because we are using the w meaning writing so three combinations here
47:08please don't confuse when we use w that is writing and q for quitting and exclamatory is for modifying
47:18the file or you know overriding the file but that exclamatory is not required when we open the file in
47:23the sudo mode okay if the file is not opened in the sudo sudo mode first of all it is not modified
47:29though we changed the content let us say text so though we change the content it was not modified
47:36now if we kill the if we quit w q then it will ask you to add exclamatory to override right because
47:45read-only file you open you open the read-only file so w q and exclamatory now what it says now
47:53it what it says it tries to modify right it tries to modify override so but what what you have opened
48:01you have opened in your read-only file so it it is not possible so by this discussion what did you
48:07understand point number one when a file is opened with the right mode permission then exclamatory is not
48:16required because exclamatory is is used to denote that the file is modified or the content of the
48:24file is overridden that is the point number one point number two when the file is not opened in an
48:30exclam not open in here in a in a writable mode if the file is opened in a readable mode but tries to
48:37change the content of it then to quit the file we have to use the exclamatory to denote that we are
48:44overriding it and then quitting it but in fact it won't over right serious now when i say wq exclamatory
48:51now it is not changing so when i say q exclamatory now it will come out why because it is not allowing
49:00you got the point when we are opening a file in a non-sudo mode number one the file is first of all
49:09not modifiable it is only the readable so when you try to insert something into the readable file
49:18then it won't take actually but to come out of it then we have to denote explicitly quit and then
49:24exclamatory so we are giving that i'm quitting i'm overriding the content and then i'm quitting so q
49:32then exclamatory then only it will quit otherwise it won't quit that is a point number one and when we open
49:38it in a pseudo mode when when it will be pseudo mode when it will be pseudo mode then the exclamatory
49:48is not required because writing we are doing w we are using that is for the right actually
49:54so right quit that is good enough because we opened in a writable mode so when the file is opened in a
50:01readable mode then exclamatory should have to given that we were overridden but in fact it is not overriding
50:07not overriding because it is in a read-only mode okay so to come out of that file content which is
50:13in the readable mode we have to use the exclamatory explicitly so that is what the suggestion is
50:19offering here so we entered something and then just say content of the file and then escape and then if
50:29we use the q and then what it is saying no right since last change add exclamatory to override right
50:41to override add exclamatory okay let me add exclamatory to override but it is not overriding because we
50:47opened file in the read only but it will be quit got it when the file will be opened with the modified
50:56permissions exclamatory is an optional because right will be used to write the content of it but when
51:03the file will be opened in a read-only mode the exclamatory is required to quit the file by overriding
51:09the file content that meaning is overriding but it is not really overriding okay so that's all about
51:15this vi editor for today and then tomorrow let us see about the last some linux most useful basic commands
51:24and after that linux most useful basic commands let us see the linux file permissions i mean users and
51:31then permissions concept we will discuss okay any questions for me now please ask your questions if
51:37you have anything sir i sent one mail to you did you see that mail yes yes yes i have seen that email in
51:47fact you even added the our durga soft uh madam right back in yes yes yes yes yes but they said to
51:54me there is no pre-recording available for the your course ah 8 pm 8 pm recordings were there i will revert i
52:02will please please suggest to them please give me that i will add i will add i will add my sure i will add my
52:08comments have you completed the batch now no 8 pm batch is still going on so the recordings were there
52:16actually the jenkins how many how many days you will complete that batch maybe in one more month
52:24one more month one more month to one more month to 30 to 45 days it will take to complete the entire
52:31devops things how many tools you will cover sir in the batch may know yeah jenkins completed jenkins
52:37completed in the sense jenkins uh 60 percent is completed uh solar cube is completed jfra completed
52:44and then darker completed docker also completed yes and uh kubernetes is not yet started we are doing
52:52the end to end today uh end to end integration we will do uh till that yeah that's what till the
52:59darker today we will do into an integration with that integration we will see two problems to solve
53:05that we will use the ansible after ansible or first i will start the kubernetes then after that i
53:10will start the ansible so that the devops pipeline tools will be completed so two more tools need to
53:15be complete that is a kubernetes and then the ansible kubernetes aws sir after this i will start the aws
53:22after these uh tools terraform also you you didn't start now i didn't start it even terraform as well
53:31okay fine it takes almost two months maybe uh correct correct maybe maybe 30 days to 45 days for sure it
53:38it will take fine okay any any questions any more questions for me folks sir we are not able to
53:48download linux um the notes which you are writing is we are not able to download sir okay so maybe you
53:54are uh going here right linux class yes yes sir and uh maybe you that due to network problem i am not
54:03unable to your voice i may again rejoin ah sure sure so what i'm saying is this is a text content i'm
54:11pasting the text here so you this text you can't download so you just copy and then paste it in your
54:19text editor but you can't download this but any other files for example aws material and other files
54:26you can download just click on this yeah those files we can download sir correct correct because
54:35you know i was not pasting it as a document i was pasting it as a content here sir please add that
54:41also in google classroom so that i will download the notes sure sure just give me a moment today's
54:47class notes let me upload quickly and then let me um okay sorry for the trips no problem just in a moment
54:57just a minute let me copy and then paste here just save it uh yeah whoever have not added i'm just giving
55:10this link uh you yourself just click on that link and then join there okay so whoever not joined please
55:19click on the link and then join yourself fine so tomorrow let us discuss about the um the the continue
55:28the file permissions and all um and then users creation groups creation files creation so let us continue
55:35uh maybe two to three sessions after uh we will start the shell scripting so shell scripting is very very
55:42important for us excuse me yes uh you said that um for the accidental uh delete file uh by the user sorry
55:54um by the root user if the uh any file is accidentally deleted then we can access this by sudo user right
56:05correct correct if the root user will delete the file that we cannot recover it but if other than root
56:11user if they delete the file we may have the chance to recover it the root user can recover them sir
56:18because uh the sudo is only the permission to delete the file but how we retrieve the file and yeah as
56:28per my opinion it's not possible once delete the file and the root permission we can't retrieve the
56:35file because not root permissions not root permission see pseudo permissions is what we will give
56:42isn't it sudo user is what we will create for example if i open the sorry just let me open this file um so
56:53cat slash etc sudo users permission denied just let me use this right here what we will give right now i
57:03have given all the permissions but usually we don't give all the permission we'll give only certain permissions
57:09for the sudo users isn't it so in that certain permissions if that deletion is there that is
57:16not a permanent delete isn't it so that is not a permanent delete it is a temporary delete so all
57:21the temporary deletes files will be required in some directory so that that kind of permissions we can
57:26enable for a particular user where the root user can recover the data but the sudo users can have a
57:33limited permissions because every user created will have a user group and then the other users three
57:42three parts will be there one is the user second one is the group in which that user is created
57:48and then the third one is the other users maybe have the control on this user or not three three things
57:54we have so in such case sudo users are we create right the permission level is what we give
58:01so when a sudo user will delete any file that may be a temporary delete not permanent delete so that
58:07the root user can recover it got it okay so what yeah yeah fine so that's all uh folks i'm i have to
58:18jump to another session i'm just stopping my screen and then tomorrow let us discuss more thank you sir
58:24don't forget to tell them back in team sir sure sure i will i will send an email i will send an email
58:29if you give access i'm very beneficial for sure sure sure sure i definitely will will add an email
58:35thank you thank you
58:38
|
Up next
1:02:30
58:55
57:14
1:02:58
42:07
59:09
Recommended
46:05
5:18
5:37
3:39
1:04:31
1:05:27
0:46
2:11
2:55
11:13
Be the first to comment