{"id":1156,"date":"2018-07-13T11:00:46","date_gmt":"2018-07-13T10:00:46","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=1156"},"modified":"2023-06-14T18:46:05","modified_gmt":"2023-06-14T17:46:05","slug":"linux-systeminfo-commands","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/linux-systeminfo-commands\/","title":{"rendered":"Linux SystemInfo commands"},"content":{"rendered":"\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Process manager\nhtop\n\n# process info (sorted by memory, works almost everywhere)\nps aux --sort=-rss\n\nsudo journalctl -u &lt;service> -xe\n\n# Follow journal with colors (install ccze seperately\njournalctl --follow | ccze\n\n# View disk usage (updates every 5 seconds)\nwatch -n 5 df -h\n\n# View memory usage (updates every 5 seconds)\nwatch -n 5 free -m\n\n# View kernel messages\ndmesg --follow&lt;br>&lt;br><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>wondering if it reads the config file or listening on the socket you&#8217;re expecting:&nbsp;<code>lsof<\/code><\/li>\n\n\n\n<li>is my program just sitting there:&nbsp;<code>strace<\/code><\/li>\n\n\n\n<li>I wonder how the C++ mangling went:&nbsp;<code>strings<\/code><\/li>\n\n\n\n<li>Did I link that correctly:&nbsp;<code>ldd<\/code><\/li>\n\n\n\n<li>so was that file saved in UTF-8 or latin:&nbsp;<code>od<\/code><\/li>\n\n\n\n<li>wait, is it trying to use the proxy or not:&nbsp;<code>tcpdump<\/code><\/li>\n\n\n\n<li>size of memory segments and swap usage:&nbsp;<code>pmap<\/code><\/li>\n\n\n\n<li>and others like&nbsp;<code>top<\/code>\/<code>ntop<\/code>\/<code>iotop<\/code>, digging around in&nbsp;<code>\/proc\/$mypid<\/code>,&nbsp;<code>ps<\/code>&nbsp;for showing the env and everything,&nbsp;<code>dtrace<\/code>&nbsp;and&nbsp;<code>gdb<\/code>&nbsp;for super detailled tracing<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1156","post","type-post","status-publish","format-standard","hentry","category-other-scripts"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/1156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=1156"}],"version-history":[{"count":5,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/1156\/revisions"}],"predecessor-version":[{"id":7848,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/1156\/revisions\/7848"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=1156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=1156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=1156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}