Pass the Linux Foundation Linux Foundation Certified SYSADMIN LFCS Questions and answers with CertsForce

Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions
Questions # 51:

How can the existing environment variable FOOBAR be suppressedfor the execution of the script./myscript only?

Options:

A.

unset -v FOOBAR;./myscript


B.

set -a FOOBAR="";./myscript


C.

env -u FOOBAR./myscript


D.

env -i FOOBAR./myscript


Questions # 52:

Where are user specific crontabs stored?

Options:

A.

In the database file /etc/crontab.db which is shared by all users.


B.

As individual per-user files within /var/spool/cron.


C.

As individual per-user files in /etc/cron.user.d.


D.

In the .crontab file in the user's home directory.


E.

In the file /var/cron/user-crontab which is shared by all users.


Questions # 53:

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

Options:

A.

The user issuing the command must be in the group script.


B.

The script file must be found in the $PATH.


C.

The script file must have the executable permission bit set.


D.

The script must begin with a shebang-line (#!) that points to the correct interpreter.


E.

The file system on which the script resides must be mounted with the option scripts.


Questions # 54:

Which option to the yum command will update the entiresystem? (Specify ONLY the option name without any additional parameters.)


Questions # 55:

Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)


Questions # 56:

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Options:

A.

chown dan/staff file.txt


B.

chown dan:staff file.txt


C.

chown -u dan -g staff file.txt


D.

chown dan -g staff file.txt


Questions # 57:

Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Options:

A.

The source file is hidden.


B.

The source file is read-only.


C.

The source file is a shell script.


D.

The source file is already a hard link.


E.

The source and the target are on different filesystems.


Questions # 58:

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.)

Options:

A.

resolv


B.

dns


C.

remote


D.

files


E.

hosts


Questions # 59:

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


Questions # 60:

Which of the following settingsfor umask ensures that new files have the default permissions -rw-r----- ?

Options:

A.

0017


B.

0640


C.

0038


D.

0027


Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions