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.
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
SourceBack
Member
in Help
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
time to upgrade to /dev/one ?
:-)
You cannot begin a command by rm -rf /dev by accident...
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?
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.