|
|||||||||
| UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers |
unix and linux operating commands |
| Tags |
| linux commands, linux operating commands, linux operating system |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
how to tell which OS via command line
What is the linux operating command line to find out what OS you are running on linux?
I initially thought uname -a would do it, but it only lists kernel version.. can someone tell me? thanks in advance. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
"uname -a" is the right linux operating command, but it is not too helpful in determining which Linux Distro you have. It should at least inform you that you are running Linux and not HP-UX, FreeBSD, SunOS, etc.
As for which distro, Linux does not yet have a great way to do this, but it is moving towards a way. See: http://linuxmafia.com/faq/Admin/release-files.html for a good write-up on the current state of affairs. |
| Sponsored Links | ||
|
|
|
#3
|
||||
|
||||
|
Depends on Linux distribution. Take a look under /etc for a file named *release* Code:
ls /etc/*release* cat /etc/*release* Not all distributions provide this file. Cheers ZB |
|
#4
|
||||
|
||||
|
Quote:
Code:
echo linux |
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
uname -X
uname -X is one of the linux operating commands which gives all the operating system variables.
Regards Adhir Garg |
| Sponsored Links | ||
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to replace html line into a command line? | nitrofurano | Shell Programming and Scripting | 2 | 04-22-2012 04:02 PM |
| Bash - Loading a command's output line by line into an array | Azrael | Shell Programming and Scripting | 4 | 09-20-2011 05:42 AM |
| Need help in sed command [ printing a pattern + its line no or line no alone ] | frozensmilz | Shell Programming and Scripting | 4 | 06-28-2009 11:38 AM |
| reading ps command's output line by line | s. murat | Shell Programming and Scripting | 5 | 05-22-2008 05:23 AM |
|
|