Server LINUX

¡Supera tus tareas y exámenes ahora con Quizwiz!

You have just run the ps aux command and notice that most daemons have an S in the STAT column. What does this mean?

They are sleeping (waiting to be summoned by another process)

What is the config file used by GRUB?

/boot/grub/menu.lst

What is the PID of init?

1

If you do not specify the type of signal when using the kill or killall commands, which signal is used by default?

SIGTERM

Which of the following commands can be used to tune system parameters that are stored within the /proc directory?

sysctl

What command could a regular user use to edit their crontab?

crobtab -e

Which of the following commands may be used to display boot error messages? (Choose all that apply)

dmesg | less and less /var/log/boot.log

You have a script that is used to remove temporary files and would like this script to run on a daily basis. What directory could you place this script in to have the cron daemon execute it each day?

etc/cron.daily

What action in the /etc/inittab file is used to determine the default runlevel at system initialization?

id:5:initdefault:

What key can you press in the top command to send the process a signal?

k

What line can you add to the /etc/syslog.conf file to log messages of priority crit from the Linux kernel to /var/log/ker nlog?

kern.=crit /var/log/kernlog

Which of the following kill commands may be used to send the second background job a SIGINT?

kill -2 %2

What runlevel loads all networking daemons (including NFS) but does not start a display manager?

3

What is the default runlevel in SLES?

5

What lines would you add to your crontab to schedule the /bin/false command to run at 2:50PM from Monday to Friday?

50 14**1-5 /bin/false

You have added the following lines to the /etc/logrotate.d/mylog file: /var/log/mylog { maxage 44 rotate 5 notifempty compress } Which of the following statements are true about the rotation of the /var/log/mylog file? (Choose all that apply.)

A maximum of five archive logs will be kept. The log file will be compressed after being rotated.

Which of the following statements are true? (Choose all that apply)

A parent process may only have one child process and A child process may only have one parent process

Which of the following methods can you use to start the SSH daemon (sshd) upon entering runlevel 3? (Choose all that apply)

Create a shortcut to the /etc/init.d/sshd script called /etc/init.d/rc3.d/S88shd Change the INIT INFO section of the /etc/init.d/sshd script and run the insserv command Run the YaST Runlevel Editor

Which of the following key combinations can you use to pause a foreground process, such that it may be send to the background with the bg command?

Ctrl + z

Which of the following terms refers to a system that does not run on a terminal?

Daemon Process

Which of the following can be used to obtain detailed performance statistics regarding virtual memory usage? (Choose all that apply)

Files stored within the /proc directory. The vmstat command The sar command

What command(s) could you type at a command prompt as the root user to change your runlevel to Single User Mode?

Init 1, init s, init S, telinit 1, telinit s, telinit S (all of these commands are equivalent)

Which of the following commands will force your system to reboot? (Choose all that apply)

Init 6

You have just modified the /etc/lilo.conf file but your changes have not taken effect. What command must you run to rewrite the LILO boot loader to the MBR?

LILO

You notice the line(htd0, 2) in your GRUB configuration file. What does this line indicate?

The root file system for the operating system resides on the third partition on the first hard disk in the computer

To what processes are regular users allowed to send kill signals?

Their own processes

What command can you use to run the contents of the file cleanup at noon?

at noon -f cleanup

What command can you use to view at jobs that have been scheduled on your system?

atq

What can you type at a command prompt to run the updatedb command in the background?

Updatedb &

Which of the following commands can quickly identify the child processes started by a particular daemon?

pstree

Which of the following commands may be used to stop the SSH daemon (sshd)? (Choose all that apply)

rcsshd stop and /etc/init.d/sshd stop

What command could you use to change the priority of a process (PID=592) to run with the highest priority?

renice -n -20 592


Conjuntos de estudio relacionados

Chapter 12: Supporting Customers and Troubleshooting Windows

View Set

Ch16 (16.2)-General Senses (Sensory Receptors)

View Set

Ch 7: Arrays and the ArrayList Class

View Set

Estructura 2.4 Numbers 31 and higher: Baloncesto. Baloncesto. Fill in the blanks with the basketball scores in Spanish. Follow the model.

View Set

PSYC4050 L.7 Logistic Regression

View Set

Part Two: Scientific Basis for Practice

View Set