LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2011, 02:35 AM   #1
hk_centos
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Rep: Reputation: Disabled
how to get remote pc's running operating system name ?


Hi ALL

I need to know what operating system currently running on given remote pc IP address

Thank you !
 
Old 06-21-2011, 02:37 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You can look for the /etc/*release files. On some systems the lsb_release command is also available:
Code:
$ cat /etc/*release
CentOS release 5.6 (Final)
$ lsb_release -d
Description:    CentOS release 5.6 (Final)
 
Old 06-21-2011, 02:49 AM   #3
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
cat /etc/*release -- if it is a Unix/Linux Machine.

How are you connecting to the remote machine. This will give us a clue about the remote system.

--Rameez
 
Old 06-21-2011, 03:02 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
This is Unix/Linux-specific again, but for a coarse result, you could run
Code:
uname
which on Linux should say "Linux". See the command line options for more information; for a quickie, try
Code:
uname -a
There is no standard, universal way to get to know what operating system there is at the other end--how could there be, given that they are all different? You can always take a look at the filesystem, e.g., what kind of things you can find at the top-level/root directory, which may give you clues about what system you're on (look at things that are "unique" to some systems, such as /Volumes on a Mac OS X, or drive names like C: on Windows, and so on). Once you know if it's Windows, some kind of Unix-like system or something else, you can get into details for that system family.

Edit: a thought crossed my mind, but I take it you didn't mean the hostname, which you'd get (on *nix) by running
Code:
hostname
Right?

Last edited by b0uncer; 06-21-2011 at 03:03 AM.
 
Old 06-21-2011, 03:28 AM   #5
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 136

Rep: Reputation: 20
you can use nmap with -O [Enable OS detection]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE Netboot Operating System (Network OS Booting/running) NOT Kickstart installation ajr-tech Linux - Server 4 01-28-2011 11:39 AM
[SOLVED] Running a command on remote system . deelinux Linux - Newbie 5 06-29-2010 12:52 PM
Problem Running Remote X application on a 10.1 system kaplan71 SUSE / openSUSE 0 04-02-2009 11:57 AM
Does the command "telnet" works when remote and local are different operating system? Marty21 Linux - Networking 2 02-15-2009 09:12 PM
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 12:02 PM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration