Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a command that will display the contents of the PRETTY_NAME field with or without quotes. A complete solution will not contain the 'PRETTY_PRINT field
Write a command that will display the contents of the PRETTY_NAME field with or without quotes.
A complete solution will not contain the 'PRETTY_PRINT field name, only the value portion of the line.
/etc/os-release
NAME="Red Hat Enterprise Linux Server" VERSION="7.6 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.6" PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.6 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
Use the existing /etc/os-release file on your chosen Linux environment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
You can use the grep and cut commands to extract the value portion of the P...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started