Re: If you're using linux can you run this command please?

new topic     » goto parent     » topic index » view thread      » older message » newer message
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"

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu