diff --git a/docs/gemstones/.pages b/docs/gemstones/.pages index 0ca35d7384..5fbef1b542 100644 --- a/docs/gemstones/.pages +++ b/docs/gemstones/.pages @@ -1,4 +1,18 @@ --- nav: - ... | index*.md + - ... | bash_stub*.md + - ... | string_color*.md + - ... | docker*.md + - ... | htop*.md + - ... | https_rsa_keygen*.md + - ... | markdown-demo-v2*.md + - ... | mtr*.md + - ... | nmcli*.md + - ... | nmtui*.md + - ... | perl_search_replace*.md + - ... | sed_search_replace*.md + - ... | setup_local_repo*.md + - ... | systemd_service_for_python_script*.md + - ... | view_kernel_conf*.md - ... diff --git a/docs/gemstones/docker.md b/docs/gemstones/docker.md index 19047064ac..09cfd5c4bb 100644 --- a/docs/gemstones/docker.md +++ b/docs/gemstones/docker.md @@ -1,14 +1,17 @@ --- -title: Install Docker Engine +title: Docker - Install Engine author: wale soyinka contributors: date: 2021-08-04 +tags: + - docker --- +# Introduction The Docker Engine can be used running native Docker style container workloads on Rocky Linux servers. This is sometimes preferred to running the full Docker Desktop environment. -# Add the docker repository +## Add the docker repository Use the `dnf` utility to add the docker repository to your Rocky Linux server. Type: @@ -16,7 +19,7 @@ Use the `dnf` utility to add the docker repository to your Rocky Linux server. T sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo ``` -# Install the needed packages +## Install the needed packages Install the latest version of Docker Engine, containerd, and Docker Compose, by running: @@ -24,7 +27,7 @@ Install the latest version of Docker Engine, containerd, and Docker Compose, by sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin ``` -# Start and enable the systemd docker service (dockerd) +## Start and enable the systemd docker service (dockerd) Use the `systemctl` utility to configure the dockerd daemon to automatically startup with the next system reboot and simultaneously start it for the current session. Type: @@ -33,7 +36,7 @@ sudo systemctl --now enable docker ``` -## Notes +### Notes ``` docker-ce : This package provides the underlying technology for building and running docker containers (dockerd) diff --git a/docs/gemstones/htop.md b/docs/gemstones/htop.md index 21d2304075..972a5250cf 100644 --- a/docs/gemstones/htop.md +++ b/docs/gemstones/htop.md @@ -1,11 +1,16 @@ --- -title: htop-Process Management +title: htop - Process Management author: tianci li contributors: Steven Spencer date : 2021-10-16 +tags: + - htop + - processes --- -# install `htop` +# htop - Process Management + +## install `htop` Every system administrator likes to use some of the more commonly used commands. Today I recommend `htop` as an alternative to the `top` command. To use the `htop` command usually, you need to install it first. ``` bash @@ -17,7 +22,7 @@ dnf makecache dnf -y install htop ``` -# Use `htop` +## Use `htop` You only need to type `htop` in the terminal, and the interactive interface is as follows: ``` @@ -31,7 +36,7 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer F1Help F2Setup F3Search F4Filter F5Tree F6SortBy F7Nice F8Nice+ F9Kill F10Quit -## Top Description +### Top Description * The top 0 and 1 indicate the number of your CPU cores, and the percentage indicates the occupancy rate of a single core (of course, the total occupancy rate of the CPU can also be displayed) * The different colors of the progress bar indicate the percentage of different process types: @@ -58,7 +63,7 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer * Load average, the three values ​​respectively represent the average load of the system in the last 1 minute, the last 5 minutes, and the last 15 minutes * Uptime, which means the running time after booting -## Process information description +### Process information description * **PID-Process ID number** @@ -78,13 +83,13 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer * TIME+-shows the running time since the process was started * Command-the command corresponding to the process -## Shortcut key description +### Shortcut key description In the interactive interface, press the F1 button to see the corresponding shortcut key description. * The up, down, left, and right direction keys can scroll through the interactive interface, and space can mark the corresponding process, which is marked in yellow. * The N button, the P button, the M button and the T button are respectively PID, CPU%, MEM%, TIME+ is used for sorting. Of course, you can also use the mouse to click to sort in ascending or descending order of a certain field. -## Other commonly used +### Other commonly used To manage the process, use the F9 button to send different signals to the process. The list of signals can be found in `kill -l`. The more commonly used ones are: | Signal | Description | @@ -93,5 +98,5 @@ To manage the process, use the F9 button to send different signals to |9 | Used to immediately end the running of the program, used to forcibly terminate the process, similar to the forced end in the windows taskbar | |15 | The default signal for the kill command. Sometimes if a problem has occurred in the process and the process cannot be terminated normally with this signal, we will try signal 9 | -## End +## End `htop` is much easier to use than the `top` that comes with the system, it is more intuitive, and it improves daily use greatly. This is why usually the first thing after installing the operating system the author installs it. diff --git a/docs/gemstones/markdown-demo-v2.md b/docs/gemstones/markdown-demo-v2.md index dd055c202f..d8e675a535 100644 --- a/docs/gemstones/markdown-demo-v2.md +++ b/docs/gemstones/markdown-demo-v2.md @@ -1,5 +1,5 @@ --- -title: Simple Markdown Demo 2 +title: Markdown Demo author: Einstein contributors: Dr. Ben Dover, Sweet Gypsy Rose tested with: 8.5 diff --git a/docs/gemstones/nmcli.md b/docs/gemstones/nmcli.md index e6414fa153..99b5e647dc 100644 --- a/docs/gemstones/nmcli.md +++ b/docs/gemstones/nmcli.md @@ -1,6 +1,8 @@ --- -title: nmcli - set connection autoconnect +title: nmcli - Set Connection Autoconnect author: wale soyinka +tags: + - nmcli --- # Modify NetworkManager connection profile autoconnect property diff --git a/docs/gemstones/perl_search_replace.md b/docs/gemstones/perl_search_replace.md index 5d83d93166..52e43c247f 100644 --- a/docs/gemstones/perl_search_replace.md +++ b/docs/gemstones/perl_search_replace.md @@ -1,6 +1,9 @@ --- -title: Perl - Search and Replace +title: perl - Search and Replace author: Steven Spencer +tags: + - perl + - search --- # `perl` Search and Replace