0

This question already has an answer here:

I try to know the linux distribution version of a remote linux machine. After trying several commands, I still can't identify the linux distribution version

$ uname -a
Linux server1 2.6.18 #1 Thu Jan 11 21:34:48 CET 2007 i686 athlon-4 i386 GNU/Linux

$ cat /proc/version
Linux version 2.6.18 (root@server1) (gcc version 3.4.6) #1 Thu Jan 11 21:34:48 CET 2007


$ cat /etc/issue
Welcome to \s \r (\l)

$ lsb_release -a
-sh: lsb_release: command not found

$ cat /etc/*-release
cat: /etc/*-release: No such file or directory

what can I do to know its linux distribution(i.e, redhat or debian or anything else?)

marked as duplicate by Ulrich Schwarz, Jeff Schaller, Kusalananda, Satō Katsura, Toby Speight Feb 7 '17 at 13:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • lsb_release -a or cat /etc/issue – user192526 Feb 7 '17 at 11:14
  • @Bahamut they don't work – lily Feb 7 '17 at 12:51
  • You may take a look at /etc/issue (if it has not been modified, it will normally have the OS name in it). – zeppelin Feb 7 '17 at 13:33
  • @UlrichSchwarz the link you provided can't solve the problem – lily Feb 7 '17 at 15:18
0

Try with it:

cat /etc/*-release
  • I tried, don't you see? – lily Feb 7 '17 at 11:12
  • sorry, answer edited, try again – Mc Kernel Feb 7 '17 at 11:13
  • it doesn't work – lily Feb 7 '17 at 12:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.