Red hat linux how

How do I determine RHEL (Red Hat Enterprise Linux) version?

I am a new Linux sysadmin and user. I think we have five RHEL (Red Hat Enterprise Linux) Dell servers in our office. How do I determine the RHEL version? How do I find out RHEL kernel version from the ssh session created by putty.exe?

Introduction – Red Hat Enterprise Linux (RHEL) operating system created for enterprise customers. It is prevalent among business users, developers, and sysadmin due to long-term support, stability, and high-quality open-source software. This page shows how to find out the RHEL version from the command line.

Tutorial details
Difficulty level Easy
Root privileges No
Requirements RHEL
Est. reading time 2 minutes

How do I determine RHEL version?

To display the Red Hat Enterprise Linux version use any one of the following command/methods:

  1. To determine RHEL version, type:
    cat /etc/redhat-release
  2. Execute command to find RHEL version:
    more /etc/issue
  3. Show RHEL version using command line, run:
    less /etc/os-release
  4. Another option to get Red Hat Enterprise Linux version:
    less /etc/system-release-cpe
  5. RHEL 7.x or above user can use the hostnamectl command to get RHEL version

Let us see all commands in details for finding and displaying Red Hat Enterprise Linux (RHEL) version on screen.

How to check RHEL / Redhat version

Type the following cat command:
cat /etc/redhat-release
Sample outputs:

To display the RHEL kernel version, type:
uname -r
uname -mrs

How to confirm RedHat Enterprise Linux version using hostnamectl

Simply run the following hostnamectl command:
hostnamectl
Sample outputs:

Other commands to find out RHEL version

One can use the rpm command:
rpm —query redhat-release-server
Sample outputs:

  • No ads and tracking
  • In-depth guides for developers and sysadmins at Opensourceflare✨
  • Join my Patreon to support independent content creators and start reading latest guides:
    • How to set up Redis sentinel cluster on Ubuntu or Debian Linux
    • How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
    • How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
    • A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
    • How to protect Linux against rogue USB devices using USBGuard

Join Patreon

Another option is to run lsb_release command. However, you need to install a package named redhat-lsb-core using the yum command as follows
sudo yum install redhat-lsb-core
## now get RHEL version ##
lsb_release -d
lsb_release -a

A sample session from my RHEL 7 server

Let us run all commands on RHEL version 7:

Finding or determining RHEL server version using command line

Checking RHEL version and store in a shell variable

The syntax is as following for the grep command:

Источник

Understanding Linux

As IT systems and workloads get more complex, the underlying architecture and operating system must be reliable, scalable, and performance driven. Linux is the stable foundation for all IT workloads and deployments—whether traditional or innovative—from bare metal to virtual, cloud, and containers.

What is Linux?

Linux® is an open source operating system (OS). It was originally conceived of and created as a hobby by Linus Torvalds in 1991. Linus, while at university, sought to create an alternative, free, open source version of the MINIX operating system, which was itself based on the principles and design of Unix. That hobby has since become the OS with the largest user base, the most-used OS on publicly available internet servers, and the only OS used on the top 500 fastest supercomputers.

Perhaps the best thing about Linux is that it’s open source. Linux is released under the GNU General Public License (GPL). That means that anyone can run, study, share, and modify the software. The modified code can also be redistributed, and even sold, but must be done so under the same license. This differs greatly from traditional operating systems—Unix and Windows, for example—which are proprietary, locked-down, and delivered as-is and unmodifiable.

What can you do with Linux?

Linux can serve as the basis for nearly any type of IT initiative, including containers, cloud-native applications, and security. It’s at the core of some of the biggest industries and businesses in the world—from knowledge-sharing websites like Wikipedia to the New York Stock Exchange to mobile devices running Android (which is a specific-use distribution of the Linux kernel with complimentary software). Linux has grown over the years to be the de facto standard for running highly available, reliable, and critical workloads in datacenters and cloud deployments. It has multiple use cases, distributions, target systems and devices, and capabilities—all depending on your needs and workloads.

Microsoft has embraced Linux and open source in other ways, producing a SQL Server for Linux and open sourcing their .NET framework (.NET Core/Mono) so that any platform can run it, opening up the capability for Linux-using developers to make applications with that framework. By 2027, all SAP customers will be moving to SAP HANA—an in-memory, relational database management system—which only runs on Linux. As of 2017, 50% of the SAP market are Windows customers.

When it comes to cloud, even on Microsoft’s Azure, more than 60% of the images on the Azure Marketplace and nearly ⅓ of virtual machines are Linux-based. Meanwhile, Amazon Web Services and Google Cloud Platform offer up multiple distributions of Linux in their publicly available images.

Linux continues to be the operating system of the future, with more and more systems depending on its stability and extensibility.

How easy is it to use Linux?

Very easy. Almost every Linux distribution comes with a graphic-user interface (GUI) that makes point-and-click actions very easy. These GUIs revolutionized computing during the OS wars in the late 1970s by humanizing software—making it more visual. More real.

But at some point, you might need to ask the computer to do something outside the prepackaged bucket of actions a GUI can perform. At that point, you need to open up the command line—the strips of code you see tech-savvy geniuses in TV and movies feverishly typing away at. But that Hollywood treatment makes the command line (a staple of open source OSs) seem like something impossible to master.

The truth is, the command line is the most straightforward use of a computer. But there are some Linux distros—like our latest release of Red Hat Enterprise Linux—that make using open source OSs even easier.

Is Red Hat the same thing as Linux?

Red Hat initially saw success supporting a custom distribution of Linux, then named “Red Hat® Linux.” The growth and reliability of Red Hat Linux made the two synonymous in many people’s minds. Since those early days, Red Hat’s solutions and technologies have built on this success to include nearly all aspects of the IT stack.

Red Hat curates, secures, and supports a Linux distribution—now known as Red Hat Enterprise Linux, a change that took place in 2003 as a result of merging with the Fedora Linux Project. Today, Red Hat Enterprise Linux supports and powers software and technologies for automation, cloud, containers, middleware, storage, application development, microservices, virtualization, management, and more.

Linux plays a major role as the core of many of Red Hat’s offerings. It’s far beyond simply being an operating systems for servers—Linux is the foundation for the modern IT stack.

An in-depth analysis of Linux and Linux distributions

Can you trust Linux? Is it secure?

Security isn’t something that you can simply deploy and forget. Security must be an integrated part of any business—and any deployment strategy.

The best security is layered.

Security isn’t a feature. Security is holistic. When it comes to IT security, the operating system plays a part in a larger story that goes from physical hardware to the people with access to that hardware as well as the applications deployed on the hardware. The broader view of security also takes into account risk management, compliance, and governance. Securing one aspect doesn’t mean everything is secure—you have to address all parts.

Because Linux is modular its security can be more easily managed. Each piece that makes up the Linux operating system has the ability to be audited, monitored, and secured. Linux has built-in tools and modules—like SELinux—to help further lock down, monitor, report, and remedy security issues. There’s also a concerted effort within Linux to separate the user space from the kernel space, meaning that the processes running throughout the system aren’t all necessarily available to users (depending on role privileges) and, likewise, the user processes aren’t available to the system as a whole. This is the key concept and enabler for technologies like containers and virtualization—which require distinct, separated, and secure workloads and permissions.

Of course there’s no such thing as a perfectly secure operating system, but there are steps you can take—and advantages that Linux offers—to get closer to being secure.

Read more about security

Why choose Red Hat?

Red Hat is one of the leading contributors to the Linux kernel and associated technologies in the greater open source community. Red Hat engineers help improve features, reliability, and security to make sure your infrastructure performs and remains stable—no matter your use case and workload. We offer a robust Linux training curriculum developed by our support team and field personnel, giving you guidance to make the most of your platform.

Red Hat Enterprise Linux powers the applications that run your business with the control, confidence, and freedom that comes from a consistent foundation across hybrid cloud deployments. With thousands of certified hardware, software, and cloud solutions, Red Hat is the world’s leading provider of open source, enterprise IT solutions and is trusted by 90% of the Fortune 500. Plus, customers running Red Hat Enterprise Linux gain economic advantages of more than US$1 trillion each year, just because of the OS.

Источник

Читайте также:  Software для windows mobile
Оцените статью