CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS OPERATING SYSTEMS LINUX DETAILS
    Question :
    What command should you use to check the number of files and disk space used and each user's defined quotas?
    Category Linux Interview Questions
    Rating (0.4) By 1049 users
    Added on 12/11/2004
    Views 3595
    Rate it!
    Answers:

    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.



    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.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    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

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.046875 Seconds