Exercise #16 (top)

Which of the following actions can be run from the top command? (Choose two.)
A. New processes can be started
B. Killing a process by its PID
C. A process can be given a lower priority
D. Reboot the system
E. Measure the free space on the hard drive

Exercise #15 (vi)

Select all the ways of saving and exiting a vi session. (Choose more than one)

A. :exit
B. Shift ZZ
C. :ZZ
D. :x
E. :w
F. :wq

Exercise #14 (Security)

What command will set a regular users password to force changing it every 90 days? Choose all that apply.
A. useradd –e 90 linuxuser
B. chage –M 90 linuxuser
C. passwd +x 90 linuxuser
D. usermod –f 90 linuxuser
E. passwd –x 90 linuxuser

Exercise #13 (permission)

A file named linuxexercises.odt has a mode of rw-r- -r- -. If linuxuser is the file's owner, what can he do with it?
A. He can open the file and view its contents, but he can't save any changes.
B. He can open the file, make changes, and save the file.
C. He can change ownership of the file.
D. He can run the file if it's an executable.

Exercise #12 (permission)

Describe three different ways of setting the permissions on a file or directory to r--r--r--

Exercise #11 (umask)

Type umask 000 and then create a file called linux.txt containing the words "Linux Exercise". Look at the permissions on the file. What's happened? Now type umask 022 and create a file called linux2.txt. When might this feature be useful?

Exercise #10 (umask)

Your current unmask is set to 002. If you create a new file, what will the permission of the new file be?
A. ------w-
B. rwxrwx-w-
C. -rw-rw-r—
D. rwxrwxr-x

Exercise #9 (accounts)

How to count local accounts ?

Exercise #8 (homedir)

How do you create any newly created users home directory in /new_home/_newusername_ instead of default /home/_newusername_ directory?

Exercise #7 (IP)

How will you restrict IP so that the restricted IP’s may not use the FTP and SSH Server?

Exercise #6 (cron)

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
23 4 * 1,6 1 root run-parts /etc/cron.special

Refer to the '/etc/crontab' file listed in the exhibit for this question. Which of the following statements is true? Explain your answer.

A. The script file '/etc/cron.special is run once a week, on

B. The contents of the '/etc/cron.special directory are run
during January and June.

C. During some parts of the year '/etc/cron.special' is run
one minute after '/etc/cron.weekly'.

D. During the month of March, '/etc/cron.special' is run on

Exercise #5 (log)

How to view all messages generated by the system since the last reboot on RHEL7/CentOS 7?

Exercise #4 (passwd)

jdoe:x:502:1000:John Doe:/home/jdoe:/bin/bash

The exhibit for this question contains a line from the file '/etc/passwd'. Which of the following statements is true, based on the information in the exhibit?

A. User John Doe belongs to the group with groupID 502.

B. Shadow passwords are used on the current system.

C. The username 'jdoe' belongs to the group 'jdoe'.

D. Members of groupID 1000 can read directory /home/jdoe.

Exercise #3 (cp)

Assume that your current working directory is '/tmp' and your home directory is '/home/jack'. Which of the below commands will copy all the content of '/tmp/test/' to a 'test' subdirectory of your home directory?

A. cp -r test/* /home/jack

B. cp -r ./test ~

C. cp -r ~/test .

D. cp -r /tmp/test /home/jack/test

Exercise #2 (passwd)

Explain the different fields in /etc/passwd?

← Older postsNewer posts →