InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How Many Partitions Are Supported By Linux? |
|
Answer» The maximum number of PARTITIONS SUPPORTED by LINUX KERNEL is:
The maximum number of partitions supported by Linux kernel is: |
|
| 2. |
Why Partitions Required? |
|
Answer» Separate partitions improve PERFORMANCE by KEEPING DATA TOGETHER which reduces the disk head SEEK. Separate partitions improve performance by keeping data together which reduces the disk head seek. |
|
| 3. |
What Are The Tools Used To Create Or Manage Partitions? |
| Answer» | |
| 4. |
What Is The Function Of Partprobe? |
|
Answer» Reinitializes the KERNEL's in MEMORY COPY of the PARTITION table. Reinitializes the kernel's in memory copy of the partition table. |
|
| 5. |
How To Create A Filesystem? |
|
Answer» The mkfs COMMAND is USED to CREATE the FILESYSTEM.
The mkfs command is used to create the filesystem. |
|
| 6. |
What Is The Difference Between Ext2 And Ext3 Filesystem? |
|
Answer» EXT3 FILESYSTEM SUPPORTS JOURNALING, where as EXT2 does not. ext3 filesystem supports journaling, where as ext2 does not. |
|
| 7. |
What Are The Journaling Modes Supported By Ext3 Filesystem? |
| Answer» | |
| 8. |
How To Convert An Ext2 Filesystem To Ext3? |
|
Answer» Change the /etc/fstab to specify ext3 for DESIRED filesystem(s) Change the /etc/fstab to specify ext3 for desired filesystem(s) |
|
| 9. |
How To Connect A File System To A Linux Box? |
|
Answer» Mount command is used. |
|
| 10. |
How To Find Currently Mounted And Available Filesystems? |
|
Answer» USE MOUNT COMMAND WITHOUT ARGUMENTS. Use mount command without arguments. |
|
| 11. |
Which Filesystem Is Referred By Mount When Displaying Mounted & Available Filesystems? |
|
Answer» When mount command is invoked WITHOUT any arguments it REFERES to the /etc/mtab FILESYSTEM. When mount command is invoked without any arguments it referes to the /etc/mtab filesystem. |
|
| 12. |
How To Disconnect A Filesystem From A Linux Box? |
|
Answer» The umount command is used. |
|
| 13. |
Which Command Is Used To Display Information About The Processes Using A Filesystem? |
|
Answer» The fuser command is used. |
|
| 14. |
How To Display Who/what Is Acting On A Filesystem? |
|
Answer» # fuser -v mnt_point |
|
| 16. |
How To View All The Mounted And Unmounted Partitions? |
|
Answer» Use the FDISK -L COMMAND to view all the mounted and unmounted filesystems AVAILABLE on your system. Use the fdisk -l command to view all the mounted and unmounted filesystems available on your system. |
|
| 17. |
How To View Only The Mounted Filesystems? |
|
Answer» Use the DF -k command, which shows only mounted FILESYSTEMS but has the big ADVANTAGE of GIVING you the mount points too. Use the df -k command, which shows only mounted filesystems but has the big advantage of giving you the mount points too. |
|
| 18. |
What Is The Function Of E2label Command? |
|
Answer» With the help of E2LABEL command a filesystem LABEL can be WRITTEN into the superblock of ext2/ext3 filesystem. With the help of e2label command a filesystem label can be written into the superblock of ext2/ext3 filesystem. |
|
| 19. |
How To Display The Label For A Device (/dev/hdb2)? |
|
Answer» # e2lable /dev/hdb2 # e2lable /dev/hdb2 |
|
| 20. |
What Is The Function Of /etc/fstab? |
|
Answer» This file is referenced each time the SYSTEM BOOTS to CREATE the desired filesystem HIERARCHY. This file is referenced each time the system boots to create the desired filesystem hierarchy. |
|
| 21. |
How To List The Ext2/ext3 Filesystem Attributes? |
|
Answer» lsattr COMMAND DISPLAYS FILE ATTRIBUTES lsattr command displays file attributes |
|
| 22. |
How To Change The Ext2/ext3 File System Attributes? |
|
Answer» chattr COMMAND CHANGES the FILE ATTRIBUTES. chattr command changes the file attributes. |
|
| 23. |
What Is Swap Space? |
|
Answer» SWAP SPACE is SUPPLEMENT to SYSTEM RAM. Swap space is supplement to system RAM. |
|
| 24. |
How To Set Up Swap Partition? |
|
Answer» Steps involved in SETTING up swap partition:
Steps involved in setting up swap partition: |
|
| 25. |
How To Create A Swap File? |
|
Answer»
# DD if=/dev/zero of=swapfile bs=512 count=N Create a file as: # dd if=/dev/zero of=swapfile bs=512 count=N |
|
| 26. |
Why Fsck Used? |
|
Answer» fsck (file SYSTEM CHECK) is used to MAINTAIN file system consistency. fsck (file system check) is used to maintain file system consistency. |
|
| 27. |
When The System Runs The Fsck And Which Script Invokes It? |
|
Answer» When the system boots, the rc.sysinit SCRIPT runs the fsck on any filesystems marked for checking in /etc/fstab file. If any of these filesystems are markes as dirty or have data in the journal, fsck will attempt to repair them. If it succeeds, the filesystems will be mounted and boot PROCESS continues, else rc.sysinit will run sulogin and will REPORT that fsck NEEDS to be run manually. When the system boots, the rc.sysinit script runs the fsck on any filesystems marked for checking in /etc/fstab file. If any of these filesystems are markes as dirty or have data in the journal, fsck will attempt to repair them. If it succeeds, the filesystems will be mounted and boot process continues, else rc.sysinit will run sulogin and will report that fsck needs to be run manually. |
|
| 28. |
What Is E2fsck Command? |
|
Answer» FSCK is a FRONT END TOOL for E2FSCK. fsck is a front end tool for e2fsck. |
|
| 29. |
Types Of Journals And Their Function? |
| Answer» | |
| 30. |
What Is The Function Of Tune2fs Command? |
|
Answer» This is used to modify the FILESYSTEM ATTRIBUTES (LIKE converting EXT2 to ext3). This is used to modify the filesystem attributes (Like converting ext2 to ext3). |
|
| 31. |
What Is The Function Of Dump2fs Command? |
|
Answer» PROVIDES a dump of FILE SYSTEM information to standard out (Console). Can be redirected to a file. Provides a dump of file system information to standard out (Console). Can be redirected to a file. |
|
| 32. |
What Is The Function Of Debugfs Command? |
|
Answer» This utility is used to to examine and DEBUG an ext2 filesystem. This can also be used to manually VERIFY the INODE integrity and an AID to recover DATA. This utility is used to to examine and debug an ext2 filesystem. This can also be used to manually verify the inode integrity and an aid to recover data. |
|
| 33. |
What Is The Function Of Resize2fs Command? |
|
Answer» This can be used to change the SIZE of an EXT2 or EXT3 filesystem. This can be used to change the size of an ext2 or ext3 filesystem. |
|
| 34. |
What Is The Filesystem Used In Rhel 5 And Rhel 6? |
|
Answer» EXT3 for RHEL 5 and ext4 for RHEL 6. Ext3 for RHEL 5 and ext4 for RHEL 6. |
|
| 35. |
What Is The Difference Between Ext3 And Ext4 Filesystem? |
Answer»
Ext4
Ext3 Ext4 |
|
| 36. |
What Is The Command Used To Check Any Hardware Changes Made On The System In Linux? |
|
Answer» kudzu kudzu |
|
| 37. |
What Is A Swap Partition ? What Is The Recommended Swap Partition For 8 Gb Ram? |
|
Answer» SWAP partition is a feature used in Linux which uses the space allocated to it from the PHYSICAL hard drive and is utilized by te system when RAM MEMORY goes full.
Swap partition is a feature used in Linux which uses the space allocated to it from the physical hard drive and is utilized by te system when RAM memory goes full. |
|
| 38. |
What Is The Procedure You Follow To Extend A Lvm Partition? |
|
Answer» lvextend -L +1G /dev/VolGroup/LogVol1 This will EXTEND the partition size by +1 GB resize2fs /dev/VolGroup/LogVol1 lvextend -L +1G /dev/VolGroup/LogVol1 This will extend the partition size by +1 GB resize2fs /dev/VolGroup/LogVol1 |
|
| 39. |
What Is The Command To View All The Available Partitions On The System? |
|
Answer» fdisk -l |
|
| 40. |
What Is The Command To View All The Mounted Partitions On The System? |
|
Answer» mount mount |
|
| 41. |
What Is The Use Of Mtab Directory? |
|
Answer» It contains a list of all the mounted DIRECTORIES or PARTITIONS on the SYSTEM. It contains a list of all the mounted directories or partitions on the system. |
|
| 42. |
How Do You Make Permanent Changes To Any File Inside /proc Directory? |
|
Answer» <P>sysctl -p sysctl -p |
|
| 43. |
What Is The Default Mode When You Enter Single User Mode? |
|
Answer» Read only for the first TIME but once you CHANGE it to read write then from NEXT time onward it will be read write. Read only for the first time but once you change it to read write then from next time onward it will be read write. |
|
| 44. |
Explain The Procedure To Fix A Case When A System Is Unable To Boot Due To Improper Entry In Fstab? |
|
Answer» BOOT into single user MODE and make the NECESSARY corrections inside FSTAB Boot into single user mode and make the necessary corrections inside fstab |
|
| 45. |
What Does The Last Two Sections Define In Fstab File? |
| Answer» | |
| 46. |
What Is The Command To Display All The Logical Volume Available In The System? |
|
Answer» lvdisplay lvdisplay |
|
| 47. |
What Is The Difference Between Nfs Share And A Samba Share? |
|
Answer» NFS SHARING is DONE between LINUX to Linux where SAMBA sharing can be done between Linux-Linux and Linux-windows NFS sharing is done between linux to Linux where Samba sharing can be done between Linux-Linux and Linux-windows |
|
| 48. |
What Is The Default Permission Applied On The User When You Mount A Nfs Permission On Any Local Directory In Your System? |
|
Answer» No USER permission which is a SYSTEM ACCOUNT in all the MACHINES having normal user level privileges unless no_root_squash or any other permission specification is not provided on the SHARE. No user permission which is a system account in all the machines having normal user level privileges unless no_root_squash or any other permission specification is not provided on the share. |
|
| 49. |
What Is The Command To View All The Kernel Parameters? |
|
Answer» sysctl -a sysctl -a |
|
| 50. |
What Is The Command To View All The Variables In Your System? |
|
Answer» set set |
|