Day-6 | Linux & Shell Scripting | Complete Shell Scripting Playlist| #aws #azure | #devops

00:37:44
https://www.youtube.com/watch?v=9jw9F6mcQDo

الملخص

TLDRDans cette vidéo, Abhishek présente les bases du système d'exploitation Linux et du shell scripting dans le cadre d'un cours DevOps gratuit. Il explique le rôle d'un système d'exploitation comme intermédiaire entre le matériel et les logiciels, et pourquoi Linux est largement utilisé dans les environnements de production. Il aborde l'architecture de Linux, y compris le noyau et les bibliothèques système, et introduit des commandes de base du shell pour naviguer dans le système de fichiers, créer et modifier des fichiers, et vérifier l'utilisation des ressources système. La vidéo se termine par une invitation à explorer davantage les commandes shell et à se préparer pour un projet DevOps en temps réel.

الوجبات الجاهزة

  • 💻 Comprendre le rôle d'un système d'exploitation.
  • 🔑 Linux est un système d'exploitation open source.
  • ⚙️ Le noyau est le cœur de Linux.
  • 📂 Utiliser des commandes shell pour naviguer dans le système de fichiers.
  • ✍️ Créer et modifier des fichiers avec des commandes shell.
  • 📊 Vérifier l'utilisation des ressources système avec des commandes.
  • 🚀 Linux est préféré pour sa rapidité et sa sécurité.
  • 📚 Explorer les commandes shell pour une meilleure gestion des systèmes.
  • 🔄 Les commandes sont communes à différentes distributions Linux.
  • 🎓 Se préparer pour un projet DevOps en temps réel.

الجدول الزمني

  • 00:00:00 - 00:05:00

    Introduction à la vidéo sur le système d'exploitation Linux et les bases du shell scripting, avec une recommandation de visionner les vidéos précédentes sur le cours DevOps.

  • 00:05:00 - 00:10:00

    Définition d'un système d'exploitation comme un pont entre le matériel et les logiciels, illustrée par l'exemple d'un ordinateur portable ou d'un serveur.

  • 00:10:00 - 00:15:00

    Importance de Linux en tant que système d'exploitation populaire, en raison de sa gratuité, de sa sécurité et de sa rapidité par rapport à Windows.

  • 00:15:00 - 00:20:00

    Présentation de l'architecture de Linux, en mettant l'accent sur le noyau, les bibliothèques système et les processus utilisateurs, sans entrer dans des détails complexes.

  • 00:20:00 - 00:25:00

    Résumé des concepts clés de l'architecture Linux, y compris la gestion des périphériques, de la mémoire et des processus par le noyau.

  • 00:25:00 - 00:30:00

    Introduction au shell scripting comme moyen de communication avec le système d'exploitation Linux, en soulignant l'importance des commandes shell dans un environnement sans interface graphique.

  • 00:30:00 - 00:37:44

    Démonstration de commandes de base du shell, y compris la navigation dans les répertoires, la création et la gestion de fichiers, ainsi que des commandes pour surveiller les performances du système.

اعرض المزيد

الخريطة الذهنية

فيديو أسئلة وأجوبة

  • Qu'est-ce qu'un système d'exploitation ?

    Un système d'exploitation est un logiciel qui agit comme un pont entre le matériel et les logiciels, permettant la communication entre eux.

  • Pourquoi Linux est-il populaire ?

    Linux est populaire car il est gratuit, sécurisé et rapide, ce qui en fait un choix privilégié pour les systèmes de production.

  • Quels sont les composants principaux de Linux ?

    Les composants principaux de Linux incluent le noyau, les bibliothèques système, les compilateurs et les processus utilisateurs.

  • Comment créer un fichier dans Linux ?

    Pour créer un fichier dans Linux, vous pouvez utiliser la commande 'touch nom_du_fichier'.

  • Comment naviguer dans les répertoires sous Linux ?

    Utilisez la commande 'cd' pour changer de répertoire et 'pwd' pour afficher le répertoire de travail actuel.

  • Quelles commandes sont utilisées pour vérifier l'utilisation des ressources système ?

    Utilisez 'free' pour la mémoire, 'nproc' pour le nombre de CPU, et 'df' pour l'espace disque.

  • Comment modifier un fichier dans Linux ?

    Utilisez la commande 'vi nom_du_fichier' pour ouvrir un fichier dans l'éditeur vi et y apporter des modifications.

  • Qu'est-ce que le shell scripting ?

    Le shell scripting est un moyen d'interagir avec le système d'exploitation via des commandes en ligne de commande.

  • Pourquoi utiliser des commandes shell au lieu d'une interface graphique ?

    Les serveurs de production n'ont souvent pas d'interface graphique, donc les commandes shell sont nécessaires pour gérer le système.

  • Quels sont les avantages de Linux par rapport à Windows ?

    Linux est open source, généralement plus sécurisé, et souvent plus performant pour les applications serveur.

عرض المزيد من ملخصات الفيديو

احصل على وصول فوري إلى ملخصات فيديو YouTube المجانية المدعومة بالذكاء الاصطناعي!
الترجمات
en
التمرير التلقائي:
  • 00:00:01
    hello everyone my name is Abhishek and
  • 00:00:05
    welcome back to my channel so today
  • 00:00:07
    we'll be talking about Linux operating
  • 00:00:09
    system and basics of shell scripting
  • 00:00:11
    so if you haven't watched our previous
  • 00:00:13
    videos on devops so just to let you know
  • 00:00:17
    that we are doing a complete free devops
  • 00:00:20
    course it will be a fortify uh to 40 to
  • 00:00:23
    45 days of devops course where we'll be
  • 00:00:25
    talking about most of the devops things
  • 00:00:28
    and our aim with this devops course is
  • 00:00:30
    to make a person with zero devops
  • 00:00:33
    knowledge heroin devops
  • 00:00:34
    so if you haven't watched those videos
  • 00:00:36
    uh there is a playlist on my channel
  • 00:00:38
    called devops Zero to Hero uh I would
  • 00:00:39
    highly recommend you to watch the
  • 00:00:41
    previous videos before jumping on to
  • 00:00:42
    this video
  • 00:00:44
    perfect so if you move to the agenda for
  • 00:00:46
    the day that is Linux operating system
  • 00:00:47
    and the basics of shell scripting
  • 00:00:49
    firstly
  • 00:00:52
    what is a operating system right before
  • 00:00:54
    you understand the concept of Linux
  • 00:00:55
    operating system you should know the
  • 00:00:57
    basics of operating system or what is an
  • 00:01:00
    operating system
  • 00:01:01
    so just try to understand with a
  • 00:01:05
    practical example let's say you have a
  • 00:01:07
    laptop or you purchased a Raspberry Pi
  • 00:01:10
    or any other server okay so what are the
  • 00:01:12
    key components of any uh server right
  • 00:01:14
    the key components is that you are
  • 00:01:17
    purchasing Hardware
  • 00:01:18
    I understand you get a lot of fancy
  • 00:01:24
    things like your display you get uh
  • 00:01:26
    other things mouse keyboard and all the
  • 00:01:28
    other things that you are purchasing but
  • 00:01:30
    essentially you are purchasing Hardware
  • 00:01:33
    that is nothing but your
  • 00:01:35
    CPU
  • 00:01:37
    Ram
  • 00:01:40
    and IO right or hard disk
  • 00:01:42
    so you are purchasing these things and
  • 00:01:44
    what you do once you purchase the
  • 00:01:46
    hardware is you try to use some
  • 00:01:48
    softwares on top of your on top of your
  • 00:01:50
    Hardware okay let's say you purchase the
  • 00:01:52
    laptop what would be your interest your
  • 00:01:54
    interest is to
  • 00:01:56
    you make use of
  • 00:01:58
    some softwares whether you are using
  • 00:02:00
    this for gaming
  • 00:02:02
    okay or let's say you are a devops
  • 00:02:04
    engineer so you must be using some
  • 00:02:07
    applications like Jenkins
  • 00:02:10
    or you must be using some office related
  • 00:02:12
    stuff or as a student you must uh you
  • 00:02:14
    might want to uh learn something like
  • 00:02:17
    Java or python so you are essentially
  • 00:02:19
    running some softwares right this is
  • 00:02:21
    what you are doing so you have a
  • 00:02:24
    software application that you want to
  • 00:02:25
    run against the hardware that you
  • 00:02:28
    purchased okay
  • 00:02:30
    but you can directly do it okay let's
  • 00:02:33
    say as a user you install Jenkins and
  • 00:02:34
    you want to execute your Jenkins
  • 00:02:37
    pipeline your Jenkins can directly not I
  • 00:02:39
    mean it cannot directly talk to you the
  • 00:02:42
    CPU or Ram or the io
  • 00:02:44
    there has to be a medium between your
  • 00:02:45
    software and Hardware that is nothing
  • 00:02:48
    but your operating system
  • 00:02:50
    okay so what is the operating system
  • 00:02:53
    operating system is something that acts
  • 00:02:55
    as a bridge between your software and
  • 00:02:58
    Hardware so it drives as a medium for
  • 00:02:59
    the communication between your software
  • 00:03:02
    and Hardware that is the definition of
  • 00:03:06
    your operating system okay
  • 00:03:06
    so whether it is a Linux operating
  • 00:03:10
    system whether it is a Windows operating
  • 00:03:11
    system or anything
  • 00:03:13
    so today when you purchase your laptop
  • 00:03:15
    let's say you purchase the Dell laptop
  • 00:03:17
    okay
  • 00:03:20
    so what Del does is it sells you the
  • 00:03:23
    hardware okay and on top of the hardware
  • 00:03:26
    what is it doing it is installing a
  • 00:03:28
    operating system and it is giving it to
  • 00:03:30
    you so
  • 00:03:32
    you purchase the Dell laptop which comes
  • 00:03:36
    with the CPU Ram IO and along with that
  • 00:03:38
    what Dell is doing is it is installing
  • 00:03:41
    Windows operating system
  • 00:03:44
    okay so that is the reason why you are
  • 00:03:47
    able to directly deploy any application
  • 00:03:49
    or install any application and your
  • 00:03:52
    application is able to process the
  • 00:03:53
    requests that are coming from the user
  • 00:03:56
    that is you
  • 00:03:57
    so as a user what you are trying to do
  • 00:04:02
    is you are installing an application and
  • 00:04:04
    your application is talking to the
  • 00:04:06
    operating system and your operating
  • 00:04:08
    system is talking to your hardware and
  • 00:04:10
    vice versa right your Hardware is again
  • 00:04:12
    talking to your operating system your
  • 00:04:13
    operating system gives back the
  • 00:04:14
    information to the application and your
  • 00:04:16
    application gives back the information
  • 00:04:17
    to you
  • 00:04:19
    so this is the process so the
  • 00:04:21
    communication happens in this way
  • 00:04:23
    firstly as a user you are installing
  • 00:04:26
    some application on your laptop and your
  • 00:04:28
    laptop or your server okay just for your
  • 00:04:31
    easy understanding I'm mentioning it as
  • 00:04:33
    a laptop but always understand it as a
  • 00:04:35
    server so as a user you installed
  • 00:04:36
    application or software on your server
  • 00:04:40
    and your server is giving the response
  • 00:04:42
    or sorry uh giving the request to your
  • 00:04:44
    operating system and your operating
  • 00:04:46
    system is sending the request to your
  • 00:04:49
    hardware for CPU usage or RAM usage or
  • 00:04:51
    anything again your operating system is
  • 00:04:53
    giving the response back to your sorry
  • 00:04:55
    your Hardware is giving the response
  • 00:04:57
    back to your operating system from
  • 00:04:58
    operating system it goes to your
  • 00:05:00
    software or your application and finally
  • 00:05:03
    it reaches the user so this is the life
  • 00:05:04
    cycle
  • 00:05:06
    and this is where your operating system
  • 00:05:07
    plays the key role you must have your
  • 00:05:09
    applications ready you must have your
  • 00:05:11
    Hardware ready but without operating
  • 00:05:13
    system nothing happens so that's why
  • 00:05:15
    it's a core earlier it's a heart of
  • 00:05:17
    everything
  • 00:05:19
    again depending upon your comfort
  • 00:05:21
    whether you're using a apple like let's
  • 00:05:23
    put let's say that you purchased a Apple
  • 00:05:25
    laptop or your Mac laptop so it comes
  • 00:05:27
    with your Mac operating system if you
  • 00:05:29
    purchase Dell laptop by default most of
  • 00:05:31
    the times it comes with a Windows
  • 00:05:33
    operating system uh you are purchasing
  • 00:05:35
    ThinkPad or something the Linux version
  • 00:05:37
    of it so it comes with a Linux operating
  • 00:05:39
    system so depending upon the user or
  • 00:05:41
    depending upon the vendor they come with
  • 00:05:44
    your own operating systems but why Linux
  • 00:05:46
    is very popular
  • 00:05:49
    but uh if you just think for a minute as
  • 00:05:51
    a student or as a kid most of the times
  • 00:05:53
    you are familiar with Windows operating
  • 00:05:55
    system but once you move to your
  • 00:05:58
    software Journey you see that Linux is
  • 00:06:00
    used everywhere whether uh in your
  • 00:06:02
    production system staging developer
  • 00:06:05
    environments everything is deployed all
  • 00:06:06
    the applications are deployed and tested
  • 00:06:08
    on your Linux operating system I agree
  • 00:06:11
    that there are windows as well like but
  • 00:06:15
    90 to 80 of the times you test on Linux
  • 00:06:17
    operating system and you also Deploy on
  • 00:06:19
    Linux operating system
  • 00:06:21
    let's try to understand why
  • 00:06:23
    okay
  • 00:06:27
    so there are very good reasons why Linux
  • 00:06:29
    is very popular firstly first and
  • 00:06:32
    foremost reason is Linux is a free
  • 00:06:35
    operating system okay unlike Windows
  • 00:06:36
    Windows is a proprietary operating
  • 00:06:39
    system you must know that uh it's
  • 00:06:40
    appropriating appropriate operating
  • 00:06:42
    system provided by Windows right sorry
  • 00:06:46
    Microsoft whereas Linux is a freeware or
  • 00:06:48
    it's a open source software
  • 00:06:53
    so today uh anybody can create Unix like
  • 00:06:54
    operating systems that is Linux like
  • 00:06:56
    operating systems
  • 00:06:59
    and again uh one of the key reasons is
  • 00:07:03
    Linux is very secure
  • 00:07:04
    for example you uh have a Linux laptop
  • 00:07:09
    and you have a Windows laptop you don't
  • 00:07:11
    even have to install any kind of
  • 00:07:12
    antiviruses
  • 00:07:15
    for on your Windows laptop you must have
  • 00:07:18
    installed my cafe or any other things
  • 00:07:18
    like
  • 00:07:21
    antivirus softwares right anti-malware
  • 00:07:24
    softwares but whereas you win Linux you
  • 00:07:26
    don't have to install any kind of
  • 00:07:28
    antivirus It Is by default very very
  • 00:07:30
    secure I'm not saying that it is 100
  • 00:07:32
    secure but most of the times your Linux
  • 00:07:35
    operating system is a secure software
  • 00:07:38
    and it contain a lot of distributions
  • 00:07:41
    like you know uh today you have uh many
  • 00:07:43
    distributions like uh Centos you have
  • 00:07:46
    distributions like Ubuntu you have
  • 00:07:48
    distributions like uh red hat and lot of
  • 00:07:50
    other things right but if you talk about
  • 00:07:52
    the free distributions you have popular
  • 00:07:54
    ones like Ubuntu sentos uh people also
  • 00:07:57
    use Alpine Debian so different kinds of
  • 00:07:58
    distributions are provided so you can
  • 00:08:00
    depending upon your comfort you can use
  • 00:08:04
    any uh distributions and finally one of
  • 00:08:05
    the most important things for any
  • 00:08:08
    application to run on your production
  • 00:08:11
    systems is it has to be very fast
  • 00:08:14
    if your operating system is slow because
  • 00:08:16
    your operating system is hard of
  • 00:08:18
    everything like whenever a user is
  • 00:08:21
    trying to send a request let's say you
  • 00:08:23
    are trying to access amazon.com you are
  • 00:08:25
    trying to access Netflix so if your
  • 00:08:27
    operating system itself is very slow
  • 00:08:30
    then it doesn't matter right whether
  • 00:08:31
    your application you might have used
  • 00:08:34
    Advanced concept like multi-threading or
  • 00:08:35
    any other things in your application but
  • 00:08:37
    if your operating system is not capable
  • 00:08:41
    of taking this requests then it's of no
  • 00:08:43
    use so that's why people always prefer
  • 00:08:45
    fast running operating systems or the
  • 00:08:48
    operating systems which are not crashed
  • 00:08:49
    or which are not slow in their
  • 00:08:51
    production systems that's one of the key
  • 00:08:54
    reasons why Linux is used as a operating
  • 00:08:57
    system in production systems so it is
  • 00:08:59
    very fast it is very secure and it is
  • 00:09:01
    also free in nature so what are the
  • 00:09:03
    things that you want right when
  • 00:09:05
    something comes for free when something
  • 00:09:07
    is very secure and fast then
  • 00:09:10
    that's a bliss right that's a blessing
  • 00:09:12
    so that's why people use Linux operating
  • 00:09:14
    system over windows
  • 00:09:18
    okay so if somebody asks you what is the
  • 00:09:21
    difference between Linux and windows so
  • 00:09:23
    this is something that you answer or why
  • 00:09:25
    Linux is used Linux is most widely used
  • 00:09:27
    when compared to other operating system
  • 00:09:30
    these are some of the reasons
  • 00:09:33
    now let's try to take a couple of
  • 00:09:35
    minutes to understand the architecture
  • 00:09:38
    of it okay so I'll not bore you or I'll
  • 00:09:41
    not go into the details of the Linux
  • 00:09:44
    Operator Operator architecture because
  • 00:09:48
    it's very complicated and it's not even
  • 00:09:51
    for me to explain the entire Linux
  • 00:09:54
    operating system even if I take one two
  • 00:09:56
    hours it's not easy to understand or
  • 00:09:58
    easy to explain so that's why what I'll
  • 00:10:00
    do is I'll try to keep it as crisp as
  • 00:10:02
    possible or as simple as possible
  • 00:10:04
    so let's say
  • 00:10:08
    let's try to break break it down to make
  • 00:10:09
    it easy okay
  • 00:10:11
    so let's say this is your operating
  • 00:10:12
    system
  • 00:10:14
    OS
  • 00:10:15
    so firstly the heart of your Linux
  • 00:10:21
    operating system is your kernel
  • 00:10:24
    okay and on top of your kernel you have
  • 00:10:26
    something called as your system
  • 00:10:29
    libraries
  • 00:10:29
    don't worry I'll explain them in detail
  • 00:10:35
    and on top of it you have some of the
  • 00:10:42
    things like you have your compilers
  • 00:10:43
    you have your uh user processes
  • 00:10:49
    and you have some
  • 00:10:53
    system related softwares
  • 00:10:57
    even for your windows you have some
  • 00:11:01
    system related softwares right so
  • 00:11:03
    similarly even for Linux you have some
  • 00:11:06
    system related software so whenever you
  • 00:11:08
    are installing Linux let's say you
  • 00:11:09
    install Linux on your laptop so these
  • 00:11:11
    are the things that you are installing
  • 00:11:13
    okay so because these are the
  • 00:11:16
    fundamentals of your operating system
  • 00:11:18
    so firstly you need to understand what
  • 00:11:21
    is a kernel so kernel is heart of your
  • 00:11:24
    Linux operating system why because the
  • 00:11:27
    responsibility of Kernel is to establish
  • 00:11:29
    a communication between your
  • 00:11:32
    hardware and your software like I
  • 00:11:34
    mentioned so there is a user
  • 00:11:37
    okay the user is installing an
  • 00:11:38
    application
  • 00:11:41
    which is a software and then there is a
  • 00:11:44
    hardware that is nothing but your CPU
  • 00:11:47
    Ram IO so
  • 00:11:49
    operating system is responsible for
  • 00:11:51
    basically
  • 00:11:53
    cascading your request that is from your
  • 00:11:56
    software to Hardware so who takes the
  • 00:11:57
    responsibility like there should be a
  • 00:11:58
    component in your operating system which
  • 00:12:00
    is taking this responsibility right so
  • 00:12:02
    that component is nothing but your
  • 00:12:04
    kernel so that's why kernel is again
  • 00:12:07
    here heart of your operating system so
  • 00:12:08
    there are some primary responsibilities
  • 00:12:10
    of Kernel that you have to understand
  • 00:12:13
    that is for CPU it does okay let's try
  • 00:12:15
    to put it in this way there are four
  • 00:12:18
    important aspects of your kernel even if
  • 00:12:20
    somebody is asking in an interview what
  • 00:12:22
    is a kernel in an operating system you
  • 00:12:24
    can just say that kernel has four
  • 00:12:27
    primary responsibilities it's a heart of
  • 00:12:30
    any operating system which does
  • 00:12:32
    device management
  • 00:12:35
    okay kernel is responsible for memory
  • 00:12:36
    management
  • 00:12:38
    then it is responsible for your Process
  • 00:12:42
    Management and finally it is responsible
  • 00:12:45
    for handling your system calls
  • 00:12:48
    okay for any operating system these are
  • 00:12:52
    the key aspects and that are handled by
  • 00:12:54
    your kernel one is device management
  • 00:12:56
    memory management process management and
  • 00:12:59
    handling the system related calls after
  • 00:13:02
    that you have system libraries right uh
  • 00:13:05
    like as I mentioned you can also take
  • 00:13:07
    example of Kernel modules and other
  • 00:13:08
    things but let's try to keep it very
  • 00:13:10
    simple so after the kernel you have
  • 00:13:12
    system libraries and what you have in
  • 00:13:15
    system libraries so system libraries are
  • 00:13:17
    basically responsible for performing a
  • 00:13:18
    task let's say user is trying to perform
  • 00:13:20
    a task so it comes from your system
  • 00:13:21
    libraries and then it goes to your
  • 00:13:23
    kernel
  • 00:13:25
    so each operating system has their own
  • 00:13:27
    uh supported kind of these system
  • 00:13:29
    libraries so let's say you are
  • 00:13:32
    installing uh uh you know a Debian
  • 00:13:35
    distribution or you are installing a uh
  • 00:13:36
    a different kind of distribution like
  • 00:13:38
    your Cent Os or federal your system
  • 00:13:40
    libraries might differ slightly but
  • 00:13:42
    again most of the times the concept of
  • 00:13:46
    the system libraries is the same
  • 00:13:46
    if you want to take a uh example of a
  • 00:13:50
    system Library you can try to understand
  • 00:13:53
    like you have your Lipsy right so lip C
  • 00:13:55
    is one of the system Library just for
  • 00:13:58
    your understanding so uh there are other
  • 00:14:00
    system libraries like the graphical gnu
  • 00:14:02
    or the other things but
  • 00:14:05
    okay after that you have the final stage
  • 00:14:07
    where you have compilers user process
  • 00:14:09
    and system software so compilers coming
  • 00:14:11
    to the compiler so uh like let's say you
  • 00:14:14
    want to run Java application or Java or
  • 00:14:16
    you want to run python or you want to
  • 00:14:18
    run any other uh kind of your software
  • 00:14:21
    so your operating system has to compile
  • 00:14:23
    this code right your application or
  • 00:14:25
    these kind of things so for that reason
  • 00:14:27
    you have compilers user processes and
  • 00:14:29
    some kind of system softwares even if
  • 00:14:31
    you are using a Windows laptop you are
  • 00:14:32
    aware of your system softwares that you
  • 00:14:33
    have
  • 00:14:36
    so these are the fundamentals of any
  • 00:14:38
    operating system like uh definitely I'm
  • 00:14:39
    not going to the details of each of
  • 00:14:41
    these things because even for me to
  • 00:14:43
    explain like even when I'm trying to
  • 00:14:45
    explain these things I'm trying to keep
  • 00:14:46
    it as crisp as possible that's why I'm
  • 00:14:48
    taking some time while explaining it
  • 00:14:51
    because I don't want to complicate these
  • 00:14:52
    things and explaining these things in
  • 00:14:55
    like 30 to 40 minutes of session is
  • 00:14:57
    technically not possible but
  • 00:14:59
    you have to understand the breadth of
  • 00:15:02
    the concepts like even in this 40 to 45
  • 00:15:05
    days of devops Journey if we spend two
  • 00:15:07
    to three days in just understanding the
  • 00:15:09
    kernel or if you spend two to three days
  • 00:15:10
    in understanding the operating system
  • 00:15:12
    that will be of no use
  • 00:15:14
    you have to understand the breadth of
  • 00:15:15
    the knowledge of all the different kinds
  • 00:15:17
    of Concepts that are available in devops
  • 00:15:20
    or most widely used in devops and once
  • 00:15:21
    you understand the breadth of it you can
  • 00:15:23
    start giving your interviews and during
  • 00:15:25
    your interviews you can go into the
  • 00:15:27
    depth of each and every tool for example
  • 00:15:28
    if I'm explaining you about the
  • 00:15:30
    configuration management you have to
  • 00:15:31
    understand about configuration
  • 00:15:33
    management but you don't have to spend
  • 00:15:35
    uh 10 days 15 days in just understanding
  • 00:15:37
    different tools that are available in
  • 00:15:38
    configuration management like don't
  • 00:15:40
    learn ansible puppet itself and
  • 00:15:42
    everything just learn one thing start
  • 00:15:43
    with your interviews and then once you
  • 00:15:45
    are comfortable with your devops journey
  • 00:15:47
    then probably you can understand okay
  • 00:15:49
    what is puppet why puppet is different
  • 00:15:51
    from ansible for now just restrict to
  • 00:15:52
    one thing
  • 00:15:54
    so even today I'm just explaining you
  • 00:15:57
    the Core Concepts of operating system
  • 00:15:59
    but not going into the details of Kernel
  • 00:16:00
    not going to the details of system
  • 00:16:02
    libraries because that will be very
  • 00:16:04
    complicating
  • 00:16:05
    now
  • 00:16:07
    so what did we learn till now we
  • 00:16:09
    understood what is a operating system
  • 00:16:14
    after that we try to understand what is
  • 00:16:16
    the definition of an operating system uh
  • 00:16:19
    why operating system is useful basically
  • 00:16:20
    it is useful for establishing a
  • 00:16:22
    communication between your hardware and
  • 00:16:24
    your software whenever a user sends a
  • 00:16:27
    request it has to go from your software
  • 00:16:29
    to your operating system to your
  • 00:16:31
    Hardware finally the response is also
  • 00:16:33
    received back in the same way and then
  • 00:16:35
    we try to see why Linux is a very
  • 00:16:37
    popular operating system and why windows
  • 00:16:39
    or other operating systems are not used
  • 00:16:41
    in your production systems because of
  • 00:16:44
    the free secure and the fast nature of
  • 00:16:46
    your Linux operating system
  • 00:16:48
    and finally we also try to understand
  • 00:16:51
    the architecture of your Linux operating
  • 00:16:54
    system so now let's move ahead and try
  • 00:16:56
    to understand the fundamentals of your
  • 00:17:00
    shell scripting okay
  • 00:17:02
    so today we will not go into the details
  • 00:17:04
    of shell scripting but we will only take
  • 00:17:05
    a look at the fundamentals of shell
  • 00:17:08
    scripting
  • 00:17:10
    so because you understood what is Linux
  • 00:17:15
    operating system
  • 00:17:17
    why you have to use something like a
  • 00:17:18
    shell scripting
  • 00:17:21
    basically what is shell shell is a way
  • 00:17:23
    that you talk to your operating system
  • 00:17:26
    let's say you want to create a file
  • 00:17:27
    what do you do in your windows so
  • 00:17:32
    Windows has a very good graphical user
  • 00:17:34
    interface but most of the times when you
  • 00:17:35
    are working in your software
  • 00:17:39
    organizations you don't have a graphical
  • 00:17:41
    user interface for your servers so if
  • 00:17:43
    you have issue on your production server
  • 00:17:44
    you don't have a graphical user
  • 00:17:46
    interface for you to navigate through
  • 00:17:48
    the folders to understand what is issue
  • 00:17:51
    so you have to do it through some uh
  • 00:17:53
    command line way okay so this command
  • 00:17:56
    line way through which you talk to your
  • 00:17:58
    operating system are nothing but your
  • 00:18:01
    shell commands
  • 00:18:06
    okay so in Linux the way that you talk
  • 00:18:08
    to your Operating System is using your
  • 00:18:10
    shell commands so shell is most of the
  • 00:18:15
    times like 99.9 percent of them your uh
  • 00:18:16
    servers that you're using on your
  • 00:18:18
    production or your Dev or staging
  • 00:18:20
    environments default come with the shell
  • 00:18:22
    environment so you can if you are aware
  • 00:18:24
    of the shell commands you can directly
  • 00:18:26
    talk to your Linux operating system and
  • 00:18:28
    these commands are common across
  • 00:18:29
    different distributions whether you are
  • 00:18:33
    using uh Centos whether you are using uh
  • 00:18:35
    fed Arrow or whether you are using a
  • 00:18:38
    Debian or Ubuntu so these uh shell
  • 00:18:40
    commands that we are going to talk or
  • 00:18:42
    which we use as a devops engineer are
  • 00:18:44
    mostly common across different
  • 00:18:46
    distributions and different uh yeah just
  • 00:18:47
    the different distributions not
  • 00:18:49
    operating systems
  • 00:18:51
    so that's why today we'll try to see
  • 00:18:53
    what are some of the popular shell
  • 00:18:56
    commands so again just to give you an
  • 00:18:58
    example if you want to create a file on
  • 00:19:00
    your windows what you would do is you
  • 00:19:01
    would navigate through your graphical
  • 00:19:03
    user interface that is you go to your
  • 00:19:04
    laptop making use of your mouse or
  • 00:19:06
    cursor you navigate through the
  • 00:19:08
    different folders but online Linux
  • 00:19:10
    operating system that's not possible
  • 00:19:12
    because most of the times your graphical
  • 00:19:15
    user interface GUI is not installed
  • 00:19:17
    because it comes with some weight right
  • 00:19:19
    if you want to install graphical user
  • 00:19:22
    interface again your operating system or
  • 00:19:24
    your servers would become heavy so
  • 00:19:26
    that's why on your production systems we
  • 00:19:28
    don't use graphical interface and most
  • 00:19:29
    of the times we make use of the shell
  • 00:19:32
    commands to talk to the
  • 00:19:35
    distribution or to create files or to
  • 00:19:37
    create anything in your operating system
  • 00:19:40
    so let me just stop sharing and in the
  • 00:19:43
    previous class we uh already understood
  • 00:19:45
    how to create a virtual machine on your
  • 00:19:47
    AWS right whether through the command
  • 00:19:50
    line or whether through the AWS CLI we
  • 00:19:52
    already talked how to create This Server
  • 00:19:54
    so now let me make use of one of the
  • 00:19:56
    server that I created in the previous
  • 00:19:58
    class and show you some of the basic
  • 00:20:01
    commands of shell scripting
  • 00:20:04
    so I'll stop sharing here and share my
  • 00:20:06
    screen with the
  • 00:20:09
    stop sharing and let me share my
  • 00:20:12
    terminal so you can use any terminal
  • 00:20:14
    whether you want to use putty like I
  • 00:20:15
    explained in the previous classes
  • 00:20:18
    whether you want to use mobilex term or
  • 00:20:20
    any other thing that's totally fine you
  • 00:20:22
    can use anything
  • 00:20:25
    yep
  • 00:20:29
    so let me share my screen again
  • 00:20:32
    here
  • 00:20:32
    Okay cool so what I've done is I am uh
  • 00:20:39
    for now I'm using a Mac laptop but I've
  • 00:20:41
    installed bash in it by default it comes
  • 00:20:44
    with SH so you can use zsh or you can
  • 00:20:47
    use bash so I've installed bash like
  • 00:20:49
    most of the times recommend bash is one
  • 00:20:52
    of the popular ones and most widely used
  • 00:20:55
    so instead of learning ksh instead of
  • 00:20:58
    learning essay just learn bash and you
  • 00:21:00
    can use this scripting even once you
  • 00:21:02
    start your software journey and even in
  • 00:21:04
    a devops Zero to Hero devops Journey
  • 00:21:06
    we'll be learning about bash only
  • 00:21:10
    so I have like I mentioned I have uh
  • 00:21:12
    this one here
  • 00:21:15
    the
  • 00:21:17
    just give me a second uh for me to pull
  • 00:21:22
    the
  • 00:21:23
    okay I got hold of my IP address of the
  • 00:21:29
    newly created AWS instance in the
  • 00:21:31
    previous class so this is the command
  • 00:21:33
    I'll use to login so if you just want to
  • 00:21:35
    understand one more time so this is the
  • 00:21:37
    key value pair that we just created I
  • 00:21:40
    mean in the previous class and using the
  • 00:21:42
    identity file that is the key value pair
  • 00:21:44
    what we do is we make use of the public
  • 00:21:47
    IP of the ec2 instance to log into the
  • 00:21:51
    instance so we created a Ubuntu related
  • 00:21:54
    image uh in the last class so that's why
  • 00:21:56
    the user that comes by default is
  • 00:21:57
    something that I already know that is
  • 00:21:59
    the Ubuntu so that's why I use the
  • 00:22:02
    command SSH minus I identity file Ubuntu
  • 00:22:05
    at the rate public IP address
  • 00:22:08
    perfect so this is the server it has
  • 00:22:10
    Linux operating system installed that
  • 00:22:11
    that is nothing but your Ubuntu
  • 00:22:14
    distribution so even in Linux operating
  • 00:22:15
    system you have different distributions
  • 00:22:17
    uh most of the times we use Ubuntu or
  • 00:22:19
    Centos
  • 00:22:20
    distributions are nothing but the
  • 00:22:22
    vendors that are providing this Linux
  • 00:22:25
    operating system right so red hat is a
  • 00:22:27
    vendor that provides Linux operating
  • 00:22:30
    system uh using Red Hat uh Centos is one
  • 00:22:32
    fedoro is one Ubuntu Debian different
  • 00:22:34
    vendors provide Linux operating system
  • 00:22:36
    you can make use of anything Ubuntu is
  • 00:22:38
    most widely used
  • 00:22:40
    so what is the command first of all you
  • 00:22:42
    got into this one but you don't know how
  • 00:22:44
    to navigate from one place to another
  • 00:22:46
    place right if it is Windows what you
  • 00:22:47
    would do you directly make use of your
  • 00:22:49
    mouse you would see what are the files
  • 00:22:51
    and folders that are present but on your
  • 00:22:53
    Linux platform if you want to see what
  • 00:22:55
    are the different files and folders that
  • 00:22:57
    are present here the command that you
  • 00:23:00
    make use is LS so by using LS you try to
  • 00:23:02
    understand what are the files and
  • 00:23:05
    folders LS is nothing but list okay so
  • 00:23:07
    using LS command you list the files and
  • 00:23:08
    folders
  • 00:23:11
    but if you see here it is showing the
  • 00:23:13
    files and folders in this particular
  • 00:23:16
    directory right but I want to see the
  • 00:23:17
    files and folders everywhere but for
  • 00:23:19
    that I need to understand where I am
  • 00:23:20
    currently
  • 00:23:22
    again if you are on Windows what you
  • 00:23:23
    would do you would right click and see
  • 00:23:25
    what is your current location but
  • 00:23:27
    everything in Linux has to be done
  • 00:23:29
    through some commands for the for that
  • 00:23:31
    what is the command that you use is PWD
  • 00:23:34
    so PWD stands for present working
  • 00:23:37
    directory so always once you start
  • 00:23:40
    logging into your server firstly make
  • 00:23:42
    use of the PWD command to understand
  • 00:23:44
    what is your present working directory
  • 00:23:47
    so here it says that I am in the slash
  • 00:23:50
    home slash Ubuntu working directory
  • 00:23:53
    now I can change this present working
  • 00:23:57
    directory by using the CD command so
  • 00:23:59
    using CD that is change directory okay
  • 00:24:03
    so again uh always try to compare with
  • 00:24:04
    the operations that you are doing on
  • 00:24:05
    your Windows machine if you are very
  • 00:24:08
    used to just to understand
  • 00:24:09
    how to
  • 00:24:12
    correlate right you know if you are for
  • 00:24:14
    example uh you want to move from uh C
  • 00:24:16
    directory to the D directory in your
  • 00:24:18
    windows what you would do you will make
  • 00:24:20
    use of the cursor and click on the back
  • 00:24:22
    you do back click and then go to the
  • 00:24:25
    directory but in Linux it's not possible
  • 00:24:26
    because there is no graphical user
  • 00:24:28
    interface most of the times so that's
  • 00:24:30
    why firstly you would do PWD to
  • 00:24:32
    understand where you are currently and
  • 00:24:34
    using LS you understand what are the
  • 00:24:36
    files and folders that are available in
  • 00:24:38
    the directory and let's say you want to
  • 00:24:41
    move from slash Ubuntu to bundle
  • 00:24:42
    directory so for that what you will do
  • 00:24:45
    is you will make use of the CD command
  • 00:24:48
    CD can CD stands for change directory CD
  • 00:24:49
    bundle
  • 00:24:52
    and once you do CD bundle again if you
  • 00:24:55
    do PWD you can clearly see that you are
  • 00:24:57
    present working directory has changed so
  • 00:24:59
    you now we are present where working
  • 00:25:01
    directory is slash home slash Ubuntu
  • 00:25:04
    slash bundle okay so just to repeat
  • 00:25:09
    always once you log in to your uh Linux
  • 00:25:10
    software or Linux system sorry Linux
  • 00:25:13
    system what you would do is firstly you
  • 00:25:15
    execute the command called PWD to
  • 00:25:16
    understand what is your present working
  • 00:25:18
    directory and once you understand your
  • 00:25:22
    present working directory you need to
  • 00:25:25
    do the ls command to list the files and
  • 00:25:28
    directories okay so inside this present
  • 00:25:31
    working directory I have few files or
  • 00:25:33
    folders as well
  • 00:25:36
    so for me to understand or to just uh
  • 00:25:38
    see like let's say uh somebody asked you
  • 00:25:40
    what are the files and folders that are
  • 00:25:43
    present in bundle directory so you make
  • 00:25:45
    use of the ls command to list the files
  • 00:25:47
    as well as folders once you list these
  • 00:25:49
    files and folders let's say I want to
  • 00:25:52
    move to a directory called bundle so
  • 00:25:54
    what I'll do is I'll make use of the CD
  • 00:25:56
    command to change the directory okay so
  • 00:25:59
    using CD I'll go to the bundle folder
  • 00:26:02
    which I am currently already in
  • 00:26:05
    or let's say there is a test folder so
  • 00:26:08
    what I can do CD test once doing it
  • 00:26:11
    again if I click on PWD you'll see the
  • 00:26:13
    present working directory has changed if
  • 00:26:16
    you want to go back okay like let's say
  • 00:26:18
    you came here and now you just want to
  • 00:26:20
    go back instead of giving the complete
  • 00:26:21
    path what you can simply do is you can
  • 00:26:25
    say CD space dot dot so what happens
  • 00:26:28
    when you do CD space dot dot is you go
  • 00:26:30
    back to One Directory let's say you want
  • 00:26:32
    to go back to two directories okay so
  • 00:26:36
    what you say is CD dot dot slash dot dot
  • 00:26:39
    by doing that now you are in just the
  • 00:26:41
    home directory and if you want to go to
  • 00:26:43
    two directories more or you know two
  • 00:26:44
    directories in depth what you can do is
  • 00:26:47
    CD
  • 00:26:50
    Ubuntu
  • 00:26:51
    slash bundle okay so this is how you
  • 00:26:56
    move from one directory to another
  • 00:26:58
    director and if you want to do uh with
  • 00:27:00
    multiple like you want to go back to
  • 00:27:01
    multiple directories or go ahead of
  • 00:27:03
    multiple directories you can make use of
  • 00:27:05
    this slash operator
  • 00:27:09
    perfect so just in uh one minute of time
  • 00:27:10
    we learned about three different
  • 00:27:13
    commands that is PWD CD LS so we learned
  • 00:27:15
    about these things right now let's say I
  • 00:27:17
    want to list all the files and folders
  • 00:27:19
    with timestamp who is owner of the file
  • 00:27:22
    uh and other information like is it a
  • 00:27:24
    file or a directory so you can make use
  • 00:27:27
    of this one simple command that is LS
  • 00:27:29
    hyphen LTR
  • 00:27:33
    okay LS minus LTR so what does this LS
  • 00:27:36
    minus LTR does is it provides you uh it
  • 00:27:38
    provides you the information like if it
  • 00:27:40
    is starting with d that means that it is
  • 00:27:42
    a directory if it is not starting with t
  • 00:27:44
    that means that it is a Phi so if you
  • 00:27:46
    see here this is a directory this is a
  • 00:27:48
    directory this is a directory metadata
  • 00:27:50
    is a directory uh like you know manifest
  • 00:27:53
    is a directory bundle is a directory
  • 00:27:56
    and if it doesn't start with the D that
  • 00:27:58
    means that it's a file after that you
  • 00:28:00
    have information of who is the owner of
  • 00:28:02
    the file which group owns this file you
  • 00:28:04
    know uh what is the content like what is
  • 00:28:06
    the size of the contents inside this
  • 00:28:09
    file and after that you also have
  • 00:28:11
    information like you know when is this
  • 00:28:13
    file created the timestamp of it and
  • 00:28:14
    what is the name of the file or the
  • 00:28:17
    folder so if you want to just list the
  • 00:28:19
    files and folders you can use LS command
  • 00:28:22
    but LS supports Advanced that is using
  • 00:28:25
    LS minus LTR you can list the files and
  • 00:28:29
    folders with its properties that is who
  • 00:28:33
    is the owner who is the group owner or
  • 00:28:35
    what is it a file and a folder and you
  • 00:28:37
    also get the information that what are
  • 00:28:40
    the permissions of it
  • 00:28:42
    and what is the size of it and the
  • 00:28:45
    timestamp using the ls minus LTR so
  • 00:28:46
    these are some of the basics right and
  • 00:28:49
    after this you might want to create a
  • 00:28:52
    file okay so to create a file you can
  • 00:28:54
    simply use the touch command so using
  • 00:28:56
    touch command you can create a file but
  • 00:28:59
    like let's say touch space Abhishek so
  • 00:29:01
    now what happens is a file called wstick
  • 00:29:03
    is created and to see if this file is
  • 00:29:05
    created or not you can use again LS
  • 00:29:07
    command and you'll see a new file called
  • 00:29:08
    Abhishek
  • 00:29:09
    okay
  • 00:29:12
    but if you just want to create a file
  • 00:29:14
    touch is fine most of the times you want
  • 00:29:15
    to create a file and you want to write
  • 00:29:17
    contents inside this file so for that we
  • 00:29:20
    use the vi command so using VI you can
  • 00:29:22
    not only create a file but you can
  • 00:29:24
    create a file and write inside the file
  • 00:29:27
    so VI space let's say test
  • 00:29:30
    so a file called see here a new file is
  • 00:29:32
    being created with name bi uh sorry with
  • 00:29:35
    name test and you can also start writing
  • 00:29:37
    into the file but to write content
  • 00:29:40
    inside a Linux file okay or file in a
  • 00:29:43
    Linux it's not straightforward because
  • 00:29:45
    you know when you open a file Linux will
  • 00:29:49
    ask you do you want to read the file do
  • 00:29:50
    you want to write content into the file
  • 00:29:53
    so using Escape okay always once you
  • 00:29:56
    enter a file click on escape and tell
  • 00:29:58
    Linux that you know I want to write
  • 00:30:01
    content inside the file so click on I by
  • 00:30:03
    clicking on I you will move to the
  • 00:30:05
    insert mode and then you can start
  • 00:30:07
    writing into the file hi
  • 00:30:10
    I am Abhishek okay and using again
  • 00:30:13
    Escape you have to use this called colon
  • 00:30:16
    WQ to save the file
  • 00:30:19
    Okay so now we wrote contents inside
  • 00:30:22
    this file and using cat you can
  • 00:30:24
    basically print the file now if you feel
  • 00:30:27
    that I am moving too fast don't worry I
  • 00:30:30
    have already created a very good video
  • 00:30:32
    that covers all the basics of shell
  • 00:30:34
    scripting I'll put the link in the
  • 00:30:36
    description don't worry uh it's almost
  • 00:30:38
    like you know 90 minutes of video or
  • 00:30:40
    sorry 80 minutes of video where we
  • 00:30:42
    covered all the fundamentals of shell
  • 00:30:44
    and again we created one more video that
  • 00:30:46
    is of one hour to cover some
  • 00:30:48
    intermediate Concepts on shell so
  • 00:30:50
    totally we have two end of ours content
  • 00:30:52
    on my channel that only talks about this
  • 00:30:55
    cell commands uh how to write some
  • 00:30:56
    simple shell scripts so if you haven't
  • 00:30:58
    followed any of these things right now
  • 00:31:00
    don't worry I'll put the links in the
  • 00:31:02
    description you can watch both of those
  • 00:31:05
    videos where I covered uh all most of
  • 00:31:07
    the concepts of shell commands like you
  • 00:31:09
    know from Basics to the intermediate
  • 00:31:11
    level of shell command so also we did a
  • 00:31:13
    shell scripting interview questions
  • 00:31:16
    video so watch those videos and you know
  • 00:31:18
    you'll get very familiar clear with the
  • 00:31:20
    shell command shell Concepts and
  • 00:31:22
    tomorrow's class we'll talk about some
  • 00:31:23
    Advanced topics
  • 00:31:25
    where you know we'll take a look at one
  • 00:31:28
    real-time devops project
  • 00:31:30
    so you might be learning all of these
  • 00:31:32
    shell commands but if you don't
  • 00:31:33
    understand where are these practically
  • 00:31:36
    used so that will be a problem right so
  • 00:31:38
    that's why what I'll do is I'll make a
  • 00:31:40
    video where I'll talk about a real-time
  • 00:31:42
    devops project using shell scripting uh
  • 00:31:44
    why shell scripting is used in an
  • 00:31:47
    organization just for one example and
  • 00:31:49
    with that you know you can understand
  • 00:31:52
    okay so this is a real time use case of
  • 00:31:55
    shell scripting in devops probably you
  • 00:31:56
    can enhance or you can think of other
  • 00:31:58
    Alternatives and you can create your own
  • 00:32:00
    projects and you can put them on your
  • 00:32:02
    resumes
  • 00:32:05
    perfect so uh this is something and then
  • 00:32:07
    uh you know you have uh some other
  • 00:32:08
    commands like for creating directories
  • 00:32:11
    you have a command called mkdir using
  • 00:32:14
    mkdr you can create directory and for
  • 00:32:15
    removing the files you have command like
  • 00:32:18
    RM okay so using RM you can remove a
  • 00:32:21
    file and using RM minus r you can remove
  • 00:32:23
    a directory so these are some of the
  • 00:32:26
    commands that we usually use as part of
  • 00:32:29
    day to day life okay so it says folder
  • 00:32:31
    already exists uh let's say I do mkdar
  • 00:32:34
    and call it something called as
  • 00:32:37
    abhishek1 so it creates a directory
  • 00:32:38
    called
  • 00:32:39
    Abhishek
  • 00:32:42
    Abhishek and then if I want to remove
  • 00:32:45
    the directory that I just created I can
  • 00:32:47
    use RM minus r Abhishek one
  • 00:32:49
    so these are some of the popular
  • 00:32:52
    commands that people use it in day to
  • 00:32:54
    day basis but apart from this so this is
  • 00:32:56
    about creating a file writing a file
  • 00:32:58
    reading a file and all of these things
  • 00:33:00
    right but let's say uh you want to log
  • 00:33:02
    into a uh
  • 00:33:04
    Linux machine and you want to check the
  • 00:33:07
    CPU memory or the performance of your
  • 00:33:09
    machine completely
  • 00:33:12
    which is very important right so let's
  • 00:33:14
    say that you are using a Windows machine
  • 00:33:16
    and in your Windows machine all of a
  • 00:33:17
    sudden you realize that your Windows
  • 00:33:21
    machine uh all the CPUs used or Ram is
  • 00:33:23
    used so how do you check uh basically
  • 00:33:25
    you go to your system properties and you
  • 00:33:27
    will see what is the Ram size and then
  • 00:33:29
    you will go to task manager and you will
  • 00:33:31
    see how much RAM is used you will
  • 00:33:33
    compare both of these things right so in
  • 00:33:34
    your system properties you understood
  • 00:33:38
    that your uh your laptop is of 8GB RAM
  • 00:33:40
    and in your task manager you realize
  • 00:33:42
    that okay 7gb is already used so
  • 00:33:44
    similarly let's say you want to do the
  • 00:33:47
    same uh things in your
  • 00:33:50
    Linux so for that you again you do it
  • 00:33:52
    only through your shell commands Okay so
  • 00:33:54
    what are the sale commands that you will
  • 00:33:55
    use here is
  • 00:33:58
    for looking into the memory you use a
  • 00:34:01
    command called free so using free uh for
  • 00:34:03
    better readability what you can do is
  • 00:34:05
    you can do
  • 00:34:08
    3 minus mg
  • 00:34:10
    sorry
  • 00:34:12
    so using free minus D what you can do is
  • 00:34:18
    you can understand what is the memory of
  • 00:34:22
    your laptop that is or your server
  • 00:34:27
    and using uh n proc using nproc you can
  • 00:34:29
    understand uh what are the CPUs uh
  • 00:34:31
    number of CPUs that are because this is
  • 00:34:33
    a basic ec2 instance that I just created
  • 00:34:35
    right so it says that it only comes with
  • 00:34:37
    one CPU we know but because we are using
  • 00:34:40
    a free ec2 instance right so that's why
  • 00:34:44
    it just has one CPU now and finally you
  • 00:34:45
    want to understand what is the disk size
  • 00:34:47
    first of all that you have a command
  • 00:34:49
    called DF minus H so using DF minus H
  • 00:34:52
    you can understand what is the disk size
  • 00:34:54
    so 24 24 percentage I have already used
  • 00:34:58
    so it comes with 5.8 GB and 1.9 GB I
  • 00:35:00
    already used so just like you know you
  • 00:35:01
    sorry
  • 00:35:05
    7.6 DB is the total size uh 1.9 GB is
  • 00:35:07
    something that I used and 5.8 is
  • 00:35:09
    available so 24 percentage of this is
  • 00:35:11
    something that I used if you want to see
  • 00:35:13
    all of these things at one place there
  • 00:35:15
    is a very popular command that is called
  • 00:35:18
    top so using top you can get the
  • 00:35:20
    complete information so it's like a
  • 00:35:24
    memory CPU and disk everything like you
  • 00:35:26
    can monitor everything from one place
  • 00:35:28
    that is using top so it says like you
  • 00:35:30
    know what is the CPU percentage that is
  • 00:35:32
    used what is the memory percentage that
  • 00:35:33
    is used so this is a very popular
  • 00:35:35
    interview question that is what is uh
  • 00:35:38
    the command that you will use to manage
  • 00:35:40
    your memory CPU or look into the details
  • 00:35:42
    of it so the answer is using the top
  • 00:35:44
    command and individually if you want to
  • 00:35:46
    do you can use for memory you can use
  • 00:35:48
    the free Command free is the command
  • 00:35:51
    name for CPU you can use a command
  • 00:35:52
    called n proc
  • 00:35:55
    okay and for this you can use a command
  • 00:35:56
    called DF
  • 00:35:58
    so all of these commands if you want to
  • 00:36:00
    look into one place that is using the
  • 00:36:03
    top command so these are some of the
  • 00:36:05
    popular shell commands that you use a
  • 00:36:07
    day-to-day basis we looked into creating
  • 00:36:09
    a file creating a folder removing files
  • 00:36:12
    writing into a file reading a file uh
  • 00:36:15
    and a listing file how to look into the
  • 00:36:18
    permissions of a file right and finally
  • 00:36:20
    we also looked into uh some of the
  • 00:36:21
    processing or management related
  • 00:36:25
    commands that is DF to look into this
  • 00:36:30
    file size and memory using free Command
  • 00:36:32
    and CPU using the in Pro command and for
  • 00:36:34
    the whole management we can use the top
  • 00:36:36
    command so we looked into all of these
  • 00:36:38
    things right and if you have still more
  • 00:36:40
    questions or if you are eager to learn
  • 00:36:42
    many more shell commands so like I
  • 00:36:44
    mentioned I created three videos on my
  • 00:36:45
    channel and there is also playlist
  • 00:36:48
    called Shell Shell scripting I guess so
  • 00:36:50
    I'll put all of the links in the
  • 00:36:51
    description so once you watch these
  • 00:36:53
    videos uh at least watch the
  • 00:36:55
    intermediate level video where I covered
  • 00:36:57
    a lot of shell commands before we move
  • 00:36:59
    to the tomorrow's topic because in
  • 00:37:01
    tomorrow we will see a real time shell
  • 00:37:03
    scripting devops project
  • 00:37:07
    perfect I hope you enjoyed the video uh
  • 00:37:08
    where we understood the concepts of
  • 00:37:10
    operating system basics of cell shipping
  • 00:37:13
    and everything if you feel that this
  • 00:37:14
    video was useful click on the like
  • 00:37:16
    button if you have any feedback for me
  • 00:37:19
    whether it's positive or negative put
  • 00:37:21
    that feedback in the comment section so
  • 00:37:23
    I'll make sure uh to take your feedback
  • 00:37:26
    and improve in the future videos
  • 00:37:28
    and finally if somebody uh is willing to
  • 00:37:30
    learn devops and is not a subscriber or
  • 00:37:32
    a viewer of our Channel please try to
  • 00:37:33
    share this video with your friends and
  • 00:37:35
    family
  • 00:37:37
    and if you haven't subscribed uh please
  • 00:37:38
    subscribe to my channel I'll see in the
  • 00:37:41
    next video take care
الوسوم
  • Linux
  • système d'exploitation
  • shell scripting
  • DevOps
  • commandes shell
  • noyau
  • bibliothèques système
  • sécurité
  • open source
  • performance