Re: If you're using linux can you run this command please?
- Posted by SDPringle Sep 01, 2015
- 2294 views
ghaberek said...
SDPringle said...
Linux Mint 17.0
$cat /etc/*-release | grep ^NAME cat: /etc/upstream-release: Is a directory NAME="Ubuntu"
Protip: you don't have to cat files and pipe them into grep, you can just grep files directly.
$ grep -E "^NAME=" /etc/*-release
/etc/os-release:NAME="Ubuntu"
/etc/os-release:NAME="Ubuntu"
I'm not sure why more people don't know this, but I see it all the time.
-Greg
Don't infer that because people are apparently typing the commands in verbatim that they do not know the other ways it could be done. It is faster and less error prone to copy and paste the challenge command and then paste the results. This is what people ought to do. We shouldn't debate command line style here.
Shawn Pringle