REDHAT INTERVIEW QUESTIONS
Red hat interview questions
Q: – How are devices represented in UNIX?
All devices are represented by files called special files that are located in /dev directory.
Q: – Tell me the steps to remove the swap file?
Firstly disable the swap file by “swapoff” command.
Remove Swap file entry from /etc/fstab file.
Now remove the swap file by “rm” command.
Q: – What can we do with “parted” command or utility?
– View the existing partition table
– Add partitions from free space or additional hard drives
– Change the size of existing partitions
Q: – How are devices represented in UNIX?
All devices are represented by files called special files that are located in /dev directory.
Q: – Tell me the steps to remove the swap file?
Firstly disable the swap file by “swapoff” command.
Remove Swap file entry from /etc/fstab file.
Now remove the swap file by “rm” command.
Q: – What can we do with “parted” command or utility?
– View the existing partition table
– Add partitions from free space or additional hard drives
– Change the size of existing partitions
Q: – What is 'inode'?
All UNIX files have its description stored in a structure called
'inode'. The inode contains info about the file-size, its location, time
of last access, time of last modification, permission and so on.
Directories are also represented as files and have an associated inode.
Q: – Can we resize the size of a partition?
Yes, we can resize the size of partition by “parted” command.
#parted /dev/sda
#parted /dev/sda
print
To resize the partition, use the resize command followed by the minor
number for the partition, the starting place in megabytes, and the end
place in megabytes. For example:
resize 3 1024 2048
After resizing the partition, use the print command to confirm that
the partition has been resized correctly, is the correct partition type,
and is the correct file system type.
Q: – What is LVM?
LVM stands for Logical Volume Manager. LVM, is a storage management
solution that allows administrators to divide hard drive space into
physical volumes (PV), which can then be combined into logical volume
groups (VG), which are then divided into logical volumes (LV) on which
the filesystem and mount point are created.
Q. How will you add a new user
(say, tux) to your system?
- useradd command
- adduser command
- linuxconf command
- All of the above
- None of the above
Answer: All
of the above commands i.e., useradd, adduser and linuxconf will add an user to
the Linux system.
Q. How many primary partition
is possible on one drive?
- 1
- 2
- 4
- 16
Answer : There
are a maximum of ‘4‘ primary partition possible on a drive.
Q. The default port for
Apache/Http is?
- 8080
- 80
- 8443
- 91
- None of the above.
Answer : By
default Apache/Http is configured on port 80.
Q. What does GNU stand for?
- GNU’s not Unix
- General Unix
- General Noble Unix
- Greek Needed Unix
- None of the above
Answer : GNU
stands for ‘GNU‘s not Unix‘.
Q. You typed at shell prompt
“mysql” and what you got in return was “can’t connect to local MySQL server
through socket ‘/var/mysql/mysql.sock’”, what would you check first.
Answer : Seeing
the error message, I will first check if mysql is running or not using commands
service mysql status or service mysqld status. If mysql service is not running,
starting of the service is required.
.
Q. How to Mount a windows ntfs
partition on Linux?
Answer : First
install ntfs3g pack on the system using apt or yum tool and then use “mount
sudo mount t ntfs3g /dev/<Windowspartition>/<Mountpoint>”
command to mount Windows partition on Linux.
Q. From the following which is
not an RPM based OS.?
- RedHat Linux
- Centos
- Scientific Linux
- Debian
- Fedora
Answer : The
‘Debian‘ operating system is not an RPM based and all listed above are ‘RPM‘
based except Debian.
Q. Which command can be used
to rename a file in Linux.?
- mv
- ren
- rename
- change
- None of the Above
Answer : The
mv command is used to rename a file in Linux. For example, mv
/path_to_File/original_file_name.extension /Path_to_File/New_name.extension.
Q. Which command is used to
create and display file in Linux?
- ed
- vi
- cat
- nano
- None of the above
Answer : The
‘cat‘ command can be used to create and display file in Linux.
Q. What layer protocol is
responsible for user and the application program support such as passwords,
resource sharing, file transfer and network management?
- Layer 4 protocols
- Layer 5 protocols
- Layer 6 protocols
- Layer 7 protocols
- None of the above
Answer : The
‘Layer 7 Protocol‘ is responsible for user and the application program support
such as passwords, resource sharing, file transfer and network management.
Comments
Post a Comment