Solved

Recreate /dev/null

Posted on 2000-04-12
2
254 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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

707 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