Главная страница
Навигация по странице:

  • 1.Question 1 Basic information about the characteristics of a users account can be found in: /etc/passwd

  • Open Source Software


    Скачать 1.28 Mb.
    НазваниеOpen Source Software
    Дата26.05.2022
    Размер1.28 Mb.
    Формат файлаdocx
    Имя файлаFinal_OS 2.docx
    ТипДокументы
    #551026
    страница38 из 39
    1   ...   31   32   33   34   35   36   37   38   39

    System Monitoring


    1.Question 1

    Which of the following utilities can be used to monitor I/O activity? (We encourage you to try all of them, as this is the best way to learn)

    • iotop

    • iostat

    • Vmstat

    • Sar

    2.Question 2

    Which of the following utilities can be used to monitor process and system load activity? (We encourage you to try all of them as this is the best way to learn)

    • top

    • ps

    • Uptime

    3.Question 3

    Your system seems memory-starved and is slowing down. Which utilities would give you information about your memory usage?

    vmstat

    free

    pmap

    4.Question 4

    Which statement is true?

    • It is easier to monitor system activity using command line tools, since they vary little from one Linux distribution to the next.

    5.Question 5

    Which are high level graphical system monitoring tools?

    • ksysguard

    • gnome-system-monitor

    Users and Groups


    1.Question 1

    Basic information about the characteristics of a user's account can be found in:

    • /etc/passwd

    2.Question 2

    Adding a new user to a group is done with:

    • usermod

    3.Question 3

    Which provides stronger security and auditing for system activity:

    • sudo

    4.Question 4

    Differences between su and su - include (Select all answers that apply):

    • su preserves more information, such as current directory, path and environment variables

    • su - starts a new login shell, while su just continues the current shell, but gives it super privileges

    5.Question 5

    Which is the proper way to use sudo with echo?

    • sudo bash -c "echo 3 > /proc/sys/vm/drop_caches"



    System Administration




    1.Question 1

    Depending on Linux distribution, which commands can install the libaio package and any packages it needs to function that are not already installed (Select all answers that apply)?

    • sudo zypper install libaio

    • sudo apt-get install libaio

    • sudo dnf install libaio

    • sudo yum install libaio

    2.Question 2

    Which command(s) can upgrade an entire system (Select all answers that apply)?

    1 / 1 point



    • dnf update

    • zypper update

    • sudo yum update

    • sudo apt-get dist-upgrade

    3.Question 3

    System logging files are kept under:

    • /var/log

    4.Question 4

    Where would the user named student usually find their personal files?

    • /home/student

    5.Question 5

    The logrotate program:

    • Cyclically rotates and optionally compresses log files to save space




    1. Which of the following commands are equivalent (Select all answers that apply)?

    Ans:

    • if [[ -f file.c ]] ; then cat file.c ; fi

    • if test -f file.c ; then cat file.c ; fi

    • if [ -f file.c ] ; then cat file.c ; fi

    • [[ -f file.c ]] && cat file.c

    2. Which commands will list all files under the current directory ending in "

    " (Select all answers that apply)?

    Note: Output lists may differ in format.

    Ans:

    • find . -name "*" -exec ls -l {} ';'

    • find . -name "*" -ls

    • find . -name "*" | xargs ls -l

    • ls -l $(find . -name "*")

    3. Functions (subprograms) are useful in bash scripts because (Select all answers that apply):

    Ans:

    • It is better not to have to call another script to get things done

    • They make things easier to read and comprehend

    • They eliminate the need to retype the same set of commands more than once
    1   ...   31   32   33   34   35   36   37   38   39


    написать администратору сайта