{"id":1109,"date":"2026-07-09T22:07:13","date_gmt":"2026-07-09T19:07:13","guid":{"rendered":"https:\/\/itgen.itbumper.com\/?page_id=1109"},"modified":"2026-07-13T23:31:35","modified_gmt":"2026-07-13T20:31:35","slug":"0043_mobaxterm-macros-debian-general-information","status":"publish","type":"page","link":"https:\/\/itgen.itbumper.com\/?page_id=1109","title":{"rendered":"0043_MobaXterm macros: 01.Debian-General Information"},"content":{"rendered":"\n<p>1.1 Date &amp; Time<br>1.2 System Information<br>1.3 CPU Information<br>1.4 System Uptime<br>1.5 Logged-in Users<br>1.6 Memory Information<br>1.7 Storage Overview<br>1.8 Top CPU Processes<br>1.9 Top Memory Processes<\/p>\n<p>Copy&#8211;&gt;Paste<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\necho &quot;==================== 01. GENERAL INFORMATION ====================&quot;; printf &quot;\\n&quot;; echo &quot;1.1 DATE &amp; TIME&quot;; timedatectl; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.2 SYSTEM INFORMATION&quot;; hostnamectl; printf &quot;\\n&quot;; cat \/etc\/os-release; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.3 CPU INFORMATION&quot;; echo &quot;Logical CPU Cores:&quot;; nproc; printf &quot;\\n&quot;; lscpu | grep -E 'Model name|Socket|Core|Thread|CPU\\(s\\)|Architecture|Hypervisor|Virtualization'; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.4 SYSTEM UPTIME&quot;; uptime; printf &quot;\\n&quot;; who -b; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.5 LOGGED-IN USERS&quot;; w; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.6 MEMORY INFORMATION&quot;; free -h; printf &quot;\\n&quot;; grep -E 'MemTotal|MemAvailable|SwapTotal|SwapFree' \/proc\/meminfo | awk '{printf &quot;%-15s %8.2f GiB\\n&quot;,$1,$2\/1024\/1024}'; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.7 STORAGE OVERVIEW&quot;; echo &quot;--- Filesystem Usage ---&quot;; timeout 5 df -hT; printf &quot;\\n&quot;; echo &quot;--- Inode Usage ---&quot;; timeout 5 df -ih; printf &quot;\\n&quot;; echo &quot;--- Block Devices ---&quot;; lsblk -f; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.8 TOP CPU PROCESSES&quot;; ps -eo pid,user,%cpu,%mem,cmd --sort=-%cpu | head -15; printf &quot;\\n%.0s&quot; {1..3}; echo &quot;1.9 TOP MEMORY PROCESSES&quot;; ps -eo pid,user,%mem,%cpu,cmd --sort=-%mem | head -15\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ==================== 01. GENERAL INFORMATION ====================\necho &quot;==================== 01. GENERAL INFORMATION ====================&quot;\nprintf &quot;\\n&quot;\n\n# --- 1.1 DATE &amp; TIME ---\necho &quot;1.1 DATE &amp; TIME&quot;\ntimedatectl\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.2 SYSTEM INFORMATION ---\necho &quot;1.2 SYSTEM INFORMATION&quot;\nhostnamectl\nprintf &quot;\\n&quot;\ncat \/etc\/os-release\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.3 CPU INFORMATION ---\necho &quot;1.3 CPU INFORMATION&quot;\necho &quot;Logical CPU Cores:&quot;\nnproc\nprintf &quot;\\n&quot;\nlscpu | grep -E 'Model name|Socket|Core|Thread|CPU\\(s\\)|Architecture|Hypervisor|Virtualization'\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.4 SYSTEM UPTIME ---\necho &quot;1.4 SYSTEM UPTIME&quot;\nuptime\nprintf &quot;\\n&quot;\nwho -b\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.5 LOGGED-IN USERS ---\necho &quot;1.5 LOGGED-IN USERS&quot;\nw\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.6 MEMORY INFORMATION ---\necho &quot;1.6 MEMORY INFORMATION&quot;\nfree -h\nprintf &quot;\\n&quot;\ngrep -E 'MemTotal|MemAvailable|SwapTotal|SwapFree' \/proc\/meminfo | \\\n    awk '{printf &quot;%-15s %8.2f GiB\\n&quot;,$1,$2\/1024\/1024}'\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.7 STORAGE OVERVIEW ---\necho &quot;1.7 STORAGE OVERVIEW&quot;\necho &quot;--- Filesystem Usage ---&quot;\ntimeout 5 df -hT\nprintf &quot;\\n&quot;\necho &quot;--- Inode Usage ---&quot;\ntimeout 5 df -ih\nprintf &quot;\\n&quot;\necho &quot;--- Block Devices ---&quot;\nlsblk -f\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.8 TOP CPU PROCESSES ---\necho &quot;1.8 TOP CPU PROCESSES&quot;\nps -eo pid,user,%cpu,%mem,cmd --sort=-%cpu | head -15\nprintf &quot;\\n%.0s&quot; {1..3}\n\n# --- 1.9 TOP MEMORY PROCESSES ---\necho &quot;1.9 TOP MEMORY PROCESSES&quot;\nps -eo pid,user,%mem,%cpu,cmd --sort=-%mem | head -15\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"1024\" src=\"https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-01-576x1024.png\" alt=\"\" class=\"wp-image-1111\" style=\"width:754px;height:auto\" srcset=\"https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-01-576x1024.png 576w, https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-01-169x300.png 169w, https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-01.png 613w\" sizes=\"(max-width: 576px) 85vw, 576px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"869\" height=\"1024\" src=\"https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-02-869x1024.png\" alt=\"\" class=\"wp-image-1112\" style=\"width:754px;height:auto\" srcset=\"https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-02-869x1024.png 869w, https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-02-254x300.png 254w, https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-02-768x905.png 768w, https:\/\/itgen.itbumper.com\/wp-content\/uploads\/2026\/07\/001_debian_general_information-02.png 1078w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[21,26],"tags":[],"_links":{"self":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/1109"}],"collection":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1109"}],"version-history":[{"count":7,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/1109\/revisions"}],"predecessor-version":[{"id":1132,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/1109\/revisions\/1132"}],"wp:attachment":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}