Sponsored Content
Top Forums Shell Programming and Scripting How find Linux version from command line? Post 302915163 by Litu1988 on Monday 1st of September 2014 07:24:10 AM
Old 09-01-2014
How find Linux version from command line?

Hi,

I am looking to extract linux version from /etc/*-release file.

I am specifically tring to avoid use of awk command here. would be great if can do done via sed or grep command.

Red Hat Enterprise Linux Server release 6.5 (Tikanga)

output must be 6

regards,
Litu
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is there a linux version of dos2unix command?

I'm having some probs and i know in unix i can do a dos2unix command and fix it, and it looks like that may be my problem now, but linux doesn't have dos2unix of course, anything comparable? (4 Replies)
Discussion started by: kymberm
4 Replies

2. Shell Programming and Scripting

using the perl version of the find command...

hi, i am looking through the perl documentation in the man pages for the first time but I have looked at some other reference giudes before (at a glance) and remember that there is a find command used by perl can any one give me a structured example of that command and how it works and if possible... (2 Replies)
Discussion started by: moxxx68
2 Replies

3. UNIX for Dummies Questions & Answers

Redhat linux command to check Version

Hi All, I need to know RedHat linux version installed on a different servers. I know uname -a or /proc/version Is any other command to know the Linux version???? When we telnet to any of the Linux server, the version shows very clearly like Red Hat Enterprise Linux ES release 3 (Taroon... (1 Reply)
Discussion started by: bache_gowda
1 Replies

4. Shell Programming and Scripting

unix command to find the version of Informix database

Hi All Please let me know if there is command to check the version of the informix database installed..? Thanks in advance. Suresh (4 Replies)
Discussion started by: sureshg_sampat
4 Replies

5. UNIX Desktop Questions & Answers

Finding USB version on command line

Would anyone happen to know what to grep for finding the version of the USB ports are on the system through the command line? Thanks. (1 Reply)
Discussion started by: eightysix
1 Replies

6. Ubuntu

Download latest Ubuntu version from linux command

I have ubuntu 10.4 on my system and want to download newer Ubuntu version like 11.04. Is there any linux command(something like apt-get source used for downloading kernel source) using which I can download directly the newer ubuntu relaease? (2 Replies)
Discussion started by: rupeshkp728
2 Replies

7. Shell Programming and Scripting

How to find duplicate line in Linux?

Hi, Gurus, I need find the duplicate record in unix file. what command I should use for this. Thanks in advance (4 Replies)
Discussion started by: ken6503
4 Replies

8. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies

9. Shell Programming and Scripting

Linux find command seems to not transmit all the result to the '-exec command'

Hello. From a script, a command for a test is use : find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc' Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies

10. UNIX for Beginners Questions & Answers

How to find weblogic version in Linux?

Hi All, I am able to find the weblogic version in Centos 7 by using below command but i am not sure what is java -cp is doing in below command. Can someone please help. unable to find info from java man page as well. # cd /opt/oracle/weblogic/wlserver*/server/lib && java -cp... (1 Reply)
Discussion started by: sravani25
1 Replies
RHN_CHECK(8)							  Red Hat Network						      RHN_CHECK(8)

NAME
rhn_check - check for queued actions on RHN and execute them SYNOPSIS
/usr/sbin/rhn_check [-v] [--verbose] DESCRIPTION
rhn_check is a client program that connects to the Red Hat Network backend servers and retrieves information associated with the queued actions for this particular system. This script reads the digital server ID from /etc/sysconfig/rhn/systemid and uses that to identify the machine to the Red Hat Network. Upon successfull authentication, rhn_check will start processing the queued actions sequentially. ACTION TYPES
The following types of actions are currently processed by rhn_check: action type description () () refresh This action will refresh the hardware or software profiles of this machine with Red Hat Network. This fucntion is called as refresh(hardware) or refresh(rpmlist) new_systemid This action is used by the RHn Backend to update the Digital system ID of this machine with a new one. update_packages This action will trigger rhn_check into running a package update for a list of packages queued from the Red Hat Network. rhn_check will use modules from the up2date client to download the packages, solve dependencies and install the on the system. FILES
/etc/sysconfig/rhn/systemid The digital server ID for this machine if the system has been registered onto Red Hat Network. This file does not exist otherwise. /var/spool/up2date This directory is used by up2date to store package headers and RPM packages downloaded from Red Hat Network SEE ALSO
man pages for up2date(8) and rhnsd(8). AUTHORS
Cristian Gafton <gafton@redhat.com> Preston Brown <pbrown@redhat.com> ()
All times are GMT -4. The time now is 10:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy