Simple life, Complicated mind
Sunday, December 25, 2016
How to find which Linux distribution is being used
# awk -F '=' '/^ID=/ {print $2}' /etc/os-release | tr -d '"'
or
# awk -F '=' '/^ID=/ {print $2}' /etc/os-release | sed -e 's/"//g'
or
# awk -F '=' '/^ID=/ {print $2}' /etc/os-release | awk -F'"' '{print $2}'
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment