READ Free Dumps For RedHat- RH302
Question ID 17420 | Install the Cron Schedule for david user to display “Hello” on daily 5:30. |
Option A | Answer : Login as a root user cat >schedule.txt 30 05 * * * /bin/echo Hello 3. crontab u david schedule.txt 4. service crond restart The cron system is essentially a smart alarm clock. When the alarm sounds, Linux runs the commands of your choice automatically. You can set the alarm clock to run at all sorts of regular time intervals. Alternatively, the at system allows you to run the command of your choice once, at a specified time in the future. Red Hat configured the cron daemon, crond. By default, it checks a series of directories for jobs to run, every minute of every hour of every day. The crond checks the /var/spool/cron directory for jobs by user. It also checks for scheduled jobs for the computer under /etc/crontab and in the /etc/cron.d directory. #minute, hour, day of month, month, day of week, command * * * * * command Entries in a crontab Command Line Field Value Minute 0-59 Hour Based on a 24-hour clock; for example, 23 = 11 p.m. Day of month 1-31 Month 1-12, or jan, feb, mar, etc. Day of week 0-7; where 0 and 7 are both Sunday; or sun, mon, tue, etc. Command The command you want to run |
Correct Answer | A |
Question ID 17421 | Create a RAID Device /dev/md0 by creating equal two disks from available free space |
Option A | Answer : Redhat Enterprise Linux 5 Supports the RAID LEVEL 0, RAID LEVEL 1, RAID LEVEL 5 and RAID LEVEL 6 at installation time. You can create it at installation time later no need to type lots of commands for RAID. Create the partitions using diskdruid. Create the Partitions having File system Type Software RAID. Click on RAID button Type the Mount Point Select File system type Select RAID Level Select Partitions/disks as a member of RAID. Click on ok We can create the RAID Device after Installation on command-line. Create the Two partitions having equal size. (Specify the Size using Cylinder, find the remaining cylinder and divide by 2). Change the Partition ID to fd (Linux raid Autodetect) by typing t. Type w To write on partitions table. Use partprobe command to synchronic the partition table. mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda? /dev/hda? mdadm --detail /dev/md0 mkfs -t ext3 /dev/md0 mount /dev/md0 /data vi /etc/fstab /dev/md0/dataext3defaults0 0 Verify mounting devices using mount command. |
Correct Answer | A |