Maq Posted October 9, 2008 Share Posted October 9, 2008 I know I'm running a linux server but what's the command for finding the exact operating system via SSH? Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/ Share on other sites More sharing options...
Maq Posted October 9, 2008 Author Share Posted October 9, 2008 Figured it out. You have to go into the "proc" directory and type "cat version" in the command line. In addition, there are a lot of other useful info in that directory. Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661184 Share on other sites More sharing options...
Ghulam Yaseen Posted October 9, 2008 Share Posted October 9, 2008 Hello , Please use this command >> cat /etc/redhat-release I know I'm running a linux server but what's the command for finding the exact operating system via SSH? Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661188 Share on other sites More sharing options...
Maq Posted October 9, 2008 Author Share Posted October 9, 2008 K, I will check that out thanks. Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661189 Share on other sites More sharing options...
trq Posted October 9, 2008 Share Posted October 9, 2008 Neither of these solutions are guaranteed to work. The first, looking at /proc/version will simply display what kernel you are using along with some other details (ie, what compiler was used to build it). This may hint at your distribution but may not. For instance, mine reads: Linux version 2.6.26.5-vanilla+ovz+my ([email protected]) (gcc version 4.2.4) #1 SMP Wed Sept 10 02:42:00 EST 2008 No hint about my distro. The second solution, looking at /etc/redhat-release. This file will only exist if your on a redhat derived distro. Most distros however will place some sort of version file within /etc so that is probably a good place to start. Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661317 Share on other sites More sharing options...
Maq Posted October 9, 2008 Author Share Posted October 9, 2008 My solution gave me enough information for what I need but do you happen to know a command or where to look in the GUI SSH to find all the information? Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661384 Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 My solution gave me enough information for what I need but do you happen to know a command or where to look in the GUI SSH to find all the information? I'm not sure I understand the question. SSH is a network protocol, and I'll assume your talking about your desktop environment (of which there are many) when you speak of a GUI. Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661461 Share on other sites More sharing options...
Maq Posted October 10, 2008 Author Share Posted October 10, 2008 Sorry, I meant when you browse the folders with the GUI of SSH. Basically my question was if you don't know the command, is there a file I can look in to view the OS version, distro etc.? Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661639 Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 Sorry, I meant when you browse the folders with the GUI of SSH. As I said. SSH is a network protocol, so that comment makes no sense at all. Basically my question was if you don't know the command, is there a file I can look in to view the OS version, distro etc.? Different distros create different files in different locations (if at all) for such things so no, there is no definative answer. You can find out what kernel your using by running uname. uname -a I'm sure I said all this in my first reply. Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661655 Share on other sites More sharing options...
Maq Posted October 10, 2008 Author Share Posted October 10, 2008 You did not mention the uname -a command in your first post. The SSH client that I use (from ssh.com) has a GUI terminal where you can browse the directories and files. My question was, is there a standard folder I can look in to find the OS information? From your response I guess the answer is no. Link to comment https://forums.phpfreaks.com/topic/127749-solved-ssh-command-to-find-os/#findComment-661672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.