Difference between revisions of "Review Questions for Test 1"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
===1. What command will list all partitions on all hard drives? ===
+
===  What command will list all partitions on all hard drives? ===
 
* fdisk
 
* fdisk
 
* '''fdisk -l'''
 
* '''fdisk -l'''
Line 5: Line 5:
 
* FDISK
 
* FDISK
  
===2. what is wrong with this statement?===
+
=== what is wrong with this statement?===
 
dd if=/dev/zero of=/tmp/mytest.img bs-1024 count-10000
 
dd if=/dev/zero of=/tmp/mytest.img bs-1024 count-10000
  
Line 13: Line 13:
 
*if and of in the wrong order
 
*if and of in the wrong order
  
=== 3. Which directory usually contains the GNU/Linux boot files?===
+
=== Which directory usually contains the GNU/Linux boot files?===
  
 
* /  
 
* /  
Line 20: Line 20:
 
* /home directory of user who is booting the system
 
* /home directory of user who is booting the system
  
=== 4. The user password are stored in which file? ===
+
=== The user password are stored in which file? ===
  
 
* /etc/passwd
 
* /etc/passwd
Line 27: Line 27:
 
* none of above
 
* none of above
  
=== 5. Grub is a boot loader. It is used to load Linux kernel & driver module files in to memory by reading the configuration file. The name and path of GRUB configuration file is ===
+
=== Grub is a boot loader. It is used to load Linux kernel & driver module files in to memory by reading the configuration file. The name and path of GRUB configuration file is ===
  
 
* /etc/grub/grub.conf
 
* /etc/grub/grub.conf
Line 34: Line 34:
 
* /boot/grub.conf
 
* /boot/grub.conf
  
=== 6. resize2fs command is used ? ===
+
=== resize2fs command is used ? ===
  
 
* to enlarge or shrink the size of partitions on harddisks
 
* to enlarge or shrink the size of partitions on harddisks
Line 41: Line 41:
 
* ''' to enlarge or shrink the ext2 and ext3 file systems'''
 
* ''' to enlarge or shrink the ext2 and ext3 file systems'''
 
   
 
   
=== 7. The Name and path of the linux kernel is ===
+
=== The Name and path of the linux kernel is ===
  
 
* /boot/vmlinux.2.6.25.14-108.fc9.i686
 
* /boot/vmlinux.2.6.25.14-108.fc9.i686
Line 48: Line 48:
 
* ''' /boot/vmlinuz-2.6.26.3-29.fc9.i686 '''
 
* ''' /boot/vmlinuz-2.6.26.3-29.fc9.i686 '''
  
=== 8. Linux need at least two minimum partitions for installation named===
+
=== Linux need at least two minimum partitions for installation named===
  
 
* /root & swap
 
* /root & swap
Line 55: Line 55:
 
* /root & /red knot
 
* /root & /red knot
  
=== 9. File system must requires a container. The container may be ===
+
=== File system must requires a container. The container may be ===
  
 
* Disk Partition
 
* Disk Partition

Revision as of 01:31, 15 October 2008

What command will list all partitions on all hard drives?

  • fdisk
  • fdisk -l
  • partprobe
  • FDISK

what is wrong with this statement?

dd if=/dev/zero of=/tmp/mytest.img bs-1024 count-10000

  • wrong of file type
  • cannot have zeroes in an img file
  • typing error
  • if and of in the wrong order

Which directory usually contains the GNU/Linux boot files?

  • /
  • /root
  • /boot
  • /home directory of user who is booting the system

The user password are stored in which file?

  • /etc/passwd
  • /etc/shadow
  • /etc/password
  • none of above

Grub is a boot loader. It is used to load Linux kernel & driver module files in to memory by reading the configuration file. The name and path of GRUB configuration file is

  • /etc/grub/grub.conf
  • /root/grub.conf
  • /boot/grub/grub.conf
  • /boot/grub.conf

resize2fs command is used ?

  • to enlarge or shrink the size of partitions on harddisks
  • to change the physical volumes (PVs)
  • to enlarge or shrink the size of Logical Volumes (LVM)
  • to enlarge or shrink the ext2 and ext3 file systems

The Name and path of the linux kernel is

  • /boot/vmlinux.2.6.25.14-108.fc9.i686
  • /boot/initrd.2.6.25.14-108.fc9.i686
  • /boot/Linus.torvalds.2.6.25.14-108.fc9.i686
  • /boot/vmlinuz-2.6.26.3-29.fc9.i686

Linux need at least two minimum partitions for installation named

  • /root & swap
  • /root & /boot
  • / & swap
  • /root & /red knot

File system must requires a container. The container may be

  • Disk Partition
  • File
  • Logical volume (LVM)
  • All of above