LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dd if=/dev/zero (https://www.linuxquestions.org/questions/linux-newbie-8/dd-if%3D-dev-zero-649102/)

varunkant 06-13-2008 01:05 PM

dd if=/dev/zero
 
Hello there..

I am doing RHCE and i have a question ---->


This should run by user neo,
dd if=/dev/zero of=userfile bs=3k count=2

This should not run by user neo,
dd if=/dev/zero of=userfile bs=6k count=2




what type of question it is?? and how to solve it...

Tinkster 06-13-2008 01:22 PM

A stupid or incomplete one?

colucix 06-13-2008 01:27 PM

I think it concerns file size limit on a per-user basis, but the question is bad formed.

pixellany 06-13-2008 02:10 PM

I hope varunkant is not sitting the test and sending us the questions in real time.....

Seriously--varunkant: What exactly is your question? What are you trying to do? What textbook are you using for this?

H_TeXMeX_H 06-14-2008 02:48 AM

Quote:

Originally Posted by pixellany (Post 3183964)
I hope varunkant is not sitting the test and sending us the questions in real time.....

lol, those are my thoughts too :)

I bet there was a paragraph before this describing neo's predicament, too bad he left it out.

Neo must save the world, but he has a problem. On his computer (while chatting with Morpheus), he is told to make an empty file using 'dd if=/dev/zero of=userfile bs=3k count=2', but he needs help (probably from Trinity or the other crew if they're still alive) because he must run this command 'dd if=/dev/zero of=userfile bs=6k count=2' but not as himself.

GazL 06-14-2008 06:03 AM

Ahh, yes, I know the answer to this one, you have to export THEREISNOSPOON=TRUE
before you run it.
:)

I must admit I'm intrigued by this now. Clearly most of the question has been lost in translation.
A 6K difference in resultant file size hardly seems significant so I doubt its limits related. Maybe this is a who can do what through 'sudo' question, but again the difference between the two command lines is so small it seems a really poor example/question if it is.

Somehow, I get the feeling we're never going to find out.

varunkant 06-14-2008 12:14 PM

Thanks
 
This is a question of user quota....(sorry cudn't explain the question deeply coz of english prob)..hindi chlegi

pixellany 06-14-2008 12:22 PM

Do you mean that you want a user to be able to create a 6kb file but not a 12Kb file? This does not make a lot of sense. I would think that quotas would relate to the total amount of disk space allocated.

I suggest that you give more context for the question. For example, in the textbook you are using, there should be a description of why you want to do this.


All times are GMT -5. The time now is 07:22 AM.