101 questions and answers for RHCE (9) and 101 questions and answers for rhce

Source: Internet
Author: User

101 questions and answers for RHCE (9) and 101 questions and answers for rhce


To make it easier for people who plan to perform RedHat certification and O & M work to learn more systematically, I have selected 101 RHCE questions and answers from the Internet. Considering that the daily learning volume is large, therefore, we extract 10 questions every day for pushing until the push is complete. I hope it will be useful to you. Thank you.


81. Create the directory test under the/share directory with the following permissions:
Cd/share
Mkdir test
A. The directory group is grp1.
Chgrp grp1 test
B. grp1 members have read, write, and browse permissions on this folder
C. The subfolders or files created in this folder automatically inherit the group (SGID) of test)
Chmod 2775 test (this B C is all done)


82. Create a user usr-3 without any available shell (login failure)
Useradd usr-3-s/sbin/nologin


83. If necessary, all user passwords should be set to RedHat
Passwd usr-1


84. Configure the disk quota to limit the size of the usr-1 user's/data File System to 1 MB
Quotacheck-cugm/data (initialize the disk quota database)
Ll/data (check whether two files exist, and the two files are correct)
Edquota-u usr-1 (edit Disk Quota for usr-1)
Change hard to 1000
Quotaon-a (enable Disk Quota)
Detect dd under su to usr-1 if =/dev/zero bs = 1 M count = 10 of = aa
 
85. Create a user usr-2 whose affiliated group is grp1
Useradd-G grp1 usr-2


86. Create a RAID0 partition. RAID0 is composed of two partitions. The partition is created on its own and the size is 1 GB. After the partition is created, it is mounted to/share and is required to be automatically mounted after it is started.
Create two partitions and modify the ID fd.
Partprobe
Mdadm-C/dev/md0-n 2-l 0/dev/sda (No.)/dev/sda (No)
Cat/proc/mdstat (check whether a partition is created)
Mke2fs-j/dev/md0
Mkdir/share
Echo "/dev/md0/share ext3 defaults 0 0">/etc/fstab
Mount-
Df-h (detection)


87. There is a logical volume lvdata in the existing host, which is 500 MB in size. It must be extended to 1 GB while the original data is retained.
Fdisk/dev/sda
Change the ID of the created partition to 8e.
Partprobe
Mke2fs-j/dev/sda (No)
Pvcreate/dev/sda (No)
Vgdisplay (view VG name)
Vgextend vg name/dev/sda (No)
Lvresize-L + 500 M/dev/vg name/lv
Resize2fs/dev/vg/lv
Df-h (check)


88. Configure the Yum client of the host and install the dialog package
Cp/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/a. repo
Vim/etc/yum. repos. d/a. repo
Save the specified path
Yum clean all (clear YUM)
Yum list (check YUM)
Yum install dialog-y (install a package as required)


89. Create a New partition, which is 500 MB in size and mounted to the/data directory. It is required that the partition be automatically mounted after startup. After mounting, the file system supports QUOTA (Disk QUOTA) and ACL (Access Control List ). Note: The actual size is 1 GB = 1024 MB due to the calculation error of the hard disk space, while 1 GB = MB is used in most operating systems, so the actual size is not easy to grasp, therefore, the size is acceptable at around MB.
Fdisk-l (view disk type)
Fdisk/dev/sda
Create and save partitions
Partprobe
Mke2fs-j/dev/sda No.
Mkdir/data
Echo "/dev/sda No./data ext3 usrquota, maid, acl 0 0">/etc/fstab
Mount-
Df-h (view)


90. network troubleshooting (TCP/IP, GATEWAY, DNS)
Setup
/Etc/init. d/network restart


Free Linux cloud computing courses are on course,5 days freeO & M dry goods content free of charge,Click the end of the article"Read original"Free O & M courses!Speed to grab ~~~~

PS: Check out the free gift package provided by xiaobian ~

Benefits | more than 10 thousand sets of PPT templates for free! Unconditional receipt!

Free | more than 1000 sets of resume templates are offered free of charge, and a resume creation tutorial is provided!

Free of charge | the "Shell script 100 cases" ebook is free of charge and must be used for O & M ~



Click 【Read original], Free to listen to five days of Linux O & M Dry Goods sharing courses, hot discussion, come to grab!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.