Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a following question: Is it possible to rename a file as " init " (same as /sbin/init )? if it's not possible, could you please explain why ...
  1. #1
    Just Joined! Charles1718's Avatar
    Join Date
    Oct 2011
    Posts
    4

    Question Is it possible to rename a file as "init" ?

    Hi,

    I have a following question:

    Is it possible to rename a file as "init" (same as /sbin/init)? if it's not possible, could you please explain why a file cannot be named as init ?

    P.S. is it possible that this file / Programm /sbin/init can be renamed?


    Thanks,
    Charles

  2. #2
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    You can name a file anything you want. To call it, you need to use the full path. In your case, you could either call /programm/sbin/init or rename that file and call /programm/sbin/some-other-filename. Either way will work.

Posting Permissions

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