Find the answer to your Linux question:
Results 1 to 10 of 10
I am so new to Linux I haven't been born. A friend is helping me via email and I was told to enter the command uname -r into the terminal ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Question kernal command uname -r not working


    I am so new to Linux I haven't been born.

    A friend is helping me via email and I was told to enter the command uname -r into the terminal page to find out what version the lap top is running. I have typed uname every possible combination, and I only get "command not found". Any ideas to help me help him?

    Thanks,
    Patt
    Last edited by Patth9; 06-21-2008 at 01:04 PM. Reason: typo

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    Try:
    cat /proc/version

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4
    No, tried cat /proc/version and cat/proc/version, still the message "no such file or directory"

    Patt

  4. #4
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    Weird indeed, uname utility is missing, /proc is apparently not mounted.
    Try:
    Code:
    ls /boot
    This should at least give us the kernel name.

  5. #5
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4
    I wish. Still the same, no such file or directory. I tried 1s /boot even 1s/boot, but to no avail.

    Patt

  6. #6
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    Lowercase L (l), not one (1).

  7. #7
    Just Joined!
    Join Date
    Jun 2008
    Posts
    34

    uname

    uname is normally located in /bin. So please do a "ls -l /bin/uname" and post the result.
    If it's found, please do "echo $PATH" and post the result.
    If it's not found, please do "rpm -qa | grep coreutils" and post the result.
    Thanks.

  8. #8
    Just Joined!
    Join Date
    Jun 2008
    Posts
    34
    You may also try "dmesg | grep version". If the message buffer is not wrapped, you will get a line similar to the following containing your linux kernel info.:
    Linux version 2.6.22.5-31-default (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux)) #1 SMP 2007/09/21 22:29:00 UTC

    -Steve

  9. #9
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4
    Well, it helps typing in the correct message. This is what came up. I'm pasting it in hopes this is actually what my friend is looking for. I didn't do the other tasks Steve Yau suggested, will see if what I have is enough.

    Just want you thank you, Segfault, for you patients and help. Will repost if this is what I needed.

    Patt

    config@ kernel.h@
    System.map-2.6.22.15.tex3
    config-2.6.22.15.tex3 kernel.h-2.6.22.15.tex3 us.klt
    grub/ memtest-2.01.bin vmlinuz@
    initrd-2.6.22.15.tex3.img message-graphic vmlinuz-2.6.22.15.tex3
    initrd.img@ System.map@
    [bob@localhost ~]$

  10. #10
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    PCLinuxOS

    Steve's "dmesg | grep version" was a good advice, too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •