add conclusion page, modify subtitles and links
|
@ -1,7 +1,12 @@
|
|||
# Command Line Basics
|
||||
|
||||
## What is a command ?
|
||||
## Lab Environment Setup
|
||||
|
||||
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.
|
||||
|
||||
[REPL](https://repl.it/languages/bash) 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.
|
||||
|
||||
## What is a Command
|
||||
|
||||
A command is a program that tells the operating system to perform
|
||||
specific work. Programs are stored as files in linux. Therefore, a
|
||||
|
@ -438,22 +443,3 @@ prints the unique numbers from the input.
|
|||
|
||||
I/O redirection -
|
||||
[https://tldp.org/LDP/abs/html/io-redirection.html](https://tldp.org/LDP/abs/html/io-redirection.html)
|
||||
|
||||
## Applications in SRE Role
|
||||
|
||||
- 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.
|
||||
|
||||
- Moving from one location to another in the filesystem will require the help of ls, pwd and cd commands
|
||||
|
||||
- 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.
|
||||
|
||||
- Tail command is very useful to view the latest data in the log file.
|
||||
|
||||
## Useful courses and tutorials
|
||||
|
||||
|
||||
- [Edx linuxcourse](https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS101x+1T2020/course/) -
|
||||
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.
|
||||
|
||||
- [https://linuxcommand.org/lc3_learning_the_shell.php](https://linuxcommand.org/lc3_learning_the_shell.php)
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# Conclusion
|
||||
|
||||
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.
|
||||
|
||||
We hope that this course will make it easier for you to operate on the command line.
|
||||
|
||||
## Applications in SRE Role
|
||||
|
||||
1. 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.
|
||||
2. Moving from one location to another in the filesystem will require the help of ls, pwd and cd commands
|
||||
3. 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.
|
||||
4. Tail command is very useful to view the latest data in the log file.
|
||||
5. 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.
|
||||
6. 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.
|
||||
7. 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.
|
||||
8. 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.
|
||||
9. 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.
|
||||
10. 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.
|
||||
|
||||
## Useful Courses and tutorials
|
||||
|
||||
* [Edx basic linux commands course](https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS101x+1T2020/course/)
|
||||
* [Edx Red Hat Enterprise Linux Course](https://courses.edx.org/courses/course-v1:RedHat+RH066x+2T2017/course/)
|
||||
* [https://linuxcommand.org/lc3_learning_the_shell.php](https://linuxcommand.org/lc3_learning_the_shell.php)
|
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 251 KiB |
After Width: | Height: | Size: 192 KiB |
After Width: | Height: | Size: 161 KiB |
After Width: | Height: | Size: 301 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 178 KiB |
After Width: | Height: | Size: 306 KiB |
After Width: | Height: | Size: 375 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 332 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 119 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 373 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 178 KiB |
After Width: | Height: | Size: 295 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 192 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 242 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 295 KiB |
After Width: | Height: | Size: 171 KiB |
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 243 KiB |
After Width: | Height: | Size: 186 KiB |
After Width: | Height: | Size: 217 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 179 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 268 KiB |
After Width: | Height: | Size: 95 KiB |
After Width: | Height: | Size: 141 KiB |
After Width: | Height: | Size: 288 KiB |
After Width: | Height: | Size: 302 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 233 KiB |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 164 KiB |
After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 131 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 187 KiB |
After Width: | Height: | Size: 246 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 148 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 353 KiB |
After Width: | Height: | Size: 216 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 147 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 200 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 117 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 85 KiB |