Red Hat Linux System Administration Examination Mock #1

1) Installation requirements: / -20000MB, /boot -128MB, /home -2048MB, Swap – 4000MB. Firewall should be disabled, SElinux should be in disabled, and select ‘I will register later’. Password for user root should be ‘RedHat@MCA’. Your ip address should be configuring through DHCP. ( NFS directory path to /var/ftp/pub/server5.4 and NFS server Name as 192.168.6.254.)
Note: Installation should be done through the NFS and use custom partition.

2) Change the system run level to 3 and reboot your system.
Note: Try to answer all the questions in a virtual console Ctrl + Alt + F1.

3) Create a directory named „X? under /. ( Where X is “Exam”. )

4) Copy the directory /boot/grub with its contents to /X and rename it to ‘Sample’.
( Where X is “Exam”. )

5) Change your current working directory to ‘Sample’. Create empty files named ‘first, second, third , fourth, fifth, sixth’

6) Using numeric method to change the permission to the files ‘first, second, third’ such that user should have read, write and execute permission. Group members should have read and execute permission. Others should have read and execute permission.

7) Using symbolic method to change the permission to the files ‘fourth, fifth, sixth’ such that user should have read, write permission. Group members should not have write and execute permission. Others should not have any permission.

8) Using ‘cat’ command to create files named ‘bca’, ‘mca’ with the content ‘This is file for bca students’ and ‘This is file for mca student’.

9) Create a soft link file ‘slbca’ at /mnt for ‘bca’ and create a hard link file ‘hlmca’ at /opt for ‘mca’.

---

Answers:

1. 
insert boot disk and type linux askmethod
Select the installation method as NFS and configure the IP as through the dhcp.
Assign the NFS directory path to /var/ftp/pub/server5.4 and assign the NFS server
Name as 192.168.6.254.
df -h

2. vim /etc/inittab

3. mkdir /Exam

4. cp -r /boot/grub /Exam/sample

5. 
cd /Exam/sample
touch first second third fourth fifth sixth

6. 
chmod 755 first
chmod 755 second
chmod 755 third

7. 
chmod u+rw,g+r,o-rwx fourth
chmod u+rw,g+r,o-rwx fifth
chmod u+rw,g+r,o-rwx sixth

8. 
cat > bca
type the content and then press ctrl+d to save
cat > mca
type the content and then press ctrl+d to save

9. 
ln -s /Exam/sample/bca /mnt/slbca
ln /Exam/sample/mca /opt/hlmca

Linux Tips

More Linux Questions

Have a Linux Problem
Linux Forum - Do you have a Linux Question?

Linux Books
Linux Certification, System Administration, Programming, Networking Books

Linux Home: Linux System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.