LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2008, 02:05 PM   #1
varunkant
Member
 
Registered: Jun 2008
Location: shimla
Distribution: redhat linux,Ubuntu 8.10
Posts: 41

Rep: Reputation: 15
Smile 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...
 
Old 06-13-2008, 02:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
A stupid or incomplete one?
 
Old 06-13-2008, 02:27 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
I think it concerns file size limit on a per-user basis, but the question is bad formed.
 
Old 06-13-2008, 03:10 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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?
 
Old 06-14-2008, 03:48 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Quote:
Originally Posted by pixellany View Post
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.
 
Old 06-14-2008, 07:03 AM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 4,188
Blog Entries: 5

Rep: Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623Reputation: 1623
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.
 
Old 06-14-2008, 01:14 PM   #7
varunkant
Member
 
Registered: Jun 2008
Location: shimla
Distribution: redhat linux,Ubuntu 8.10
Posts: 41

Original Poster
Rep: Reputation: 15
Wink Thanks

This is a question of user quota....(sorry cudn't explain the question deeply coz of english prob)..hindi chlegi
 
Old 06-14-2008, 01:22 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 11:27 AM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 12:33 PM
/dev/cdrom links to /dev/sg0 instead of /dev/sr0 -why? Yalla-One Slackware 3 10-01-2006 08:02 PM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 09:14 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM


All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration