Added in the new files and swapped the theme to my modified version of bootstrap386

This commit is contained in:
Benjamyn Love 2019-02-25 23:20:44 +11:00
parent 833244037f
commit 480928ab7c
10 changed files with 33 additions and 19 deletions

View File

@ -1,20 +1,25 @@
# Basics of the linux shell # Basics
Basics of the Linus Shell
## Streams ## Streams
The linux shell (this will usually be [`bash`](bash.md)) works using different streams The linux shell (this will usually be [`bash`](/Linux/bash.md)) works using different streams
The main three streams that are used on the command line are STDIN (Standard input), STDOUT (Standard output), STDERR (Standard Error) The main three streams that are used on the command line are STDIN (Standard input), STDOUT (Standard output), STDERR (Standard Error)
|ID|STREAM|USE| |STREAM ID \| | STREAM NAME \| | STREAM USE|
|---|:----|:---| |------------|------|-----|
| 0 | STDIN | Used to send input to the program | | 0 | STDIN | Used to send input to the program |
| 1 | STDOUT | Used to receive output from the program | | 1 | STDOUT | Used to receive output from the program |
| 2 | STDERR | Used to receive errors from the program | | 2 | STDERR | Used to receive errors from the program |
### Standard Input ### Standard Input
Standard input is how we send input to an application it is also how we interact with the command line shell (Usually [`bash`](/bash.md)) Standard input is how we send input to an application it is also how we interact with the command line shell (Usually [`bash`](/Linux/bash.md))
Whenever a linux program asks for input this is sent to the program using the STDIN stream Whenever a linux program asks for input this is sent to the program using the STDIN stream

View File

@ -1,4 +1,4 @@
#Connections to servers # Connections to servers
Usually connections to servers are a sign that all is working, occasionally though some nefarious parties decide that they really like the server and want to hog all the connections to themselves. Usually connections to servers are a sign that all is working, occasionally though some nefarious parties decide that they really like the server and want to hog all the connections to themselves.
@ -18,6 +18,6 @@ In these situations we will usually see a high connection count for certain serv
Finding IP addresses connecting to HTTP is quite easy, all you should need to do is tail access logs to find the IP addresses Finding IP addresses connecting to HTTP is quite easy, all you should need to do is tail access logs to find the IP addresses
You can use a command like `tail -f /home/*/access-logs/* | awk '{print $1}'` to get a live update on connections via HTTP/HTTPS on the server. [For more information on the commands used click here](commands.md) *__Note: This will only check sites in /home__* You can use a command like `tail -f /home/*/access-logs/* | awk '{print $1}'` to get a live update on connections via HTTP/HTTPS on the server. [For more information on the commands used click here](/Commands/commands.md) *__Note: This will only check sites in /home__*
##SMTP ##SMTP

View File

@ -1,6 +1,7 @@
# Regex examples # Regex examples
## Match an IP address ## Match an IP address
`\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}` `\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}`
If we use this expression on the following using grep to search the file If we use this expression on the following using grep to search the file

View File

@ -1,6 +1,6 @@
#Using `sed` to modify a DNS zone # Using `sed` to modify a DNS zone
Take the following DNS zone as an example, say we needed to update the IP address from 110.232.142.185 to 45.65.88.152, you could modify the file using a text editor (see [editors](/commands#editors)) Take the following DNS zone as an example, say we needed to update the IP address from 110.232.142.185 to 45.65.88.152, you could modify the file using a text editor (see [editors](/Commands/commands#editors))
```bash ```bash
$TTL 86400 $TTL 86400

View File

@ -1,4 +1,6 @@
# Welcome to the necronomicon # Home
## Welcome to the necronomicon
[Klaatu barada nikto](https://www.imdb.com/title/tt0106308/) [Klaatu barada nikto](https://www.imdb.com/title/tt0106308/)
@ -8,5 +10,8 @@ This is a compendium of all the useless facts, tips, tricks and commands that I
## Quick Links ## Quick Links
[Linux Shell Basics](/shellbasics) \------------------------------------
[Commands](/commands)
[Linux Shell Basics](/Linux/shellbasics)
[Commands](/Commands/commands)

View File

@ -1,7 +1,3 @@
site_name: Useful commands and tips site_name: Useful tips
nav:
- Home: index.md theme: bootstrap386
- Commands: commands.md
- Connections: connections.md
- Regex: regex.md
theme: readthedocs

7
mkdocs.yml.old Normal file
View File

@ -0,0 +1,7 @@
site_name: Useful commands and tips
nav:
- Home: index.md
- Commands: commands.md
- Connections: connections.md
- Regex: regex.md
theme: bootstrap386