{"id":1869,"date":"2019-02-01T20:07:31","date_gmt":"2019-02-01T20:07:31","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/linux-command-reference\/system\/"},"modified":"2019-02-16T02:53:58","modified_gmt":"2019-02-16T02:53:58","slug":"system","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/linux-command-reference\/system\/","title":{"rendered":"System"},"content":{"rendered":"<table>\n<tbody>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>cat \/etc\/redhat_release<\/td>\n<td>Shows which version of redhat installed<\/td>\n<\/tr>\n<tr>\n<td>uptime<\/td>\n<td>Shows how long the system has been running<\/td>\n<\/tr>\n<tr>\n<td>hostname<\/td>\n<td>Shows system host name. With -i switch you can view the ip address of the machine and with -d you can view the domain name<\/td>\n<\/tr>\n<tr>\n<td>last reboot<\/td>\n<td>Shows system reboot history<\/td>\n<\/tr>\n<tr>\n<td>date<\/td>\n<td>Shows the current date and time. You can specify the format you want to view the date as well. As an example by using &#8216;date +%D&#8217; you can view the date in &#8216;MM\/DD\/YY&#8217; format<\/td>\n<\/tr>\n<tr>\n<td>cal<\/td>\n<td>Shows the calendar of the current month. With -y switch you can view the calendar of the whole current year<\/td>\n<\/tr>\n<tr>\n<td>w<\/td>\n<td>Displays who is logged on and what they are doing<\/td>\n<\/tr>\n<tr>\n<td>whoami<\/td>\n<td>Shows current user id<\/td>\n<\/tr>\n<tr>\n<td>finger user<\/td>\n<td>Displays information about user<\/td>\n<\/tr>\n<tr>\n<td>reboot<\/td>\n<td>Reboots the system<\/td>\n<\/tr>\n<tr>\n<td>shutdown<\/td>\n<td>Shuts down the system<\/td>\n<\/tr>\n<tr>\n<td>uname<\/td>\n<td>Displays linux system information. With -a switch you can view all the information with -r switch you can view kernel release information and with -o you can view OS information<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Command Description cat \/etc\/redhat_release Shows which version of redhat installed uptime Shows how long the system has been running hostname Shows system host name. With -i switch you can view the ip address of the machine and with -d you can view the domain name last reboot Shows system reboot history date Shows the current [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1712,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1869","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=1869"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1869\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1712"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=1869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}