By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
Which option to the yum command will update the entiresystem? (Specify ONLY the option name without any additional parameters.)
What is the output of the following command?
for token in a b c; do
echo -n ${token};
done
Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)
Which of the following commands will set the variable text to olaf is home?(Choose two)
What of the following can be done by the command ifconfig? (Choose TWO correct answers.)
How can the existing environment variable FOOBAR be suppressedfor the execution of the script./myscript only?
Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
What is the lowest numbered unprivileged TCP port? (Specify the number in digits only.)
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
Which of the following commands will reduce all consecutive spaces down to a single space?
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Which configuration file would be edited to change the default options for outbound SSH sessions?
Given a file called birthdays containing lines like:
YYYY-MM-DD Name
1983-06-02 Tim
1995-12-17 Sue
Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?(Choose two)
What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)
Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
Which of the following commands lists all currently installedpackages when using RPM package management?
Which of the following commands will help identify a broken router between the local and the remote machine?
Which of the following commands puts the output of the command date into the shell variable mydate?
What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?
How can the current directory and its subdirectories be searched for the file named MyFile.xml?
What command displays all aliases defined in the current shell? (Specify the command without any path information)
Which of the following commands will print the last 10 lines of a text file to the standard output?
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
Which of the following details is NOT provided in any output from the netstat utility?
Which file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.)https://lh3.googleusercontent.com/-5cd-clmKnbk/AAAAAAAAAAI/AAAAAAAAADM/-SXesH19Ido/s46-c-k-no/photo.jpg
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)
Which world-writable directory should be placed on a separate partition inorder to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)
Which of the following commands is used to rotate, compress, and mail system logs?
Which command will display messages from the kernel that were output during the normal boot sequence?
In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?
In the vi editor, which of the following commands will copy the current line into the vi buffer?
Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)
Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
Creating a hard link to an ordinary file returns an error. What could be the reason for this?
Which of the following commands moves and resumes in the background the last stopped shell job?
When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
How can the normal output of a command be written to a file while discarding the error output?
Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)
Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?
Which of the following commands is used to change options and positional parameters for a runningBash?
The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)
Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)