Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Accidentally Deleted /dev/zero
New on LowEndTalk? Please Register and read our Community Rules.

Accidentally Deleted /dev/zero

Hello

I accidentally deleted /dev/zero on CentOS 6, the system is still running but I don't know if this will cause problems?

If yes how I can fix it?

Thanks:)

Comments

  • mknod /dev/zero c 1 5
    chmod 666 /dev/zero

    Thanked by 1SourceBack

    -

  • prometeusprometeus Member, Provider

    time to upgrade to /dev/one ?

    :-)

    Thanked by 3juan Amfy fapvps
    IperWeb & Prometeus, Hosting Provider since 1997. iwStack cloud infrastructure
  • You cannot begin a command by rm -rf /dev by accident... ;)

  • @nixcom said:
    You cannot begin a command by rm -rf /dev by accident... ;)

    yes you can :)

  • @Bogdacutuu said:
    yes you can :)

    By accident? No way. ;)

  • Just curious, why do Linux needs things like /dev/zero and /dev/null to run? As far as I know it is just a file with...0s?

    http://BornIn.Asia - FREE shared hosting and subdomain service for LET members! Click here to see how to get one yourself!
    96Forum: Low End VPS Discussions. Selling domains with GApp with various user counts (10 year reg incl. for some)

  • @zhuanyi said:
    Just curious, why do Linux needs things like /dev/zero and /dev/null to run? As far as I know it is just a file with...0s?

    you can send stuff to /dev/null to make it disappear

  • @Bogdacutuu said:
    you can send stuff to /dev/null to make it disappear

    Yes, that I understand but why the OS themselves would need those two? As far as I know if you don't have /dev/null you can't really boot up Ubuntu/Debian.

    http://BornIn.Asia - FREE shared hosting and subdomain service for LET members! Click here to see how to get one yourself!
    96Forum: Low End VPS Discussions. Selling domains with GApp with various user counts (10 year reg incl. for some)

Sign In or Register to comment.