{"id":1333,"date":"2017-03-27T19:24:40","date_gmt":"2017-03-27T23:24:40","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=1333"},"modified":"2017-03-27T19:24:40","modified_gmt":"2017-03-27T23:24:40","slug":"centos-7-system-information-commands","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2017\/03\/27\/centos-7-system-information-commands\/","title":{"rendered":"CentOS 7 System Information Commands"},"content":{"rendered":"<h3 id=\"system-information-commands\">System Information Commands<i class=\"fa fa-link\"><\/i><\/h3>\n<p>Useful for local enumeration.<\/p>\n<div class=\"mobile-side-scroller\">\n<table>\n<thead>\n<tr>\n<th>COMMAND<\/th>\n<th>DESCRIPTION<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>whoami<\/code><\/td>\n<td>Shows currently logged in user on Linux.<\/td>\n<\/tr>\n<tr>\n<td><code>id<\/code><\/td>\n<td>Shows currently logged in user and groups for the user.<\/td>\n<\/tr>\n<tr>\n<td><code>last<\/code><\/td>\n<td>Shows last logged in users.<\/td>\n<\/tr>\n<tr>\n<td><code>mount<\/code><\/td>\n<td>Show mounted drives.<\/td>\n<\/tr>\n<tr>\n<td><code>df -h<\/code><\/td>\n<td>Shows disk usage in human readable output.<\/td>\n<\/tr>\n<tr>\n<td><code>echo \"user:passwd\" | chpasswd<\/code><\/td>\n<td>Reset password in one line.<\/td>\n<\/tr>\n<tr>\n<td><code>getent passwd<\/code><\/td>\n<td>List users on Linux.<\/td>\n<\/tr>\n<tr>\n<td><code>strings \/usr\/local\/bin\/blah<\/code><\/td>\n<td>Shows contents of none text files, e.g. whats in a binary.<\/td>\n<\/tr>\n<tr>\n<td><code>uname -ar<\/code><\/td>\n<td>Shows running kernel version.<\/td>\n<\/tr>\n<tr>\n<td><code>PATH=$PATH:\/my\/new-path<\/code><\/td>\n<td>Add a new PATH, handy for local FS manipulation.<\/td>\n<\/tr>\n<tr>\n<td><code>history<\/code><\/td>\n<td>Show bash history, commands the user has entered previously.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>System Information Commands Useful for local enumeration. COMMAND DESCRIPTION whoami Shows currently logged in user on Linux. id Shows currently logged in user and groups for the user. last Shows last logged in users. mount Show mounted drives. df -h Shows disk usage in human readable output. echo &#8220;user:passwd&#8221; | chpasswd Reset password in one &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2017\/03\/27\/centos-7-system-information-commands\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CentOS 7 System Information Commands<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"CentOS 7 System Information Commands - HP Server","description":"System Information Commands Useful for local enumeration. COMMAND DESCRIPTION whoami Shows currently logged in user on Linux. id Shows currently logged in user"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1333","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1333"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/1333\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}