Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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

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

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You can look for the /etc/*release files. On some systems the lsb_release command is also available:
$ cat /etc/*release
CentOS release 5.6 (Final)
$ lsb_release -d
Description:    CentOS release 5.6 (Final)
Old 06-21-2011, 01:49 AM   #3
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.

Old 06-21-2011, 02:02 AM   #4
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
which on Linux should say "Linux". See the command line options for more information; for a quickie, try
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

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

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


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 10:39 AM
[SOLVED] Running a command on remote system . deelinux Linux - Newbie 5 06-29-2010 11:52 AM
Problem Running Remote X application on a 10.1 system kaplan71 SUSE / openSUSE 0 04-02-2009 10:57 AM
Does the command "telnet" works when remote and local are different operating system? Marty21 Linux - Networking 2 02-15-2009 08:12 PM
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 11:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 PM.

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