Solved

Recreate /dev/null

Posted on 2000-04-12
2
241 Views
Last Modified: 2013-12-15
How do you (recreate) chmod /dev/null?
0
Comment
Question by:ggt030456
2 Comments
 
LVL 2

Accepted Solution

by:
fremsley earned 100 total points
ID: 2708295
Have you deleted /dev/null? As root:

  mknod /dev/null c 1 3

The access mode should be rw-rw-rw- As root:

  chmod a+rw /dev/null
  chmod a-x /dev/null
0
 

Author Comment

by:ggt030456
ID: 2709900
No, I didn't delete /dev/null, instead I was attempting to blank a file and somehow changed the attributes on /dev/null to rw-rw-rw...a regular text file. ( i guess I transposed the filenames)

Thanks for the quick reply. The mistake didn't hurt until I decided to reboot the box, then all heck broke loose!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now