{"id":74,"date":"2011-03-25T08:08:55","date_gmt":"2011-03-25T08:08:55","guid":{"rendered":"http:\/\/pixert.com\/blog\/?p=74"},"modified":"2011-08-11T06:08:26","modified_gmt":"2011-08-11T06:08:26","slug":"how-to-find-centos-or-redhat-version","status":"publish","type":"post","link":"https:\/\/pixert.com\/blog\/how-to-find-centos-or-redhat-version\/","title":{"rendered":"How to find CentOS or RedHat version?"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"31\" data-permalink=\"https:\/\/pixert.com\/blog\/copy-a-directory-with-its-contents-in-centos\/centos\/\" data-orig-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg?fit=275%2C59&amp;ssl=1\" data-orig-size=\"275,59\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Centos\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg?fit=275%2C59&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg?fit=275%2C59&amp;ssl=1\" class=\"alignright size-full wp-image-31\" title=\"Centos\" src=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg?resize=275%2C59\" alt=\"\" width=\"275\" height=\"59\" \/><\/a>Most Red Hat-based distributions, like CentOS, should have a file called  redhat-release which will contain the CentOS version<\/p>\n<p>Run the following to see what version running on your system<\/p>\n<pre class=\"brush: bash; title: Code Block; notranslate\" title=\"Code Block\">tail \/etc\/redhat-release<\/pre>\n<p>or<\/p>\n<pre class=\"brush: bash; title: Code Block; notranslate\" title=\"Code Block\">cat \/etc\/redhat-release<\/pre>\n<p>or<\/p>\n<pre class=\"brush: bash; title: Code Block; notranslate\" title=\"Code Block\">cat \/etc\/*release*<\/pre>\n<p>or<\/p>\n<pre class=\"brush: bash; title: Code Block; notranslate\" title=\"Code Block\">rpm -q centos-release<\/pre>\n<p>Using your redhat-release file, you can find your distribution, version and  update number. This information is very helpful for technical support staff as  well as knowing if you are up to date with the latest patches<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most Red Hat-based distributions, like CentOS, should have a file called redhat-release which will contain the CentOS version Run the following to see what version running on your system tail \/etc\/redhat-release or cat \/etc\/redhat-release or cat \/etc\/*release* or rpm -q centos-release Using your redhat-release file, you can find your distribution, version and update number. This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8],"tags":[9,10],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-centos","tag-centos-2","tag-linux"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1pvi1-1c","jetpack-related-posts":[{"id":32,"url":"https:\/\/pixert.com\/blog\/compress-files-with-gzip-and-zip-in-centos\/","url_meta":{"origin":74,"position":0},"title":"Compress files with Gzip and Zip in CentOS","author":"Pixel Insert \/ Pixert","date":"March 7, 2011","format":false,"excerpt":"Gzip Type the following command to compress a file at a shell prompt [bash]gzip filename.ext[\/bash] -> The file will be compressed and saved as filename.ext.gz Type the following command to expand a compressed file [bash]<\/code><code>gunzip filename.ext.gz<\/code><code>[\/bash] -> The filename.ext.gz is deleted and replaced with filename.ext Type the following command to\u2026","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":53,"url":"https:\/\/pixert.com\/blog\/how-to-check-what-php-version-running-on-linux\/","url_meta":{"origin":74,"position":1},"title":"How to check what PHP version running on Linux?","author":"Pixel Insert \/ Pixert","date":"March 21, 2011","format":false,"excerpt":"It's very simple to check PHP version 1. PHP Info You can use the following to yield PHP version number via Command Line [bash]php -i[\/bash] or You can create a php file contain the following, upload it to your website [php]phpinfo();[\/php] Note: if your sys admin disabled phpinfo, you cannot\u2026","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/php.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":63,"url":"https:\/\/pixert.com\/blog\/how-to-find-apache-version-on-linux\/","url_meta":{"origin":74,"position":2},"title":"How to find Apache Version on Linux?","author":"Pixel Insert \/ Pixert","date":"March 24, 2011","format":false,"excerpt":"Run the following to see Apache version running on your Linux system [bash]httpd -v[\/bash] or [bash]\/usr\/local\/apache\/bin\/httpd -v[\/bash]","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/feather-small.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":27,"url":"https:\/\/pixert.com\/blog\/copy-a-directory-with-its-contents-in-centos\/","url_meta":{"origin":74,"position":3},"title":"Copy a directory with its contents in CentOS","author":"Pixel Insert \/ Pixert","date":"March 6, 2011","format":false,"excerpt":"This command will copy a directory with its content to another directory, for example you have a directory name x, you want to copy it to another directory name y [bash]cp -dpr x[\/bash] or [bash]cp -a x y[\/bash]","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/centos.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":62,"url":"https:\/\/pixert.com\/blog\/how-to-disable-phpinfo\/","url_meta":{"origin":74,"position":4},"title":"How to disable phpinfo","author":"Pixel Insert \/ Pixert","date":"March 22, 2011","format":false,"excerpt":"The phpinfo() function is a very powerful one, \u00a0you can learn quite a lot about your PHP installation.\u00a0Some server administrators may choose to disable the PHP function phpinfo() for security reasons, because it displays information which can be used to compromise the server that your site is running on. You\u2026","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/php.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":111,"url":"https:\/\/pixert.com\/blog\/how-to-disable-directory-browsing\/","url_meta":{"origin":74,"position":5},"title":"How to disable directory browsing?","author":"Pixel Insert \/ Pixert","date":"June 3, 2011","format":false,"excerpt":"One of the must do on setting a secure Apache webserver is to disable directory browsing. This could prevent the server from showing a listing of the existing files if there's no index in one folder. Disable directory browsing via .htaccess Add in the .htaccess file the following [bash] Options\u2026","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/pixert.com\/blog\/category\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/feather-small.gif?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":0,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"wp:attachment":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}