create file with 20mb with quota

Hello ,

does anyone know how to create a file with 20mb with the help of quota without root and as a normal user?

thank u in advance

You are trying to get around the quota imposed on your home directory?

/tmp and /var/tmp are two of the usual places to create large files that do not need to stay around forever.

well...the file has to created in the home directory ....thats the problem

Hi.

You could try a link from home to tmp ... cheers, drl

if u could explain it in detail how it could be done would be nice..as i new to quota command.

thank u in advance

Hi.

Assuming that you have the file in /tmp, say with the name "q", then try each of the following while in your home directory:

ln /tmp/q q
ln -s /tmp/q q

I'd guess that the second will be more successful.

Note that code that is written to expect files to be in certain places is not very flexible.

Look over the man pages on quota and ln to make sure that we are discussing the right concept and command(s):

man ln
man quota

... cheers, drl