Linked Questions
29 questions linked to/from How can I get distribution name and version number in a simple shell script?
131
votes
3
answers
224k
views
How do I identify which Linux distro is running? [duplicate]
We have some new hardware in our office which runs its own customized Linux OS.
How do I go about figuring which distro it's based on?
51
votes
8
answers
117k
views
How to know which Linux and which version I am using [duplicate]
When I run cat /proc/version command in terminal, I got below output:
Linux version 2.6.18-348.1.1.0.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP ...
3
votes
3
answers
651
views
How can I identify the variant of Unix/Linux from a shell? [duplicate]
Possible Duplicate:
How can I get distribution name and version number in a simple shell script?
Given a shell, how can I identify the variant of Unix/Linux that is running on a remote server?
4
votes
4
answers
520
views
How can I recognize that a certain Linux distribution is based on Debian, looking at file structure? [duplicate]
I have an unknown (let's assume uname -a returns nothing) Linux distribution I have root access to.
How can I verify, looking at file structure, that it is based on Debian?
2
votes
3
answers
1k
views
Command to yield just the linux distribution name only [duplicate]
Suppose I have a set of pre-requisites I need to install for any of a number of linux distributions. In this case, I'd need to switch my install expression against the distribution.
I am aware of ...
0
votes
1
answer
2k
views
Reading Linux distribution name from filesystem or command [duplicate]
I need to collect some system info from linux machines and decide what to do based on some distribution/version -specific conditionals.
To simplify my example, I concocted a fictitious ...
0
votes
1
answer
2k
views
uname -a doesn't show linux distribution version [duplicate]
I try to know the linux distribution version of a remote linux machine. After trying several commands, I still can't identify the linux distribution version
$ uname -a
Linux server1 2.6.18 #1 Thu Jan ...
0
votes
1
answer
367
views
Which tool can tell me the distribution of Linux that is running when uname is generic? [duplicate]
I normally use uname to determine which OS is running, but I have accounts on several machines where I don't know the particular distribution that is running.
When uname returns Linux, I tried uname -...
2
votes
2
answers
197
views
What Linux distro is this? [duplicate]
I ran uname -a but I still have no clue what distro this is. The result:
Linux (none) 3.18.0 #4 Sun May 29 03:28:04 CEST 2016 i686 GNU/Linux
All I can get from that is that it has a i686 processor, ...
9
votes
0
answers
526
views
How to determine distribution from command line? [duplicate]
Possible Duplicate:
Bash: Get Distribution Name and Version Number
Given (root) access to a machine with Linux through the command line(over ssh), how can I determine which distribution is ...
0
votes
2
answers
251
views
How to identify a drive's distro/OS based on its root folder [duplicate]
I have several hard drives loaded with Linux/UNIX-style operating systems. Is there some way to tell the distribution or operating system installed on the drive without booting into each individually? ...
1
vote
2
answers
160
views
Linux Operating System and Version, Regardless of Distibution [duplicate]
I would like to know a linux command that can tell me the operating system and version regardless of what distribution I am using as it seems different distributions have a different way of doing this....
1
vote
0
answers
47
views
How can I get my Linux distribution name and version using the command line ? [duplicate]
I have Linux Mint Version 7.1 Rebecca. What do I need to write in the command line in order to find this information. I tried uname -a , but I got informations about my computer name, Kernel Version ...
247
votes
14
answers
747k
views
How to determine Linux kernel architecture?
uname -m gives i686 and uname -m gives i686 i386 output in Red Hat Enterprise Linux Server release 5.4 (Tikanga) machine. I need to install Oracle Database 10g Release 2 on that machine. So, how can I ...
80
votes
11
answers
90k
views
How can I reliably get the operating system's name?
Say I am logged into a remote system, how can I know what it's running? On most modern Linuxes (Linuces?), you have the lsb_release command:
$ lsb_release -ic
Distributor ID: LinuxMint
Codename: ...
117
votes
4
answers
157k
views
How do I know which version of Debian I'm running?
In a tutorial, I'm prompted "If you are running Squeeze, follow these instructions..." and "If you are running Wheezy, follow these other instructions..."
When I run uname, I get the following ...
47
votes
3
answers
16k
views
Which are the standard commands available in every Linux based distribution?
I would like to know which are the standard commands available in every Linux system.
For example if you get a debian/ubuntu/redhat/suse/arch/slackware etc, you will always find there commands like:
...
21
votes
5
answers
25k
views
Grab ID of OS from /etc/os-release
When I cat /etc/os-release I get the following:
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2018.1"
VERSION_ID="2018.1"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http:...
36
votes
6
answers
104k
views
Identifying the system package manager
Is there a way (from a script) to identify the default system package manager?
To clarify, what I want to do is run a given command and, on Debian or any of its derivatives it'll return something ...
5
votes
4
answers
2k
views
if with regex in bash code
In bash I did the following. This if expression will evaluate to true if the Redhat version is 7.5 or 7.6.
if [[ ` cat /etc/redhat-release | awk '{print $7}' ` == "7.5" ]] || [[ ` cat /etc/redhat-...
10
votes
2
answers
9k
views
The version number of my debian
My os was installed from debian 8.5.0 amd64.
Execute commands after installation.
cat /etc/issue
Debian GNU/Linux 8 \n \l
No 8.5 here.
cat /proc/version
Linux version 3.16.0-4-amd64 (debian-kernel@...
12
votes
4
answers
1k
views
How to write a script that effectively determines distro name?
I saw this post on all the different ways to find out what distro is installed, so I'm trying to write a script that tries them all. The possible commands include:
$ cat /etc/lsb-release
$ cat /etc/...
5
votes
3
answers
27k
views
how do i check if my linux is deb or rpm
The skype website offers downloads for linux in 2 versions DEB and RPM.
I don't know which one is right for my computer.
0
votes
2
answers
5k
views
Can't tar files: Refusing to read archive contents from terminal
I have host without dpkg so I need to install it.
I followed the instructions from here and here.
On both of these answers they wrote that I need to download the file:
wget http://security.ubuntu.com/...
0
votes
1
answer
2k
views
How do we check OS version and count of security patches to be applied on the Linux server?
I have written a bash script which is checking OS version and count for available security patches according to OS distribution.
The query here is the script is not working for Ubuntu OS.
The script ...
0
votes
1
answer
2k
views
How do I see if the current distro is Arch-based, Debian-based, etc [duplicate]
I'm writing a shell script that should be able to be used with a variety of Linux distros. I want to see what base the distro is, without hardcoding everything (since there are hundreds of distros), ...
3
votes
1
answer
946
views
Script to find the default Desktop Environment?
Assume a Linux Desktop Environment system is installed. When powered on and credentials entered, whatever Desktop Environment is started i would consider the default Desktop Environment. The user may ...
-2
votes
1
answer
841
views
Find package (OS distribution) manager for automation [closed]
I want to automate some installation process. For that, I need to know whether it is a DEB or RPM distribution, Im able to find some scripts for find the OS distribution.
I need to write a script to ...
1
vote
0
answers
71
views
How to determine that we are Bodhi Linux or other branches when the ouput for $NAME is "Ubuntu"
On Bodhi linux, if I do this :
. /etc/os-release
echo $NAME
the output is : "Ubuntu", this makes it extra hard to determine what is what for a script.
and this will be important when calling apps ...