LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   The quota command (https://www.linuxquestions.org/questions/linux-general-1/the-quota-command-352266/)

Gins 08-11-2005 02:04 PM

The quota command
 
quota -v
Shows current disk usage and limits.
The above is not true in my Linux. I have Mandrake Linux 10.0 version. Please read the following. Why is this?
[ka@c83-250-88-242 ka]$ quota
bash: quota: command not found
[ka@c83-250-88-242 ka]$




[ka@c83-250-88-242 ka]$ quota -v
bash: quota: command not found
[ka@c83-250-88-242 ka]$

trickykid 08-11-2005 02:48 PM

Either its not in your path or you don't have quota tools installed, etc.

locate quota

Gins 08-11-2005 03:37 PM

Thanks for the reply. What is the meaning of the following?

[ka@c83-250-88-242 ka]$ locate quota
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
[ka@c83-250-88-242 ka]$

Vgui 08-11-2005 04:00 PM

And I quote:
"You need to run the 'updatedb' command (as root) to create the database."

;)

demian 08-11-2005 04:01 PM

Quote:

Originally posted by Gins
Thanks for the reply. What is the meaning of the following?

[ka@c83-250-88-242 ka]$ locate quota
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
[ka@c83-250-88-242 ka]$

It means exactly what it says: the locate database doesn't exist. You can create it by running updatedb.

However, since quota usually is installed in /usr/bin I doubt it's a problem with your PATH variable. So most likely you don't have quota installed on your system.

Gins 08-11-2005 04:55 PM

I ran the command for no avail. What is the problem? The following is the output.

[root@c83-250-88-242 ka]# updatedb
[root@c83-250-88-242 ka]#

Vgui 08-11-2005 04:56 PM

There is no output because silence is golden, and it worked, so now run your original command and you should be good to go.

Gins 08-12-2005 10:00 AM

No it didn't work. Please read the following output. I tried even as a root user. What is the problem?

[ka@c83-250-88-242 ka]$ quota -v
bash: quota: command not found
[ka@c83-250-88-242 ka]$ quota
bash: quota: command not found



[ka@c83-250-88-242 ka]$ su root
Password:
[root@c83-250-88-242 ka]# quota
bash: quota: command not found


[root@c83-250-88-242 ka]# updatedb
[root@c83-250-88-242 ka]# quota
bash: quota: command not found
[root@c83-250-88-242 ka]#

Vgui 08-12-2005 10:02 AM

No, I mean the updatedb command worked. As the above poster had said, it seems like you don't have quota installed (as you can tell from "bash: quota: command not found". So go install it, then run it again.

Gins 08-12-2005 10:45 AM

Vgui

Could you please tell me where to find it? You could tell me a site to download or some other solution?

Vgui 08-12-2005 11:37 AM

I don't follow the packaging system of Mandrake [Mandriva] (which you say you are running in your profile), but I had thought they had some tool to get rpms from a central repository? You might want to check out the Mandriva docs, sorry I can't be more help :(
But yeah, once you find an rpm of quota, you can just install that and rerun quota and it should work.

Gins 08-12-2005 12:27 PM

Vgui

This is a tall order for me. I tried in vain to find out anything of the name 'quota' in Madriva related sites. I don't know what to do.

Vgui 08-12-2005 12:36 PM

Okay, I looked a little hard to try to help you out. I found a fairly good site at http://rpm.pbone.net/
From a search, I came up with:
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
http://rpm.pbone.net/index.php3/stat....i586.rpm.html

Those should all be for Mandrake / Mandriva 10, which as I said I assume you are using (right?). Hopefully one of those links has what you need. Remember, to install rpms it is the following command (as root):
Code:

rpm -ivh quota-bla-bla.rpm
If one of those quota rpms installs fine, you should be good to go for running the quota command.

Vgui 08-12-2005 12:39 PM

Also, you might want to look into urpmi / easy urpmi, it is some sort of GUI tool for installing RPMs from a Mandriva repository. If it sounds interesting, check out:

http://nanardon.homelinux.org/urpmi.setup/
http://easyurpmi.zarb.org/
http://www.urpmi.org/

Hopefully that would stop you from needing to hunt down individual rpms.
I don't know tons about Mandriva though, but I imagine if you talked to an advanced Mandriva user they could help you a lot more, especially with getting easy install RPMs setup and all that.

Gins 08-12-2005 12:52 PM

Vgui

I profoundly appreciate all you did to help me. You don't have any obligation to search on my behalf. It was very kind of you. I will come back to you later on.


All times are GMT -5. The time now is 05:47 PM.