Solved

Recreate /dev/null

Posted on 2000-04-12
2
252 Views
Last Modified: 2013-12-15
How do you (recreate) chmod /dev/null?
0
Comment
Question by:ggt030456
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
rsyslog raw message 4 60
Understanding ping command in Ubuntu 5 64
simple bash script needed to unpack tar.gz 4 60
RHEL 6.0 - Does it support SHA2? 7 39
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

732 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