ソースを参照

Distro info stuff

Håvard O. Nordstrand 5 年 前
コミット
8d6efc2714
2 ファイル変更16 行追加5 行削除
  1. 7 1
      config/linux-general/examples.md
  2. 9 4
      config/linux-general/general.md

+ 7 - 1
config/linux-general/examples.md

@@ -79,11 +79,17 @@ breadcrumbs:
 
 ### System
 
+- Get version info:
+    - Release info files:
+        - Debian (and Ubuntu): `/etc/debian_version`
+        - RHEL: `/etc/redhat-release`
+        - CentOS: `/etc/centos-release`
+    - General release info: `uname -a`
+    - Slightly more distro-specific release info: `lsb_release -a`
 - Monitor system and processes: `htop`
 - Monitor interrupts:
     - `irqtop`
     - `watch -n0.1 /proc/interrupts`
-    - 
 - Monitor lots of stuff: `glances`
 
 ## Tasks

+ 9 - 4
config/linux-general/general.md

@@ -15,10 +15,15 @@ breadcrumbs:
 
 ## Distros
 
-| Distro | RHEL/CentOS | Debian/Ubuntu |
-| - | - | - |
-| Nobody user/group | nobody:nobody | nobody:nogroup |
-| Version file(s) | /etc/redhat-release <br /> /etc/centos-release | /etc/debian_version |
+### Debian/Ubuntu
+
+- Nobody user and group: `nobody:nogroup`
+- Release info file: `/etc/debian_version`
+
+### RHEL/CentOS
+
+- Nobody user and group: `nobody:nobody`
+- Release info file: `/etc/redhat-release` or `/etc/centos-release`
 
 ## Miscellaneous