Find the answer to your Linux question:
Results 1 to 3 of 3
Hello # mkinitrd -v /boot/initrd-$(uname -r).img $(uname -r) what does it [$(uname -r).img $(uname -r) mean? This question was asked me in an interview... Thanks and Regards Vinod Pundir...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    48

    Mkinitrd


    Hello

    # mkinitrd -v /boot/initrd-$(uname -r).img $(uname -r)

    what does it [$(uname -r).img $(uname -r) mean?

    This question was asked me in an interview...

    Thanks and Regards
    Vinod Pundir

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute uname -r command in Terminal. You will have the answer.
    In mkinitrd command, $[uname -r] is being replaced with its output.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined! hunter_thom's Avatar
    Join Date
    Apr 2010
    Posts
    89
    uname -r returns the kernel version (i.e. 2.6.31.6). By appending it to the mkinitrd command, you can easily differentiate between initrd files on a machine holding multiple kernels.

  4. $spacer_open
    $spacer_close

Posting Permissions

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