Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: Mkinitrd

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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,777
    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
    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
  •