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.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

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, Host Rep

    time to upgrade to /dev/one ?

    :-)

    Thanked by 3juan Amfy fapvps
  • 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?

  • @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.

Sign In or Register to comment.