CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies

Search Interview Questions

Question: What command should you use to check the number of files and disk space used and each user's defined quotas?

Answer: Answer: repquota

The repquota command is used to get a report on the status of the quotas you have set including the amount of allocated space and amount of used space.



Category Linux Interview Questions & Answers - Exam Mode / Learning Mode
Rating (3.6) By 22 users
Added on 12/11/2009
Views 2217
Rate it!
Question: What command should you use to check the number of files and disk space used and each user's defined quotas?
Answer:

Answer: repquota

The repquota command is used to get a report on the status of the quotas you have set including the amount of allocated space and amount of used space. Source: CoolInterview.com



If you have the better answer, then send it to us. We will display your answer after the approval

Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.

Post your answer here

Inform me about updated answers to this question.
Related Questions
View Answer
You have set quotas for all your users but half of your users are using more space than they have been allotted. Which of the following could be the problem?
Choose one:

a. You have too many users on your system.
b. Users' home directories are located on two different partitions.
c. Your kernel does not support setting disk quotas.
d. You did not turn quotas on with the quotaon command.
View Answer
One of your users calls to tell you that he cannot save a new file he has created in his home directory. You check his disk quota and find that he is using less than 50 percent of the space he is allotted. What could be the problem?
Choose one:

a. He is presently a member of a group that has exceeded its disk space quota.
b. He has not named the file correctly.
c. The system is corrupt.
d. He needs to specify the absolute path when naming the file.
View Answer
After copying a file to a floppy disk, what should you do before removing the disk?
View Answer
What is contained in the directory /proc?
Choose one:

a. System information
b. Administrative procedures
c. Boot procedures
d. Documentation on your system
View Answer
You use the mount -a command to mount all your filesystems, however, you cannot access your CD-ROM. What could be the problem?
Choose one:

a. The CD-ROM is not defined in the fstab file.
b. The CD-ROM cannot be mounted using the mount -a command.
c. The command mount -a is not a valid command.
d. The correct syntax to mount all filesystems is mount fstab.
View Answer
You want to make it possible for your users to mount floppy disks. What do you need to do?
Choose one:

a. Tell your users the password for root as floppies can only be mounted by root.
b. Edit the mtab file and add the user option on the floppy entry.
c. Edit the fstab file and add the ro option on the floppy entry.
d. Edit the fstab file and add the user option on the floppy entry.
View Answer
You have a new application on a CD-ROM that you wish to install. What should your first step be?
Choose one:

a. Read the installation instructions on the CD-ROM.
b. Use the mount command to mount your CD-ROM as read-write.
c. Use the umount command to access your CD-ROM.
d. Use the mount command to mount your CD-ROM as read-only.
View Answer
You issue the command mount without any options and the following output is displayed
/dev/hda1 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hda9 on /home type ext2 (rw)
/dev/hda7 on /tmp type ext2 (rw)
/dev/hda5 on /usr type ext2 (rw)
/dev/hda6 on /var type ext2 (rw)
What does this output mean?

Choose one:
a. This is a listing of all the available filesystems that may be mounted on your system and is taken from the /etc/fstab file.
b. This is a listing of all the mounted filesystems on your system and is taken from the /etc/mtab file.
c. This is a listing of all the available filesystems that may be mounted on your system and is taken from the /etc/mtab file.
d. This is a listing of all the mounted filesystems on your system and is taken from the /etc/fstab file.
View Answer
You have a file called docs.Z but do not know what it is. What is the easiest way to look at the contents of the file?
Choose one:

a. Use zcat to display its contents.
b. Use uncompress to expand the file and then use emacs to display the files contents.
c. Copy the file to a floppy disk and uncompress it under Windows.
d. Use tar -xt to display the file's contents.
View Answer
You created a tarfile called myfiles.tar containing copies of all the files in your home directory. In order to save space you compress this file using gzip. After completing the operation, you do a listing of the contents of the directory to see how much smaller the compressed file is. How can you use the information from the listing to determine the percentage of compression?
Choose one:

a. Only the compressed file will be listed and not the tarfile.
b. Divide the reported size of the tarfile by the reported size of the compressed file.
c. Neither the tarfile nor the compressed file are listed as they are both moved to another directory by default.
d. Divide the reported size of the compressed file by the reported size of the tarfile.
View Answer
You are using tar to create a tarfile of the files contained in the /home/bob/memos directory. After making the /home/bob/memos directory your working directory, which of the following commands will create the file?
Choose one:

a. tar cf memos.tar .
b. tar xf memos.tar .
c. tar cf memos.tar /home/bob/memos
d. tar xf memos.tar /home/bob/memos
View Answer
You want to verify which lines in the file kickoff contain 'Bob'. Which of the following commands will accomplish this?
Choose one:

a. sed -n /Bob/p kickoff
b. sed /Bob/p kickoff
c. sed -n 'Bob p' kickoff
d. sed /Bob/ kickoff
View Answer
You search for the word prize in the file kickoff by typing grep prize kickoff. However you also find lines containing prize as part of a word such as prizes but do not find Prize. How should you change the command
to find all occurrences of prize as a word and not part of a word?
Choose one:

a. grep -lc prize kickoff
b. grep -cw prize kickoff
c. grep -vi prize kickoff
d. grep -iw prize kickoff
View Answer
You want to know how many lines in the kickoff file contains 'prize'. Which of the following commands will produce the desired results?
Choose one:

a. grep -n prize kickoff
b. grep -c prize kickoff
c. grep -v prize kickoff
d. grep prize kickoff
View Answer
You have a file named 'kickoff' and would like to find every line beginning with a number. Which of the following commands will accomplish this?
Choose one:

a. grep [0-9] kickoff
b. grep ^[0-9] kickoff
c. grep [0-9]$ kickoff
d. grep $[0-9] kickoff
View Answer
You want to search for sale and sales. What regular expression should you use?
Choose one:

a. sale*
b. sale?
c. ^sale
d. sale$
View Answer
You want to construct a regular expression that will match all lines that end with 'stuff'. Which of the following expressions will do this?
Choose one:

a. ^stuff
b. stuff$
c. $stuff
d. stuff^
View Answer
You want to delete the following directories and their files
/home/bob/letters
/home/bob/sales
so you issue the command rmdir /home/bob/letters but the command fails. What went wrong?
Choose one:

a. You need to first delete the sales subdirectory and its files before deleting its parent directory, letters, and its files.
b. There is no such command as rmdir.
c. The rmdir command cannot remove directories that are not empty.
d. The rmdir command will not remove directory heirarchies.
View Answer
You need to create two new directories in your home directory. The first one is called /home/bob/letters and the second one is /home/bob/letters/sales. Which of the following command lines should you use?
Choose one:

a. mkdir /home/bob/letters/sales
b. mkdir letters; mkdir sales
c. mkdir letters/sales
d. mkdir home/bob/letters/sales
View Answer
You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem?
Choose one:

a. You do not have delete rights to the file called sales.mem.
b. You need to use the -i option with rm to delete a file.
c. You do not have write rights to the directory containing the sales.mem file.
d. You are not the owner of the file sales.mem.
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

View All Linux Interview Questions & Answers - Exam Mode / Learning Mode




India News Network
Latest 20 Questions
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
"Holiday Packages" announced as an advertisement are an example of _________: (a) Offer (b) Counter Offer (c) Invitation to Offer (d) None of the above
A match fixing contract between a player and a broker is a: (a) Valid Contract (b) Unenforceable Contract (c) Void Contract (d) Illegal Contract
When a bookseller sells a book on cash payment then it is called as ___________: (a) Unilateral Contract (b) Bilateral Contract (c) Executed Contract (d) Executory Contract
____________ agreements are created by situation: (a) Written (b) Oral (c) Void (d) Implied
Cache = 0.03125 Seconds