Copy only different files from /etc to /backup Correct Ans-rsync /etc /backup
Search for a package named 'httpd' Correct Ans-yum search httpd
Where to add a yum repo and format Correct Ans-/etc/yum.repos.d
[name]
name=name
baseurl=http://www.
gpgcheck=0
enabled=1
Show all yum repos and status Correct Ans-yum repolist all
Option in yum repo to specify gpg key Correct Ans-gpgkey=file:///etc/...
Use rpm to query a file to find out which package provides it Correct Ans-rpm -q -f filename
Use yum to search all installed packages Correct Ans-yum list installed
,display file systems and mount points Correct Ans-df -h
Display all mounted systems Correct Ans-mount
Display disk usage Correct Ans-du
Temporary mount /dev/sda3 by UUID to /mnt/temp Correct Ans-blkid /dev/sda3; mkdir -p
/dev/temp; mount UUID="asdf" /mnt/temp
List open files and processes accessing /mnt/temp Correct Ans-lsof /mnt/temp
Create softlink to /home/student in / called softlink Correct Ans-ln -s /home/student /softlink
Find all directories owned by joe on entire system and copy to /backup Correct Ans-find -type
d -user joe -exec cp {} /backup \;
Find files in /root modified within last hour Correct Ans-find /root -mmin -100
Find files whose name contains 'test' Correct Ans-find -name '*test*'
GUI tool to manage VMs Correct Ans-virt-manager
, Kickstart tool to generate anaconda kickstart file Correct Ans-system-config-kickstart
Tool to check kickstart file for errors Correct Ans-ksvalidator
Reg exp: line only contains "test" Correct Ans-'^test$'
Reg exp: line begins with any letter in range l-z Correct Ans-'^[l-z]'
Reg exp: single character wildcard Correct Ans-.
Reg exp: modifies previous character to match 0 to infinity times Correct Ans-*
Reg exp: modifies previous character to match 0 or 1 times Correct Ans-?
Reg exp: modifies previous character to match exactly 5 times Correct Ans-\{5\}
Vim: enter visual block mode Correct Ans-Ctrl+v
Vim: enter visual line mode Correct Ans-V
Copy only different files from /etc to /backup Correct Ans-rsync /etc /backup