![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find and replace command in one line using one command | vasikaran | UNIX for Dummies Questions & Answers | 10 | 08-20-2008 07:40 AM |
| Getting Command line on HP-UX | rucha_mahajan | HP-UX | 2 | 05-12-2008 01:06 AM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| Add line command | felixwhoals | UNIX for Dummies Questions & Answers | 3 | 12-16-2007 09:12 PM |
| How do I get ssh to run a command in one line? | LordJezo | Shell Programming and Scripting | 2 | 07-01-2004 08:54 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to tell which OS via command line
What is the 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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
"uname -a" is the right 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. |
|
#3
|
||||
|
||||
|
Depends on Linux distribution.
Take a look under /etc for a file named *release* Code:
ls /etc/*release* cat /etc/*release* Cheers ZB |
|
#4
|
|||
|
|||
|
Quote:
Code:
echo linux |
|
#5
|
|||
|
|||
|
uname -X
uname -X is one ofthe commands which gives all the operating system variables.
Regards Adhir Garg |
|||
| Google The UNIX and Linux Forums |