- 1 year ago
Category
🤖
TechTranscript
00:00Yeah. Okay, I might get now host access. Yes, I got the host access. So let me share my
00:16screen in a moment of time. I believe Telegram group is also created. And you might have
00:25received the email with the link also with the classroom link and then the Telegram link.
00:33I believe if not, maybe Madam will share with you because I hand over the Google classroom
00:40link and asked her to share the Telegram link as well. Okay, however, let me share my screen.
00:50And then let us recall what we have, you know, discussed in our last session. In our last
00:58session, we discussed about the Linux files and then directory structure, we started discussing.
01:06And then we have seen couple of directories, not all, but a couple of directories we have
01:11seen. So let us continue the same session and then complete the directories so that we can
01:17speed up a little in the you know, next from Monday onwards, meaning tomorrow also we have
01:24the session. But tomorrow and then today if we complete this Linux file system, then we
01:30can we are in good let's go to the user's creation permission spot and all. However, now I'm starting
01:37the mission. Linux mission I'm starting. And in the classroom. I already uploaded the Linux
01:47notes, right. So let me open the Linux classroom material, which was last updated. Yes. So last
01:55we have seen about this user, root user, and then LS command we have seen. And then we thought
02:02to see the directory structure as we know about the as we got to know about the alias command, then we
02:09thought of see the directory structure. Okay, so let us continue doing the same. Let me reload.
02:27Copy public IP address. Let me 7pm machine edit session. Let me connect. Okay, so right. Now let
02:49me suit up. Perfect. So we are now on the root user directory. So let us go and then recall what we
02:59have discussed in our earlier session. Direct, not this one, just let me open the Linux file system.
03:10So actually, you are starting the AWS virtual machine. Every time we log in, we start class. Correct?
03:23Correct. Correct. Because a new IP address. Yeah. After the class you are disconnecting. Why if what if we keep
03:33it in running status only? Actually, we will be charged. Do we get charged? Correct. Monthly 750 hours will be the monthly
03:43750 hours they will offer. Those 750 hours will be consumed, then they will charge. Ideally, if you can
03:52calculate 24, 24 into 30, for example, consider 30 days and per day 24 hours, if you can consider
04:00that, that that will be around 720 only. Okay, so you may ask now, so 24 hours also we can on we don't
04:07get any charge. But you know, this but not only yeah, 720 still 30 30 hours will be there. But you know, not
04:18only not only this consumption, meaning not only the machine running, but also for them. But also for the storage
04:28that is using for this mission, we will be get charged. So this to the mission is attached with the storage
04:35EBS storage, but that storage will get charged. So better we can stop after our session complete.
04:41Okay, fine. So now let us go and then continue with the Linux directory structure. So go here.
04:51Yes, so this is what we have started. So we understood in our last session, what is the root
05:01user? What is the root directory? And what is the home user? And what are all the users can be created
05:08in the home we have seen? Non root users will be created in the home directory. And even we went to
05:15this boot directory. In the boot directory, we have seen the operating system, operating system,
05:23bootstrapping level, bootstrapping level, kernel level files we have seen, for example, grub.cfg,
05:31which is talking about the kernel level load, kernel level files loading, and then other bootstrapping
05:40files to load as part of the OS start and all we have seen. So that is the boot directory we have seen
05:47in the last session. And then we discussed about the root directory as well. So root meaning the root
05:55user, root user home directory. So this also we have discussed a couple of times. So root user slash root
06:04meaning root users home directory. So this is the root users home directory, and slash is the parent
06:11directory or top level directory or root directory. Whereas this root is the root users directory. Right? So
06:19inside the root users directory, only the root user related files and all will be pasted meaning created or
06:28created or kept. So the root user is the super admin, like, like, who have all the permissions on
06:41like in Windows, you have the two users, right? When you purchase a mission, you may be administrator,
06:48or you may create non-administrators as well. So like that, the root is also called as an administrator user.
06:55So we have a full permissions over the all the files and then the directory structures. So that is the reason
07:03basically, every created user in Linux, meaning every created user, by default, the root user will be created
07:13as an admin user. And by default, the Ubuntu user created as a non-admin user if it is Ubuntu operating system.
07:21Other than these two users, if we create any other user, then that user is called as a non-root user. So
07:29non-root users will be created in the home directory, who don't have the permissions and all the file system,
07:35but root user will have the permission and all the file systems. So next dev, dev meaning the system devices,
07:45for example, for example, disk, CD-ROM, speakers, flash drive, keyboard, all this information will be stored in
07:51the slash dev system devices directory. Let us go to slash dev and ls-l series, we see xvda,
08:03zero zero, zfs, zfs, zfs. So all these things TTY, all these things are there are auto ffs, block,
08:13char, console, CPU, disk. Did you see all these related to the devices, devices and then these CDs, and then the
08:26cpu disk files all this information is maintaining inside this dev that means the devices
08:35devices um devices directory so then etc very very important directory etc configuration files
08:44all our application specific configuration files will be inside the etc directory
08:50for example if we can go to slash etc lsf and l see there were a lot of directories and then files
08:58related to the configuration of any software or any library or operating system meaning the ubuntu
09:08operating system or um if it is the cento a cento is operating system operating system operating system
09:16specific configuration files and then the operating system used tools specific configuration files
09:23will be inside this etc directory for example apt apt is what one tool to get these softwares installed
09:33into this machine for example apt i could get update so this will update the complete uh uh box meaning
09:42this uh machine it will update so where is this apt get update uh tool so it is inside the etc only
09:53if you can see somewhere you can see apt so apt similarly apt if and get is also there so these tools
10:03are here in this directory etc directory meaning the configurations of the tools that we are using in the
10:11machine we can see in the etc especially we can see in the etc especially we will work with this one
10:16sudo users directory sudo users dot d directory and then sudo users file next systemctl cconf is a file
10:26systemctl directory so these these uh these you should have to remember with meaning meaning we will work
10:36mostly with these two files sudo users file and then systemctl file what are their meaning is of course i will
10:46explain later on time if you want to install any machine or if you want to run any software as an admin user
10:55sorry if you want to run any software as a continuous process like daemon process then we can use this
11:04systemctl.d systemctl.co inf and then you can run it and if you want to create any user as a sudo user
11:13what is sudo user i will explain later in the linux users section so that we will start uh next week
11:22so if you want to make any user as a sudo user meaning the like root user meaning like root user if any
11:30user we would like to made like root user then that user information we have to mention in this
11:37sudo user for example if you can see cat sudo users in cat sudo users you can see this user
11:44privileges specification like root user and dollar right meaning this user is a sudo user
11:52we mentioned here so i will explain about the sudo user later and time but etc meaning the operating
12:01system specific commands let me better let me write the notes that will help you even though i was
12:09uh given in the documentation if i type that will help you so topic linux linux directory and files
12:24structure so this is the topic and in this topic we have seen now the directory called etc
12:33etc so etc is a configuration directory configuration directory any software tool
12:48we use on the operating system we use on the operating system
12:57then that tool specific those tool specific configuration files will be maintained in this
13:09this slash etc directory in this slash etc directory this is point number one
13:18and point number two about this etc is point number one
13:27can you guys please move thanks
13:29point number two point number two is this etc is a configuration directory any software tool
13:38we used on this operating system then that tool specific configuration files will be maintained in this
13:44slash etc directory this is the point one and point two point two is point two is
13:51if point two is pseudo users pseudo users systemctl systemctl are the most commonly most commonly used commands
14:09most commonly used commands to make a user as a pseudo user to make a user as a pseudo user
14:18and to run any software continuously continuously continuously the background the background we have to use
14:37we have to use the systemctl so pseudo user systemctl are the most commonly used commands
14:46so it's maintaining maintaining maintaining by this directory why explicitly i have written this point you know
14:55if if anyone will ask you how do you made a user as a pseudo user then you have to remember that the pseudo users information
15:04we can pseudo user we can make a user as a pseudo user using this pseudo users file available in the slash etc
15:13so similarly we can similarly we can run any tool software as a continuous tool or software using the systemctl
15:26so this is about the etc directory basically configuration directory we can call it as a configuration directory
15:34any tool that you will install for example just i would like to any tool that you will install
15:40all going forward we will install the jfrog and all right so docker and all so we have to at least one
15:47time we have to run it with the systemctl docker start then it will be start as a docker service
15:56so then we can check docker space docker space status meaning this will start a software as a
16:07service component service component service component and hence using the service space service space
16:23software space status you can know the status of the status of the particular tool or software install
16:37so this is about the etc directory then what is the next directory the next directory is
16:48i was created in order like in the third let's go bin directory which is very very very important
16:56binary directory every day whatever the commands we will use right those we will be in those commands
17:04will be inside the bin directory so let us go to bin lsf and l whatever the commands we will use it is like
17:15a c program files in your windows machine whatever the tool you will install that tool specific files will be
17:24download and the tool specific files will be maintained here two things whenever you download any tool tool
17:31specific configuration will be maintained in etc and the tool specific files will be downloaded and then
17:38maintained here if you can see here it this is this is called as a software link or symbolic link
17:44so exit cat is a symbolic link to exit that means there is a exit configuration files in the etc directory
17:52so if like that if you can see apt also will be here so just let me go to apt apt
17:59did you see apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt apt
18:29there in the bin directory. It is like a C program files in your windows. So let me write the notes
18:35because this is very important. So bin directory, bin directory, bin directory is used to have,
18:50this used to have all the commands that we regularly use. Means when a tool will be downloaded,
19:08for example, these are all the tools, right? Local is all the tools. So these are all the tools,
19:24right? That we have. So what I can do is let me download one more tool here. What is the tool is,
19:32I don't think we have a ping tool here. Just let me check. Do we have a ping tool?
19:38Yeah, we have a ping tool, which tool I can download. Let me go and then check if I can download anything.
19:57Grip is also there. Ping is also here. Let me download app type and get installed. Okay. Just
20:05let me download something. App type and get installed NGINX. This is a server. I'm just installing
20:16some, some server. I'm just installing just in case series created a symlink in the ETC systemd,
20:25right? That means what configuration went to the configuration went to the ETC,
20:31and then LibBus systemd is NGINX.Service. So there is a symlink created and LSF1L, if I do,
20:41did we code that NGINX here? Starts with N, NG, NGINX. No, actually that is not a tool. That is a service.
20:55So that is the reason it didn't came here. NGINX. Yeah, it didn't came here because it is not a tool.
21:03It is this. It is not a tool. It is a kind of a service. So that is the reason it didn't came here.
21:11But any tool if we install that will come here. Series vi editor again have a symbolic link in the
21:19ETC directory and VIM editor, right? So these are all the things we have. So what do you understand
21:29from now? Bin contains the commands of the tools that we install, not the softwares. So bin directory
21:37is used to have all the commands that we regularly use, that we regularly use. So when we, when a tool
21:45will be downloaded, it will be, when the tool will be downloaded, it will be resides in this directory,
21:57tool I'm talking about, not software. NGINX is a server, not that one. I'm talking about the tool.
22:03For example, lohop is one tool. And then ping is one tool. If you can say wget is one tool,
22:11I think, let us check wget is there or not. Yes, see this, wget is one tool, which is an tool,
22:18who am I is one tool, who is one tool. For every tool, there is a files and then directories created
22:25inside this bin directory, meaning whatever created in this bin directory are all called as one command.
22:31So this GNU or GGIP is there. So G, everything is a command. Basically, Gcat is a command. Yes,
22:39is a command. So whatever are there in this bin directory are called the commands. So user useful
22:49are regularly used commands are there in this bin directory. Okay. So bin directory is used to have
22:58all the commands that we regularly use. Bin directory, bin directory is having the commands used by,
23:12used by, used by all the users. So used by all the users, irrespective of, irrespective of root user,
23:32or non-root user, the commands that are available in the bin directory can be accessed by all the users,
23:48whoever the user it is, john can access, ubuntu can access, root can access, all the users can access the
23:55files is bin directory. Then let us go to the next directory called SBIN. What is the difference
24:04between the command and the service? Okay, command, command can be run as a service. Command is used to
24:14command is an action. Basically, for example, we want to use w get w get http colon, let's see,
24:23just let me check curl is there. Yes, curl is here if you can see. So this is the command. So curl,
24:36curl is the command, for example, http colon slash slash localhosts are not Google.com.
24:45See, now we got the Google page. So this is a command. Service meaning it is an application. So command is a tool
24:56tool just to execute something or just to get something. But service is an application.
25:26command is an application. So this is a command.
25:38So this is a command.
25:40So this is a command.
25:46okay now so the command or service can be run with the command is service is
26:00five and there is another I'm at below so we lost you oh just a moment I mean
26:10edible now yes yes yeah okay five five five so what I'm saying is this what I'm saying is service
26:23making a particular application or software as a continuously runnable application whereas command
26:31is used to execute that application but not as a continuous service but not as a continuous
26:37application the good question command command versus service command versus service command is a
26:49utility or tool which is used to download the software or run the software
27:07okay service is a utility service is a utility not utility even service is a basically it is not
27:21utility so if it is a utility we should have to see it's not utility let me just go and see here no
27:29definitely it is not utility so yes he cheers to see yes it is there is no utility star is he or no so
27:43service is not a utility actually service is a process service is a process which makes service is a process
27:53service which makes the application started as a continuously running application meaning during the system
28:13system system system system system system system system system system system system system system don't work
28:25citizen you can start suddenly hear voices again breaking sir
28:26get one moment
28:43Am I audible, guys? Is it, is it, is it audible now? Yes, sir. A bit better than, sir.
29:00Okay. So service is a process, which makes the application started as a continuously
29:06running application, meaning during the system bootstrap, the application will start during
29:12the system bootstrap, the application will start and, and made that application as a continuously
29:24runnable, made that application as a continuously runnable. So that is the difference between
29:31command and then run command and then service command is just to start the application or
29:36software, but that software will be continuously run in the background and automatically start
29:42when the machine start, automatically stop when the machine stop, will be taken care
29:47by this service. Service is making a software as a continuously runnable component. Okay.
29:54So that is the difference between the command and then service. Next, there is one more directory
29:58called SBIN. So this SBIN means for, this SBIN means for system, sorry, super admin system
30:12or file system. So use this SBIN mean for super admin binary, sorry, bin we discussed, right?
30:21And then SBIN. So if we discuss the bin, then we need to discuss one more also. That is USR directory,
30:28USR directory, UNIX, UNIX shared resource directory. So USR meaning UNIX shared resource directory.
30:44So this directory. So this USR directory is a soft link directory of the slash bin directory. So if you can see here,
31:10it is a shared directory, it is a shared directory, it is a shared directory. Fine. So that is,
31:17about the USR shared directory for all the users. And it is a shared directory. So that is about the USR
31:41shared directory for all the users, for all the users, shared directory for all the users,
31:49no matter root or non-root, no matter root or non-root, it is a shared directory, no
31:59matter whether it is a root user or non-root user, all can access this USR directory.
32:05And there is a SB, SB meaning super admin, super admin, bin meaning, sorry, not super admin,
32:21system binaries, system binaries.
32:24That means what, you know, the only, only super admin, super admin permissions users
32:35access the commands inside this slash SBIN.
32:43So that means what SBIN have the commands, sorry, let me start it.
32:52My bad, I just stopped it.
32:56So sudo-i, let us go to the directory called SBIN and LS-L series.
33:04This SBIN also having the commands, has been also having the commands.
33:10But these commands are not executable by all the users, only the root user or any user who
33:18have the super admin permissions can only be execute this, can only be execute this commands.
33:25So the commands available in the slash SBIN, the only super admin permission users access
33:32the commands inside this slash SBIN.
33:35Right?
33:36So slash SBIN have a symbol link.
33:42That means symbolic link, symbolic link to slash USR slash SBIN directory, SBIN directory.
33:53That means, that means all the, all the UNIX, all the UNIX, UNIX, UNIX share, all the UNIX
34:07shared resource, all the UNIX shared resource users who have the admin rights, who have the
34:19super admin rights, who have the super admin rights, can only be access the commands inside
34:30this directory, inside this directory.
34:35Again, again about the symbolic link, I'll explain because there is a, a interesting topic that
34:42is, a soft link, soft link, interesting topic, soft link versus odd link, I'll explain, soft
34:56link versus odd link concept.
34:59I'll explain it.
35:00Okay.
35:01Yes.
35:02In the ETC directory, so suppose my answer, my question is, suppose, uh, I install one zoom
35:12application in the Linux machine.
35:13Okay.
35:14So the, uh, configuration related to the zone of zoom application, the configuration file
35:19will save in the dot ETC directory or, uh, correct, correct, dot ETC directory.
35:26So when we install anything, for example, if we can see, just real time example, uh, just
35:33engine X, I installed, engine X, I installed, right.
35:36In the next meeting, a web server, reverse proxy web server.
35:40So that engine X went to, to ETC, LSF and L, you can see here the engine X, NGINX.
35:57Yes.
35:58Did you see this engine X, engine X is here, but when we go inside the engine X, LSF and L,
36:10now there is a engine X configurations are here.
36:13Okay.
36:14Okay.
36:15Now let us go to one more directory.
36:18That is, uh, CD space, USR, LSF and L and CD space, CD space, share LSF and L. And, uh,
36:33if you can see here, here also we have the engine X, correct.
36:42So let us go now inside the engine X, LSF and L. Now this is having the HTML and then modules.
36:53Again, modules are symbolically linked to lib directory and in the next modules and then
36:59modules available.
37:00So let's go inside the HTML, LSF and L and cat index.html.
37:08Yes.
37:09Here is the engine X index.html file.
37:12So what did you understand from this one?
37:15All the engine X files are maintaining at the HTML directory of the engine X software or server,
37:24but, but the engine X related configuration files are in the ETC directory.
37:31So whatever the server will download, server will have a lot of files.
37:43So those files are inside the HTML or engine X directory, but it's a configuration files
37:49are there inside the ETC directory.
37:52So this is called symbolic links and then hard links.
37:55So later on time, I will explain the symbolic links and then hard links concept got it up.
38:02Yes, sir.
38:03So when we install any application, so that time, uh, different, different type of, I mean,
38:08not configuration means user manual and other stuff also in that application is there, sir.
38:14So that stuff, uh, where, uh, is available in the configuration meaning.
38:20Okay.
38:21So maybe this is a nice question.
38:26So configuration meaning here, if you can see the, the server specific manual, manual,
38:34or read me or any other files will be here only, but the server configuration files will
38:42be, for example, server need to be run with the, uh, some port number 8080 is the default
38:48port number of this engine X.
38:50So let me go to slash ETC slash NGINX L S I F N L. And then here in the engine X, if you
38:59can see, there is one directory CONF D and in the directory, if you can see, uh, no file,
39:09just let me come back, uh, engine X dot CONF.
39:14So there is a file called engine X dot CONF C. Here it is a configuration file.
39:20Like what is the host?
39:22What is the port number where we can configure all these things?
39:27Configuration things it is HTTP.
39:30So the configuration things are there in the ETC, but the actual physical files are the,
39:35any other, uh, uh, soft, uh, engine X or specific files.
39:39Those will be inside the, uh, slash us or slash share directory, but see this server is running
39:46on the pitch port.
39:48If you want to enable a particular port number.
39:50So that port details and all it is, it is showing here.
39:55Make sense, sir.
39:56Yes, sir.
39:57Yes.
39:58Okay.
39:59Okay.
40:00Okay.
40:01Okay.
40:02Folks.
40:03I will take little extra class tomorrow, but, uh, right now I need to jump to one meeting.
40:07People are chasing me, uh, because yesterday and day before yesterday, my laptop was crashed.
40:12Right.
40:13So completely I was not on the work.
40:15So again, I am back today.
40:17So people are started chasing me.
40:19So, uh, sorry for the shorter session.
40:21Uh, but tomorrow let us, I will take a little longer session.
40:25Okay.
40:26So tomorrow, Saturday, right?
40:27So you were, you were, sir, will the class be at the same time, same time, same time, but
40:34little extend, little stretch, half an hour, more, half an hour, more later stretch, complete
40:43this file system and then directory structure.
40:45Okay.
40:46Yeah.
40:47Thank you guys.
40:48So we will send our notes into our classroom and then tomorrow 7 PM to 8 30, I will take
40:54and, uh, the 8 PM session, I will start at 8 30 and then we'll take a little longer.
40:58Okay.
40:59Thank you so much.
41:00I'm stopping.
41:01Yeah.
41:02There is a request.
41:03Please, uh, upload this video, sir, in the night only, uh, because, uh, actually, actually
41:12such in this, there is a great team for us to upload these videos.
41:17So those team will be live at most by the 8 PM, the office, they will leave by the 8 PM.
41:22So again, in the morning, 10 AM, they will come.
41:25So as soon as they will come, they will, they are starting uploading the videos.
41:28That is the reason it is coming to you in the next, uh, day.
41:32Um, uh, got my point, right?
41:34For the faculties, the videos uploading option is not there.
41:39Got it.
41:40That is, we have to go to office in the morning.
41:43If they will upload in the night, then it will be good for us to study in the night.
41:47Understood.
41:48Yes.
41:49That is good idea.
41:50So we will, we are not able to see the, yes, uh, that is good idea.
41:56Possibly.
41:57I will check.
41:58I will talk to management once if possible.
41:59Okay.
42:01Yeah.
42:02Thank you so much, folks.
42:03I'm leaving the session.
42:04Thanks.
42:05Yeah.
42:06Yeah.
42:07Thank you so much folks.
42:08I'm leaving the session.
42:09Thanks.
42:10Thanks.
42:11Thanks.
42:12Thanks.
42:13Thanks.
42:14Thanks.
42:15Thanks.
42:16Thanks.
42:17Thanks.
42:18Thanks.