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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu