SIMULATIONAdd a swap partition.Adding an extra 500M swap partition to your system, this swap partition should mount automatically when the system starts up. Don't remove and modify the existing swap partitions on your system.
Answer(s): A
fdisk -cu /dev/vda// in the way of expanding the partition, don’t make main partitionpartx –a /dev/vdamkswap /dev/vdaxswapon /dev/vdax swapon –svi /etc/fstab/dev/vdaxswapswapdefaults0 0mount -a
SIMULATIONSearch files.Find out files owned by jack, and copy them to directory /root/findresults
mkdir/root/findfilesfind / -user jack -exec cp -a {} /root/findfiles/ \; ls /root/findresults
SIMULATIONSearch a StringFind out all the columns that contains the string seismic within /usr/share/dict/words, then copy all these columns to /root/lines.tx in original order, there is no blank line, all columns must be the accurate copy of the original columns.
grep seismic /usr/share/dict/words > /root/lines.txt
SIMULATIONCreate a backupCreate a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress.
cd /usr/localtar –jcvf /root/backup.tar.bz2mkdir /testtar –jxvf /root/backup.tar.bz2 –C /test// Decompression to check the content is the same as the /usr/loca after If the questions require to use gzip to compress. change –j to –z.
SIMULATIONCreate a logical volumeCreate a new logical volume as required:Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE. Expansion size of each volume in volume group datastore is 16MB.Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/database
fdisk -cu /dev/vda// Create a 1G partition, modified when needed partx –a /dev/vdapvcreate /dev/vdaxvgcreate datastore /dev/vdax –s 16Mlvcreate– l 50 –n database datastoremkfs.ext3 /dev/datastore/databasemkdir /mnt/databasemount /dev/datastore/database /mnt/database/ df –Thvi /etc/fstab/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount –aRestart and check all the questions requirements.
Post your Comments and Discuss RedHat EX200 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the EX200 content, but please register or login to continue.