1. What is the filesystem used in Rhel 5 and Rhel 6?
Ans: ext3 for RHEL 5 and ext4 for RHEL 6
2. What is the difference between ext3 and ext4 filesystem?
Ans:
Ext3
Maximum individual file size can be from 16 GB to 2 TB
Overall ext3 file system size can be from 2 TB to 32 TB
Ext4
Maximum individual file size can be from 16 GB to 16 TB
Overall maximum ext4 file system size is 1 EB (exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).
3. What is the command used to check any hardware changes made on the system in Linux?
Ans:
4. Is it possible to increase swap partition? If yes then how?
Ans: Yes, Follow the below link
How to increase size of swap partition
5. What is a swap partition ? What is the recommended swap partition for 8 GB RAM?
Ans: 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.
Amount of RAM in the System Recommended Amount of Swap Space
4GB of RAM or less a minimum of 2GB of swap space
4GB to 16GB of RAM a minimum of 4GB of swap space
16GB to 64GB of RAM a minimum of 8GB of swap space
64GB to 256GB of RAM a minimum of 16GB of swap space
256GB to 512GB of RAM a minimum of 32GB of swap space
6. What is the procedure you follow to extend a LVM partition?
Ans:
7. What is the command to view all the available partitions on the system?
Ans:
8. What is the command to view all the mounted partitions on the system?
Ans:
9. What is the use of mtab directory?
Ans: It contains a list of all the mounted directories or partitions on the system
10. How do you make permanent changes to any file inside /proc directory?
Ans:
11. What is the default mode when you enter single user mode?
Ans: read only for the first time but once you change it to read write then from next time onward it will be read write
12. Explain the procedure to fix a case when a system is unable to boot due to improper entry in fstab
Ans: Boot into single user mode and make the necessary corrections inside fstab
13. What does the last two sections define in fstab file?
Ans: The 5th column tells the dump information if whether the partition has to be backed up. It it is "0" the
filesystem will be ignored
The 6th column tells the order in which fsck command would check the filesystem on boot. If it is "0" then fsck won't check the filesystem
14. What is the command to display all the logical volume available in the system?
Ans:
15. How do you mount a windows share on Linux? Is it possible?
Ans: Follow the below link
How to mount Windows share in Linux?
16. What is the difference between NFS share and a Samba share?
Ans: NFS sharing is done between linux to Linux where Samba sharing can be done between Linux-Linux and Linux-windows
17. What is the default permission applied on the user when you mount a NFS permission on any local directory in your system?
Ans: 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
18. What is the command to view all the kernel parameters?
Ans:
19. What is . and .. in very directory of Linux system?
Ans: Follow the below link
What is . and .. inside each directory path in Linux?
20. What is the command to view all the variables in your system?
Ans:
21. How can you make a custom environment variable permanent so that it works even after reboot?
Ans: Follow the below link
How to set environment variable path permanently
Ans: ext3 for RHEL 5 and ext4 for RHEL 6
2. What is the difference between ext3 and ext4 filesystem?
Ans:
Ext3
Maximum individual file size can be from 16 GB to 2 TB
Overall ext3 file system size can be from 2 TB to 32 TB
Ext4
Maximum individual file size can be from 16 GB to 16 TB
Overall maximum ext4 file system size is 1 EB (exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).
3. What is the command used to check any hardware changes made on the system in Linux?
Ans:
kudzu
4. Is it possible to increase swap partition? If yes then how?
Ans: Yes, Follow the below link
How to increase size of swap partition
5. What is a swap partition ? What is the recommended swap partition for 8 GB RAM?
Ans: 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.
Amount of RAM in the System Recommended Amount of Swap Space
4GB of RAM or less a minimum of 2GB of swap space
4GB to 16GB of RAM a minimum of 4GB of swap space
16GB to 64GB of RAM a minimum of 8GB of swap space
64GB to 256GB of RAM a minimum of 16GB of swap space
256GB to 512GB of RAM a minimum of 32GB of swap space
6. What is the procedure you follow to extend a LVM partition?
Ans:
lvextend -L +1G /dev/VolGroup/LogVol1
This will extend the partition size by +1 GB
resize2fs /dev/VolGroup/LogVol1
7. What is the command to view all the available partitions on the system?
Ans:
fdisk -l
8. What is the command to view all the mounted partitions on the system?
Ans:
mount
9. What is the use of mtab directory?
Ans: It contains a list of all the mounted directories or partitions on the system
10. How do you make permanent changes to any file inside /proc directory?
Ans:
sysctl -p
11. What is the default mode when you enter single user mode?
Ans: read only for the first time but once you change it to read write then from next time onward it will be read write
12. Explain the procedure to fix a case when a system is unable to boot due to improper entry in fstab
Ans: Boot into single user mode and make the necessary corrections inside fstab
13. What does the last two sections define in fstab file?
Ans: The 5th column tells the dump information if whether the partition has to be backed up. It it is "0" the
filesystem will be ignored
The 6th column tells the order in which fsck command would check the filesystem on boot. If it is "0" then fsck won't check the filesystem
14. What is the command to display all the logical volume available in the system?
Ans:
lvdisplay
15. How do you mount a windows share on Linux? Is it possible?
Ans: Follow the below link
How to mount Windows share in Linux?
16. What is the difference between NFS share and a Samba share?
Ans: NFS sharing is done between linux to Linux where Samba sharing can be done between Linux-Linux and Linux-windows
17. What is the default permission applied on the user when you mount a NFS permission on any local directory in your system?
Ans: 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
18. What is the command to view all the kernel parameters?
Ans:
sysctl -a
19. What is . and .. in very directory of Linux system?
Ans: Follow the below link
What is . and .. inside each directory path in Linux?
20. What is the command to view all the variables in your system?
Ans:
set
21. How can you make a custom environment variable permanent so that it works even after reboot?
Ans: Follow the below link
How to set environment variable path permanently