Deployed 6d74e6c with MkDocs version: 1.1.2

This commit is contained in:
Kalyanasundaram Somasundaram
2020-11-23 16:01:47 +05:50
parent 5d5de70663
commit 57cd4bbf39
136 changed files with 2734 additions and 682 deletions

View File

@@ -227,9 +227,16 @@
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#lab-environment-setup" class="md-nav__link">
Lab Environment Setup
</a>
</li>
<li class="md-nav__item">
<a href="#what-is-a-command" class="md-nav__link">
What is a command ?
What is a Command
</a>
</li>
@@ -396,20 +403,6 @@
I/O Redirection
</a>
</li>
<li class="md-nav__item">
<a href="#applications-in-sre-role" class="md-nav__link">
Applications in SRE Role
</a>
</li>
<li class="md-nav__item">
<a href="#useful-courses-and-tutorials" class="md-nav__link">
Useful courses and tutorials
</a>
</li>
</ul>
@@ -754,7 +747,7 @@
<li class="md-nav__item">
<a href="../../big_data/overview/" class="md-nav__link">
<a href="../../big_data/overview.md" class="md-nav__link">
Overview of Big Data
</a>
</li>
@@ -766,7 +759,7 @@
<li class="md-nav__item">
<a href="../../big_data/usage/" class="md-nav__link">
<a href="../../big_data/usage.md" class="md-nav__link">
Usage of Big Data techniques
</a>
</li>
@@ -790,7 +783,7 @@
<li class="md-nav__item">
<a href="../../big_data/architecture/" class="md-nav__link">
<a href="../../big_data/architecture.md" class="md-nav__link">
Architecture of Hadoop
</a>
</li>
@@ -1023,9 +1016,16 @@
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#lab-environment-setup" class="md-nav__link">
Lab Environment Setup
</a>
</li>
<li class="md-nav__item">
<a href="#what-is-a-command" class="md-nav__link">
What is a command ?
What is a Command
</a>
</li>
@@ -1192,20 +1192,6 @@
I/O Redirection
</a>
</li>
<li class="md-nav__item">
<a href="#applications-in-sre-role" class="md-nav__link">
Applications in SRE Role
</a>
</li>
<li class="md-nav__item">
<a href="#useful-courses-and-tutorials" class="md-nav__link">
Useful courses and tutorials
</a>
</li>
</ul>
@@ -1222,7 +1208,10 @@
<h1 id="command-line-basics">Command Line Basics</h1>
<h2 id="what-is-a-command">What is a command ?</h2>
<h2 id="lab-environment-setup">Lab Environment Setup</h2>
<p>One can use an online bash interpreter to run all the commands that are provided as examples in this course. This will also help you in getting a hands-on experience of various linux commands.</p>
<p><a href="https://repl.it/languages/bash">REPL</a> is one of the popular online bash interpreters for running linux commands. We will be using it for running all the commands mentioned in this course.</p>
<h2 id="what-is-a-command">What is a Command</h2>
<p>A command is a program that tells the operating system to perform
specific work. Programs are stored as files in linux. Therefore, a
command is also a file which is stored somewhere on the disk.</p>
@@ -1545,32 +1534,6 @@ prints the unique numbers from the input.</p>
<p><img alt="" src="../images/linux/commands/image28.png" /></p>
<p>I/O redirection -
<a href="https://tldp.org/LDP/abs/html/io-redirection.html">https://tldp.org/LDP/abs/html/io-redirection.html</a></p>
<h2 id="applications-in-sre-role">Applications in SRE Role</h2>
<ul>
<li>
<p>As a SRE, you will be required to perform some general tasks on these linux servers. You will also be using the command line when you are troubleshooting issues.</p>
</li>
<li>
<p>Moving from one location to another in the filesystem will require the help of ls, pwd and cd commands</p>
</li>
<li>
<p>You may need to search some specific information in the log files. Grep command would be very useful here. I/O redirection will become handy if you want to store the output in a file or pass it as an input to another command.</p>
</li>
<li>
<p>Tail command is very useful to view the latest data in the log file.</p>
</li>
</ul>
<h2 id="useful-courses-and-tutorials">Useful courses and tutorials</h2>
<ul>
<li>
<p><a href="https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS101x+1T2020/course/">Edx linuxcourse</a> -
This video course can be very helpful in developing the basics of linux command line. This course is provided
in both free and paidmodes by edX. If you take the free course, you will not be able to access the assignments.</p>
</li>
<li>
<p><a href="https://linuxcommand.org/lc3_learning_the_shell.php">https://linuxcommand.org/lc3_learning_the_shell.php</a></p>
</li>
</ul>

View File

@@ -0,0 +1,902 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="shortcut icon" href="../../img/favicon.ico">
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-6.1.5">
<title>Conclusion - SchoolOfSRE</title>
<link rel="stylesheet" href="../../assets/stylesheets/main.21aed14c.min.css">
<link rel="stylesheet" href="../../assets/stylesheets/palette.196e0c26.min.css">
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
<style>body,input{font-family:"Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace}</style>
</head>
<body dir="ltr" data-md-color-scheme="" data-md-color-primary="none" data-md-color-accent="none">
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#conclusion" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid" aria-label="Header">
<a href="../.." title="SchoolOfSRE" class="md-header-nav__button md-logo" aria-label="SchoolOfSRE">
<img src="../../img/sos.png" alt="logo">
</a>
<label class="md-header-nav__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
</label>
<div class="md-header-nav__title" data-md-component="header-title">
<div class="md-header-nav__ellipsis">
<span class="md-header-nav__topic md-ellipsis">
SchoolOfSRE
</span>
<span class="md-header-nav__topic md-ellipsis">
Conclusion
</span>
</div>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="../.." title="SchoolOfSRE" class="md-nav__button md-logo" aria-label="SchoolOfSRE">
<img src="../../img/sos.png" alt="logo">
</a>
SchoolOfSRE
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../.." class="md-nav__link">
Home
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2" >
<label class="md-nav__link" for="nav-2">
Fundamentals Series
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Fundamentals Series" data-md-level="1">
<label class="md-nav__title" for="nav-2">
<span class="md-nav__icon md-icon"></span>
Fundamentals Series
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2-1" type="checkbox" id="nav-2-1" >
<label class="md-nav__link" for="nav-2-1">
Linux Basics
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Linux Basics" data-md-level="2">
<label class="md-nav__title" for="nav-2-1">
<span class="md-nav__icon md-icon"></span>
Linux Basics
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../intro/" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="../command_line_basics/" class="md-nav__link">
Command Line Basics
</a>
</li>
<li class="md-nav__item">
<a href="../linux_server_administration/" class="md-nav__link">
Server Administration
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2-2" type="checkbox" id="nav-2-2" >
<label class="md-nav__link" for="nav-2-2">
Git
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Git" data-md-level="2">
<label class="md-nav__title" for="nav-2-2">
<span class="md-nav__icon md-icon"></span>
Git
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../git/git-basics/" class="md-nav__link">
Git Basics
</a>
</li>
<li class="md-nav__item">
<a href="../../git/branches/" class="md-nav__link">
Working With Branches
</a>
</li>
<li class="md-nav__item">
<a href="../../git/github-hooks/" class="md-nav__link">
Github and Hooks
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-2-3" type="checkbox" id="nav-2-3" >
<label class="md-nav__link" for="nav-2-3">
Linux Networking
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Linux Networking" data-md-level="2">
<label class="md-nav__title" for="nav-2-3">
<span class="md-nav__icon md-icon"></span>
Linux Networking
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../linux_networking/intro/" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="../../linux_networking/dns/" class="md-nav__link">
DNS
</a>
</li>
<li class="md-nav__item">
<a href="../../linux_networking/udp/" class="md-nav__link">
UDP
</a>
</li>
<li class="md-nav__item">
<a href="../../linux_networking/http/" class="md-nav__link">
HTTP
</a>
</li>
<li class="md-nav__item">
<a href="../../linux_networking/tcp/" class="md-nav__link">
TCP
</a>
</li>
<li class="md-nav__item">
<a href="../../linux_networking/ipr/" class="md-nav__link">
Routing
</a>
</li>
<li class="md-nav__item">
<a href="../../linux_networking/conclusion/" class="md-nav__link">
Conclusion
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" >
<label class="md-nav__link" for="nav-3">
Python and Web
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Python and Web" data-md-level="1">
<label class="md-nav__title" for="nav-3">
<span class="md-nav__icon md-icon"></span>
Python and Web
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../python_web/intro/" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="../../python_web/python-concepts/" class="md-nav__link">
Some Python Concepts
</a>
</li>
<li class="md-nav__item">
<a href="../../python_web/python-web-flask/" class="md-nav__link">
Python, Web and Flask
</a>
</li>
<li class="md-nav__item">
<a href="../../python_web/url-shorten-app/" class="md-nav__link">
The URL Shortening App
</a>
</li>
<li class="md-nav__item">
<a href="../../python_web/sre-conclusion/" class="md-nav__link">
Conclusion
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" >
<label class="md-nav__link" for="nav-4">
Data
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Data" data-md-level="1">
<label class="md-nav__title" for="nav-4">
<span class="md-nav__icon md-icon"></span>
Data
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-4-1" type="checkbox" id="nav-4-1" >
<label class="md-nav__link" for="nav-4-1">
Big Data
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Big Data" data-md-level="2">
<label class="md-nav__title" for="nav-4-1">
<span class="md-nav__icon md-icon"></span>
Big Data
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../big_data/intro/" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="../../big_data/overview.md" class="md-nav__link">
Overview of Big Data
</a>
</li>
<li class="md-nav__item">
<a href="../../big_data/usage.md" class="md-nav__link">
Usage of Big Data techniques
</a>
</li>
<li class="md-nav__item">
<a href="../../big_data/evolution/" class="md-nav__link">
Evolution of Hadoop
</a>
</li>
<li class="md-nav__item">
<a href="../../big_data/architecture.md" class="md-nav__link">
Architecture of Hadoop
</a>
</li>
<li class="md-nav__item">
<a href="../../big_data/tasks/" class="md-nav__link">
Tasks and conclusion
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" >
<label class="md-nav__link" for="nav-5">
Systems Design
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Systems Design" data-md-level="1">
<label class="md-nav__title" for="nav-5">
<span class="md-nav__icon md-icon"></span>
Systems Design
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../systems_design/intro/" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="../../systems_design/scalability/" class="md-nav__link">
Scalability
</a>
</li>
<li class="md-nav__item">
<a href="../../systems_design/availability/" class="md-nav__link">
Availability
</a>
</li>
<li class="md-nav__item">
<a href="../../systems_design/fault-tolerance/" class="md-nav__link">
Fault Tolerance
</a>
</li>
<li class="md-nav__item">
<a href="../../systems_design/conclusion/" class="md-nav__link">
Conclusion
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" >
<label class="md-nav__link" for="nav-6">
Security
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Security" data-md-level="1">
<label class="md-nav__title" for="nav-6">
<span class="md-nav__icon md-icon"></span>
Security
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../security/intro/" class="md-nav__link">
Introduction
</a>
</li>
<li class="md-nav__item">
<a href="../../security/fundamentals/" class="md-nav__link">
Fundamentals of Security
</a>
</li>
<li class="md-nav__item">
<a href="../../security/network_security/" class="md-nav__link">
Network Security
</a>
</li>
<li class="md-nav__item">
<a href="../../security/threats_attacks_defences/" class="md-nav__link">
Threat, Attacks & Defences
</a>
</li>
<li class="md-nav__item">
<a href="../../security/writing_secure_code/" class="md-nav__link">
Writing Secure code
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../../CONTRIBUTING/" class="md-nav__link">
Contribute
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="#applications-in-sre-role" class="md-nav__link">
Applications in SRE Role
</a>
</li>
<li class="md-nav__item">
<a href="#useful-courses-and-tutorials" class="md-nav__link">
Useful Courses and tutorials
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content">
<article class="md-content__inner md-typeset">
<h1 id="conclusion">Conclusion</h1>
<p>With this we have covered the basics of linux operating systems along with basic commands
which are used in linux. We have also covered the linux server administration commands.</p>
<p>We hope that this course will make it easier for you to operate on the command line.</p>
<h2 id="applications-in-sre-role">Applications in SRE Role</h2>
<ol>
<li>As a SRE, you will be required to perform some general tasks on these linux servers. You will also be using the command line when you are troubleshooting issues.</li>
<li>Moving from one location to another in the filesystem will require the help of ls, pwd and cd commands</li>
<li>You may need to search some specific information in the log files. Grep command would be very useful here. I/O redirection will become handy if you want to store the output in a file or pass it as an input to another command.</li>
<li>Tail command is very useful to view the latest data in the log file.</li>
<li>Different users will have different permissions depending on their roles. We will also not want everyone in the company to access our servers for security reasons. Users permissions can be restricted with chown, chmod and chgrp commands.</li>
<li>SSH is one of the most frequently used commands for a SRE. Logging into servers and troubleshooting along with performing basic administration tasks will only be possible if we are able to login into the server.</li>
<li>What if we want to run an apache server or nginx on a server ? We will first install it using the package manager. Package management commands become important here.</li>
<li>Managing services on servers is another critical responsibility of a SRE. Systemd related commands can help in troubleshooting issues. If a service goes down, we can start it using systemctl start command. We can also stop a service in case it is not needed.</li>
<li>Monitoring is another core responsibility of a SRE. Memory and CPU are two important system level metrics which should be monitored. Commands like top and free are quite helpful here.</li>
<li>If a service is throwing an error, how do we find out the root cause of the error ? We will certainly need to check logs to find out the whole stack trace of the error. The log file will also tell us the number of times the error has occurred along with time when it started.</li>
</ol>
<h2 id="useful-courses-and-tutorials">Useful Courses and tutorials</h2>
<ul>
<li><a href="https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS101x+1T2020/course/">Edx basic linux commands course</a></li>
<li><a href="https://courses.edx.org/courses/course-v1:RedHat+RH066x+2T2017/course/">Edx Red Hat Enterprise Linux Course</a></li>
<li><a href="https://linuxcommand.org/lc3_learning_the_shell.php">https://linuxcommand.org/lc3_learning_the_shell.php</a></li>
</ul>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs
</a>
</div>
</div>
</div>
</footer>
</div>
<script src="../../assets/javascripts/vendor.7e0ee788.min.js"></script>
<script src="../../assets/javascripts/bundle.b3a72adc.min.js"></script><script id="__lang" type="application/json">{"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}</script>
<script>
app = initialize({
base: "../..",
features: [],
search: Object.assign({
worker: "../../assets/javascripts/worker/search.4ac00218.min.js"
}, typeof search !== "undefined" && search)
})
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 KiB

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 KiB

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 KiB

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -241,19 +241,6 @@
Course Content
</a>
<nav class="md-nav" aria-label="Course Content">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#table-of-contents" class="md-nav__link">
Table of Contents
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
@@ -652,7 +639,7 @@
<li class="md-nav__item">
<a href="../../big_data/overview/" class="md-nav__link">
<a href="../../big_data/overview.md" class="md-nav__link">
Overview of Big Data
</a>
</li>
@@ -664,7 +651,7 @@
<li class="md-nav__item">
<a href="../../big_data/usage/" class="md-nav__link">
<a href="../../big_data/usage.md" class="md-nav__link">
Usage of Big Data techniques
</a>
</li>
@@ -688,7 +675,7 @@
<li class="md-nav__item">
<a href="../../big_data/architecture/" class="md-nav__link">
<a href="../../big_data/architecture.md" class="md-nav__link">
Architecture of Hadoop
</a>
</li>
@@ -947,19 +934,6 @@
Course Content
</a>
<nav class="md-nav" aria-label="Course Content">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#table-of-contents" class="md-nav__link">
Table of Contents
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
@@ -1039,29 +1013,33 @@ managing file permissions, monitoring system performance, log files etc.</p>
<p>We are not covering advanced linux commands and bash scripting in this
course. We will also not be covering linux internals. </p>
<h2 id="course-content">Course Content</h2>
<h3 id="table-of-contents">Table of Contents</h3>
<p>The following topics has been covered in this course:</p>
<ul>
<li>Introduction to Linux<ul>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/">Introduction to Linux</a><ul>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#what-are-linux-operating-systems">What are Linux Operating Systems</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#what-are-popular-linux-distributions">Linux Distributions</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#what-are-popular-linux-distributions">What are popular Linux distributions</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#uses-of-linux-operating-systems">Uses of Linux Operating Systems</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#linux-architecture">Linux Architecture</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#graphical-user-interface-gui-vs-command-line-interface-cli">GUI vs CLI</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/intro/#graphical-user-interface-gui-vs-command-line-interface-cli">Graphical user interface (GUI) vs Command line interface (CLI)</a></li>
</ul>
</li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/">Command Line Basics</a><ul>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/lab-environment-setup">Lab Environment Setup</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#what-is-a-command">What is a Command</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#file-system-organization">File System Organization</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#commands-for-navigating-the-file-system">Navigating File System</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#commands-for-manipulating-files">Manipulating Files</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#commands-for-viewing-files">Viewing Files</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#echo-command">Echo Command</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#text-processing-commands">Text Processing Commands</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/command_line_basics/#io-redirection">I/O Redirection</a></li>
</ul>
</li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/">Linux system administration</a><ul>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#usergroup-management-in-linux">User/Groups management</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#becoming-a-superuser-in-linux">Superuser in Linux</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#file-permissions-in-linux">File Permissions</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/lab-environment-setup">Lab Environment Setup</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#usergroup-management">User/Groups management</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#becoming-a-superuser">Becoming a Superuser</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#file-permissions">File Permissions</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#ssh-command">SSH Command</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#package-management">Package Management</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#process-management">Process Management</a></li>
@@ -1070,6 +1048,11 @@ course. We will also not be covering linux internals. </p>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/linux_server_administration/#logs">Logs</a></li>
</ul>
</li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/conclusion">Conclusion</a><ul>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/conclusion/#applications-in-sre-role">Applications in SRE Role</a></li>
<li><a href="https://linkedin.github.io/school-of-sre/linux_basics/conclusion/#useful-courses-and-tutorials">Useful Courses and tutorials</a></li>
</ul>
</li>
</ul>
<h2 id="what-are-linux-operating-systems">What are Linux operating systems</h2>
<p>Most of us will be familiar with the windows operating system which is

View File

@@ -254,16 +254,16 @@
</li>
<li class="md-nav__item">
<a href="#usergroup-management-in-linux" class="md-nav__link">
User/Group Management in Linux
<a href="#usergroup-management" class="md-nav__link">
User/Group Management
</a>
<nav class="md-nav" aria-label="User/Group Management in Linux">
<nav class="md-nav" aria-label="User/Group Management">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#id-command-in-linux" class="md-nav__link">
id command in linux
<a href="#id-command" class="md-nav__link">
id command
</a>
</li>
@@ -329,37 +329,37 @@
</li>
<li class="md-nav__item">
<a href="#becoming-a-superuser-in-linux" class="md-nav__link">
Becoming a Superuser in Linux
<a href="#becoming-a-superuser" class="md-nav__link">
Becoming a Superuser
</a>
</li>
<li class="md-nav__item">
<a href="#file-permissions-in-linux" class="md-nav__link">
File Permissions in Linux
<a href="#file-permissions" class="md-nav__link">
File Permissions
</a>
<nav class="md-nav" aria-label="File Permissions in Linux">
<nav class="md-nav" aria-label="File Permissions">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#chmod-command-in-linux" class="md-nav__link">
Chmod command in linux
<a href="#chmod-command" class="md-nav__link">
Chmod command
</a>
</li>
<li class="md-nav__item">
<a href="#chown-command-in-linux" class="md-nav__link">
Chown command in linux
<a href="#chown-command" class="md-nav__link">
Chown command
</a>
</li>
<li class="md-nav__item">
<a href="#chgrp-command-in-linux" class="md-nav__link">
Chgrp command in linux
<a href="#chgrp-command" class="md-nav__link">
Chgrp command
</a>
</li>
@@ -465,11 +465,11 @@
</li>
<li class="md-nav__item">
<a href="#checking-disk-space-in-linux" class="md-nav__link">
Checking Disk Space in Linux
<a href="#checking-disk-space" class="md-nav__link">
Checking Disk Space
</a>
<nav class="md-nav" aria-label="Checking Disk Space in Linux">
<nav class="md-nav" aria-label="Checking Disk Space">
<ul class="md-nav__list">
<li class="md-nav__item">
@@ -523,20 +523,6 @@
Logs
</a>
</li>
<li class="md-nav__item">
<a href="#applications-in-sre-role" class="md-nav__link">
Applications in SRE Role
</a>
</li>
<li class="md-nav__item">
<a href="#useful-courses-and-tutorials" class="md-nav__link">
Useful courses and tutorials
</a>
</li>
</ul>
@@ -869,7 +855,7 @@
<li class="md-nav__item">
<a href="../../big_data/overview/" class="md-nav__link">
<a href="../../big_data/overview.md" class="md-nav__link">
Overview of Big Data
</a>
</li>
@@ -881,7 +867,7 @@
<li class="md-nav__item">
<a href="../../big_data/usage/" class="md-nav__link">
<a href="../../big_data/usage.md" class="md-nav__link">
Usage of Big Data techniques
</a>
</li>
@@ -905,7 +891,7 @@
<li class="md-nav__item">
<a href="../../big_data/architecture/" class="md-nav__link">
<a href="../../big_data/architecture.md" class="md-nav__link">
Architecture of Hadoop
</a>
</li>
@@ -1153,16 +1139,16 @@
</li>
<li class="md-nav__item">
<a href="#usergroup-management-in-linux" class="md-nav__link">
User/Group Management in Linux
<a href="#usergroup-management" class="md-nav__link">
User/Group Management
</a>
<nav class="md-nav" aria-label="User/Group Management in Linux">
<nav class="md-nav" aria-label="User/Group Management">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#id-command-in-linux" class="md-nav__link">
id command in linux
<a href="#id-command" class="md-nav__link">
id command
</a>
</li>
@@ -1228,37 +1214,37 @@
</li>
<li class="md-nav__item">
<a href="#becoming-a-superuser-in-linux" class="md-nav__link">
Becoming a Superuser in Linux
<a href="#becoming-a-superuser" class="md-nav__link">
Becoming a Superuser
</a>
</li>
<li class="md-nav__item">
<a href="#file-permissions-in-linux" class="md-nav__link">
File Permissions in Linux
<a href="#file-permissions" class="md-nav__link">
File Permissions
</a>
<nav class="md-nav" aria-label="File Permissions in Linux">
<nav class="md-nav" aria-label="File Permissions">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#chmod-command-in-linux" class="md-nav__link">
Chmod command in linux
<a href="#chmod-command" class="md-nav__link">
Chmod command
</a>
</li>
<li class="md-nav__item">
<a href="#chown-command-in-linux" class="md-nav__link">
Chown command in linux
<a href="#chown-command" class="md-nav__link">
Chown command
</a>
</li>
<li class="md-nav__item">
<a href="#chgrp-command-in-linux" class="md-nav__link">
Chgrp command in linux
<a href="#chgrp-command" class="md-nav__link">
Chgrp command
</a>
</li>
@@ -1364,11 +1350,11 @@
</li>
<li class="md-nav__item">
<a href="#checking-disk-space-in-linux" class="md-nav__link">
Checking Disk Space in Linux
<a href="#checking-disk-space" class="md-nav__link">
Checking Disk Space
</a>
<nav class="md-nav" aria-label="Checking Disk Space in Linux">
<nav class="md-nav" aria-label="Checking Disk Space">
<ul class="md-nav__list">
<li class="md-nav__item">
@@ -1422,20 +1408,6 @@
Logs
</a>
</li>
<li class="md-nav__item">
<a href="#applications-in-sre-role" class="md-nav__link">
Applications in SRE Role
</a>
</li>
<li class="md-nav__item">
<a href="#useful-courses-and-tutorials" class="md-nav__link">
Useful courses and tutorials
</a>
</li>
</ul>
@@ -1474,7 +1446,7 @@ commands on your own.</p>
<p>An operating system is considered as multi-user if it allows multiple people/users to use a computer and not affect each other files and preferences. Linux based operating systems are multi-user in nature as it allows multiple users to access the system at the same time. A typical computer will only have one keyboard and monitor but multiple users can log in via ssh if the computer is connected to the network. We will cover more about ssh later.</p>
<p>As a server administrator, we are mostly concerned with the linux servers which are physically present at a very large distance from us. We can connect to these servers with the help of remote login methods like ssh.</p>
<p>Since linux supports multiple users, we need to have a method which can protect the users from each other. One user should not be able to access and modify files of other users</p>
<h2 id="usergroup-management-in-linux">User/Group Management in Linux</h2>
<h2 id="usergroup-management">User/Group Management</h2>
<ul>
<li>
<p>Each user in linux has an associated user ID called UID attached to him</p>
@@ -1489,7 +1461,7 @@ commands on your own.</p>
<p>Each group has a group ID called GID associated with it.</p>
</li>
</ul>
<h3 id="id-command-in-linux">id command in linux</h3>
<h3 id="id-command">id command</h3>
<p>id command can be used to find the uid and gid associated with an user.
It also lists down the groups to which the user belongs to.</p>
<p>The uid and gid associated with the root user is 0.
@@ -1615,7 +1587,7 @@ not find the entry for that user in "/etc/passwd" or "/etc/shadow" file.</p>
<p><img alt="" src="../images/linux/admin/image52.png" /></p>
<p>We will now try to add user "shivam" to the group we have created above.</p>
<p><img alt="" src="../images/linux/admin/image33.png" /></p>
<h2 id="becoming-a-superuser-in-linux">Becoming a Superuser in Linux</h2>
<h2 id="becoming-a-superuser">Becoming a Superuser</h2>
<p><strong>Before running the below commands, do make sure that you have set up a
password for user "shivam" and user "root" using the passwd command
described in the above section.</strong></p>
@@ -1666,7 +1638,7 @@ privileges.</p>
<p>We need to use sudo before running the command since it can only be
accessed with the sudo privileges. We have already given sudo privileges
to user “shivam” by adding him to the group “wheel”.</p>
<h2 id="file-permissions-in-linux">File Permissions in Linux</h2>
<h2 id="file-permissions">File Permissions</h2>
<p>On a linux operating system, each file and directory is assigned access
permissions for the owner of the file, the members of a group of related
users and everybody else. This is to make sure that one user is not
@@ -1678,7 +1650,7 @@ at the permissions of /etc/passwd file.</p>
related to file permissions.</p>
<p><img alt="" src="../images/linux/admin/image31.jpg" /></p>
<p><img alt="" src="../images/linux/admin/image57.png" /></p>
<h3 id="chmod-command-in-linux">Chmod command in linux</h3>
<h3 id="chmod-command">Chmod command</h3>
<p>The chmod command is used to modify files and directories permissions in
linux.</p>
<p>The chmod command accepts permissions in as a numerical argument. We can
@@ -1752,7 +1724,7 @@ command.</p>
<p><img alt="" src="../images/linux/admin/image26.png" /></p>
<p>Chmod command can be also used to change the permissions of a directory
in the similar way.</p>
<h3 id="chown-command-in-linux">Chown command in linux</h3>
<h3 id="chown-command">Chown command</h3>
<p>The chown command is used to change the owner of files or
directories in linux.</p>
<p>Command syntax: chown \&lt;new_owner> \&lt;file_name></p>
@@ -1764,7 +1736,7 @@ command.</p>
<p><img alt="" src="../images/linux/admin/image12.png" /></p>
<p>Chown command can also be used to change the owner of a directory in the
similar way.</p>
<h3 id="chgrp-command-in-linux">Chgrp command in linux</h3>
<h3 id="chgrp-command">Chgrp command</h3>
<p>The chgrp command can be used to change the group ownership of files or
directories in linux. The syntax is very similar to that of chown
command.</p>
@@ -1930,7 +1902,7 @@ an additional argument to get the data in human-readable format.</p>
<p>The vmstat command can be used to display the memory usage along with
additional information about io and cpu usage.</p>
<p><img alt="" src="../images/linux/admin/image38.png" /></p>
<h2 id="checking-disk-space-in-linux">Checking Disk Space in Linux</h2>
<h2 id="checking-disk-space">Checking Disk Space</h2>
<p>In this section, we will study about some useful commands that can be
used to view disk space on linux.</p>
<h3 id="df-disk-free">df (disk free)</h3>
@@ -1998,48 +1970,6 @@ which can be very useful for viewing system logs and applications logs
in linux. These logs can be very useful when you are troubleshooting on
the system.</p>
<p><img alt="" src="../images/linux/admin/image58.png" /></p>
<h2 id="applications-in-sre-role">Applications in SRE Role</h2>
<ul>
<li>
<p>Different users will have different permissions depending on their
roles. We will also not want everyone in the company to access our
servers for security reasons. Users permissions can be restricted
with chown, chmod and chgrp commands.</p>
</li>
<li>
<p>SSH is one of the most frequently used commands for a SRE. Logging
into servers and troubleshooting along with performing basic
administration tasks will only be possible if we are able to login
into the server.</p>
</li>
<li>
<p>What if we want to run an apache server or nginx on a server ? We
will first install it using the package manager. Package
management commands become important here.</p>
</li>
<li>
<p>Managing services on servers is another critical responsibility of a
SRE. Systemd related commands can help in troubleshooting issues.
If a service goes down, we can start it using systemctl start
command. We can also stop a service in case it is not needed.</p>
</li>
<li>
<p>Monitoring is another core responsibility of a SRE. Memory and CPU
are two important system level metrics which should be monitored.
Commands like top and free are quite helpful here.</p>
</li>
<li>
<p>If a service is throwing an error, how do we find out the root cause
of the error ? We will certainly need to check logs to find out
the whole stack trace of the error. The log file will also tell us
the number of times the error has occurred along with time when it
started.</p>
</li>
</ul>
<h2 id="useful-courses-and-tutorials">Useful courses and tutorials</h2>
<ul>
<li>Edx Red Hat Enterprise Linux Course - <a href="https://courses.edx.org/courses/course-v1:RedHat+RH066x+2T2017/course/">https://courses.edx.org/courses/course-v1:RedHat+RH066x+2T2017/course/</a></li>
</ul>