command to execute command against returned results of find Correct Ans-find / -user
$USERNAEM -type -f -exec $COMMAND
command to display all the contents of all files owned by a specified user Correct Ans-find / -
user $USERNAME -type f -exec cat {} \;
command to copy all files owned by a user to a target directory Correct Ans-find / -user
$USERNAME -type f -exec cp {} /target/dir \;
command to delete all files owned by a user in a specified directory Correct Ans-find
/specified/dir -user $USERNAME -type f -exec rm {} \;
You need to set the execute bit on the finance directory and any subdirectories it might contain,
but not on the files within them. This change must apply to all users. What methods might you
use? Correct Ans-chmod a+X -R finance
OR
chmod -R a+X finance
,Which directory contains the info files from which the info program reads? Correct Ans-
/usr/share/info
command to extract a gz tar file to a target directory Correct Ans-tar -xzvf target.tar.gz -C
/target/dir
x = extract
z = use gzip
v = verbose
f = use the target file
-C = extract to the target dir
4 common systemctl targets Correct Ans-multi-user.target = multiple users can be logged into
the system, utilizing the terminal/text based interface
graphical.target = gui
emergency.target = boots into root command prompt and mounts file system as a read only file
system
rescue.target = recovery mode, single user, text based
, command to change from graphical env to text based env Correct Ans-systemctl isolate
mutli-user.target
command to change from text-based env to gui based env Correct Ans-systemctl isolate
graphical.target
command to set default target env Correct Ans-systemctl set-default multi-user.target
command that combines two other common utils to list running processes Correct Ans-pgrep
combines ps and grep
command to show all commands running as a specified user Correct Ans-pgrep -u
$TARGETUSER -l
u = specify user
l = list the PID and process name
command that combines two other common utils to kill running processes Correct Ans-pkill