Wednesday, January 8, 2020

RED HAT LINUX ESSENTIALS INTERVIEW QUESTIONS & ANSWERS



  1. RED HAT LINUX ESSENTIALS INTERVIEW QUESTIONS & ANSWERS


  2. Answer :
    A Linux server is a high-powered variant of the Linux open source operating system that's designed to handle the more demanding needs of business applications such as network and system administration, database management and Web services.
  3. Answer :
    Red Hat Enterprise Linux (RHEL) is a distribution of the Linux operating system developed for the business market. RHEL was formerly known as Red Hat Linux Advanced Server.
  4. Answer :
    echo $SHELL.
  5. Answer :
    LVM snapshots allow the administrator to create a new block device which presents an exact copy of a logical volume, frozen at some point in time.
  6. Answer :
    The Volume Group is the highest level abstraction used within the LVM. It gathers together a collection of Logical Volumes and Physical Volumes into one administrative unit.
  7. Answer :
    gpasswd -r.
  8. Answer :
    Each logical volume is split into chunks of data, known as logical extents. The extent size is the same for all logical volumes in the volume group.
  9. Answer :
    Each physical volume is divided chunks of data, known as physical extents; these extents have the same size as the logical extents for the volume group.
  10. Answer :
    1. LVM1 and LVM2 are the versions of LVM.
    2. LVM2 uses device mapper driver contained in 2.6 kernel version.
    3. LVM 1 was included in the 2.4 series kernels.
  11. Answer :
    RAID provides redundancy but LVM doesn’t provide Redundancy.
  12. Answer :
    repquota.
  13. Answer :
    As a process executes it changes state according to its circumstances. Unix processes have the following states:
    1. Running : The process is either running or it is ready to run .
    2. Waiting : The process is waiting for an event or for a resource.
    3. Stopped : The process has been stopped, usually by receiving a signal.
    4. Zombie : The process is dead but have not been removed from the process table.

  14. Question 13. How We Will Check Free Space On Drive /dev/sda With Parted Command?
  15. Answer :
    #parted /dev/sda
    print.
  16. Answer :
    Create physical volumes by “pvcreate” command :
    #pvcreate /dev/sda2
    Add physical volume to volume group by “vgcreate” command :
    #vgcreate VLG0 /dev/sda2
    Create logical volume from volume group by “lvcreate” command :
    #lvcreate -L 1G -n LVM1 VLG0
    Now create file system on /dev/sda2 partition by “mke2fs” command :
    #mke2fs -j /dev/VLG0/LVM1
  17. Answer :
    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.
  18. Answer :
    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.
  19. Answer :
    • View the existing partition table.
    • Add partitions from free space or additional hard drives.
    • Change the size of existing partitions.
  20. Answer :
    1. Firstly disable the swap file by “swapoff” command.
    2. Remove Swap file entry from /etc/fstab file.
    3. Now remove the swap file by “rm” command.

  21. Question 19. How Do You Identify The Ip Address Assigned To The Box?
  22. Answer :
    The ipconfig command tells you the IP for the computer.
  23. Answer :
    Open a Red Had shell command line and type /etc/redhat-release to identify the release version for Red Hat.

  24. Question 21. Which Layer In The Osi Model Is Responsible For The User’s Application When Working With An Application Over The Network?
  25. Answer :
    Layer 7 is the layer responsible for application support including support for user passwords and file sharing.
  26. Answer :
    Open the Red Hat Linux shell command line and use the mv command. The mv command takes the path to the original file and the path to the newly named file in the parameters. If you don’t specify the parameters, the mv command will ask you for them.
  27. Answer :
    Go to the shell prompt and type mysql. Linux looks up the information contained in /var/mysql/mysql.sock and connects to the port listed in the sock file. If the port is blocked or mysql isn’t installed on the system, Red Hat Linux returns an error.
  28. Answer :
    First, you need to install Apache, and Apache sets a default directory for public HTML files. The standard directory is /var/www/html.
  29. Question 25. What Type Of Remote Software Can You Use To Encrypt Communication But Control Your Server?
  30. Answer :
    SSH is a remote desktop software that lets you remotely control the Red Hat server using a command line but also encrypts the information across the Internet. SSH uses port 22, so you must open this port when you set up Red Hat.
  31. Answer :
    Most web servers run on port 80, and Apache defaults to port 80 when you install the software. You can use an alternative port, but this forces the user to type a port into the browser when they access the website. The other popular port for web applications is port 8080.

  32. Question 27. What Is The Total Number Of Primary Partitions You Can Have On One Drive In Linux Red Hat?
  33. Answer :
    you can have four primary partitions in Linux. This includes Red Hat and any other operating system.
  34. Answer :
    There are three commands you can use to add a user. The three commands are useradd, adduser, and linuxconf.
  35. Answer :
    Red Hat Network : A systems management platform providing lifecycle management of the operating system and applications.
    1. Installing and provisioning new systems.
    2. Updating systems.
    3. Managing configuration files.
    4. Monitoring performance.
    Redeploying systems for a new purpose "Hosted" and "Satellite" deployment architectures.
  36. Answer :
    A user who can use effectively employ Red HatEnterprise Linux to customize his or her operating environment as well as accomplish common commandline tasks and desktop productivity roles.

No comments:

Post a Comment

  How to Change Instance Type & Security Group of EC2 in AWS By David Taylor Updated April 29, 2023 EC2 stands for Elastic Compute Cloud...