RedHat Red Hat Certified Engineer - RHCE (RHCE Korean Version) - RHCE Korean 模擬練習

올바른 텍스트
alex라는 이름의 사용자를 만들고, 사용자 ID는 1234, 비밀번호는 alex111로 하세요.
正解:
#useradd-u1234alex
#passwdalexalex111alex111ORechoalex111|passwd-stdinalex
올바른 텍스트
eric이라는 사용자를 생성하고 대화형 로그인을 거부합니다.
正解:
useradderic
passwderic
vi/etc/passwd
eric:x:505:505::/home/eric:/sbin/nologinWhichshellorprogramshouldstartatlogintimeisspecifiedin/etc/passwdfile?BydefaultRedhatEnterpriseLinuxassignsthe/bin/bashshelltotheusers.Todenytheinteractiveloginyoushouldwrite/sbin/nologinor/bin/falseinsteadofloginshell.
올바른 텍스트
DNS 서버가 172.24.254.254인 server1.example.com으로 성공적으로 연결되었습니다.
正解:
vi/etc/resolv.confnameserver172.24.254.254
hostserver1.example.comOneveryclientsDNSserverisspecifiedin/etc/resolv.conf.WhenyourequestbynameittriestoresolvfromDNSserver.
올바른 텍스트
웹 서비스를 구성하려면 http://instructor.example.com/pub/serverX.html에서 다운로드하세요. 시스템을 재부팅한 후에도 서비스가 계속 실행되어야 합니다.
正解:
cd/var/www/htmlwgethttp://instructor.example.com/pub/serverX.htmlmvserverX.htmlindex.html/etc/init.d/httpdrestartchkconfighttpdon
올바른 텍스트
사용자 소유자와 그룹 소유자 멤버만 전체에 접근할 수 있는 데이터를 만듭니다.
正解:
chmod770/data
Verifyusing:ls-ld/dataPreviewshouldbelike:drwxrwx---2rootsysadmin4096Mar1618:08/dataTochangethepermissionondirectoryweusethechmodcommand.Accordingtothequestionthatonlytheowneruser(root)andgroupmember(sysadmin)canfullyaccessthedirectoryso:chmod770/data
올바른 텍스트
귀하의 시스템은 172.24.0.0/16 및 172.25.0.0/16의 라우터로 사용됩니다. IP 전달을 활성화하세요.
1. "1" >/proc/sys/net/ipv4/ip_forward를 에코합니다.
2. vi /etc/sysctl.conf net.ipv4.ip_forward=1
正解:
/procisthevirtualfilesystemcontainingtheinformationabouttherunningkernel.Tochangetheparameterofrunningkernelyoushouldmodifyon/proc.FromNextrebootthesystemkernelwilltakethevaluefrom/etc/sysctl.conf.
올바른 텍스트
파일을 검색합니다.
jack이 소유한 파일을 찾아 /root/findresults 디렉토리에 복사합니다.
正解:
mkdir/root/findfilesfind/-userjack-execcp-a{}/root/findfiles/\;ls/root/findresults