Operativni Sistemi 1 Odbrana Vežbi

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Stojanovicn88
S
Stojanovicn88
Community Contributor
Quizzes Created: 2 | Total Attempts: 2,602
Questions: 37 | Attempts: 1,128

SettingsSettingsSettings
Operativni Sistemi 1 Odbrana Vebi - Quiz


Questions and Answers
  • 1. 

    Ukoliko se korisnik nalazi u direktorijumu /etc i zatim unese komande: 1.cd.. 2.pwd kao odziv druge komande će se dobiti:

    • A.

      Prazan odziv

    • B.

      /home/korisnik

    • C.

      /etc

    • D.

      /

    Correct Answer
    D. /
    Explanation
    The correct answer is "/". When the user enters the command "cd.." in the /etc directory, it moves up one level to the parent directory, which is "/". Then, when the user enters the command "pwd", it prints the current working directory, which is "/" in this case.

    Rate this question:

  • 2. 

    Kojom opcijom se određeni korisnik dodeljuje nekoj grupi uz pomoć komande usermod? Komanda usermod[opcija] [grupa] [korisničko ime] Unesite komandu u obliku -opcija

    Correct Answer
    -G
    Explanation
    The option "-G" is used with the usermod command to assign a specific user to a group. This option allows the user to be added to multiple groups simultaneously.

    Rate this question:

  • 3. 

    Čekanje da se zadati dete-proces završi (umesto bilo kog drugog dete-procesa) može da se obavi pomoću sistemskog poziva:

    Correct Answer
    waitpid()
    Explanation
    The waitpid() system call can be used to wait for a specific child process to finish, instead of any other child process. It allows the parent process to specify the process ID of the child it wants to wait for, ensuring that it waits only for that particular child process to complete. This can be useful in scenarios where the parent process needs to synchronize its execution with a specific child process, or when it needs to handle the termination of a specific child process before continuing its own execution.

    Rate this question:

  • 4. 

    Pravilan poziv kompajlera gcc je:

    • A.

      Gcc -o ime_izvršne datoteke sourceCode

    • B.

      Gcc -o sourceCode ime_izvršne datoteke

    • C.

      Gcc -x sourceCode ime_izvršne datoteke

    • D.

      Gcc -x ime_izvršne datoteke sourceCode

    Correct Answer
    A. Gcc -o ime_izvršne datoteke sourceCode
    Explanation
    The correct answer is "gcc -o ime_izvršne datoteke sourceCode". This is the correct format for invoking the gcc compiler. The "-o" option is used to specify the output file name, in this case "ime_izvršne datoteke", and "sourceCode" is the input source code file.

    Rate this question:

  • 5. 

    Pretraga tekstualnog uzorka (patterna) unutar man komande omogućava se pritiskom na taster:

    Correct Answer
    ctrl+w
    Explanation
    Pressing the "ctrl+w" key combination allows for the search of a textual pattern within the "man" command.

    Rate this question:

  • 6. 

    Određenim sistemskim korisnicima se u polje komandnog interpretera postavljaju izvršne datoteke koje sprečavaju prijavljivanje?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    A. Tačno
    Explanation
    Certain system users can be assigned executable files in the command interpreter field that prevent login.

    Rate this question:

  • 7. 

    Ukoliko hoćemo da odredimo tip datoteke pod imenom last_login , to ćemo uraditi komandom:

    • A.

      Sudo type/login

    • B.

      Sudo type /putanja/do/last_login/datoteke

    • C.

      Sudo file /putanja/do/last_login/datoteke

    Correct Answer
    C. Sudo file /putanja/do/last_login/datoteke
    Explanation
    The correct answer is "sudo file /putanja/do/last_login/datoteke". This command is used to determine the type of a file named "last_login" located at the specified path. The "sudo" command is used to run the command with administrative privileges, and "file" is the command that determines the type of the file. By providing the path to the file as an argument, the command will display the type of the file.

    Rate this question:

  • 8. 

    Podrazumevana prava za direktorijume i datoteke od kojih se "oduzima" umask vrednost pri inicijalnom postavljanju prava?

    • A.

      666 za datoteke, 777 za direktorijume

    • B.

      Ista su oba tipa i iznose 777

    • C.

      777 za datoteke 666 za direktorijume

    • D.

      Ista su oba tipa i iznose 666

    Correct Answer
    A. 666 za datoteke, 777 za direktorijume
    Explanation
    The umask value is subtracted from the default permissions for directories and files. In this case, the umask value is 666 for files, which means that the default permissions for files will be 777 - 666 = 111. Similarly, the umask value is 777 for directories, which means that the default permissions for directories will be 777 - 777 = 0. Therefore, the correct answer is 666 for files and 777 for directories.

    Rate this question:

  • 9. 

    Prelazak u root nalog iz regularnog naloga u terminal je moguć uz komande:

    • A.

      Su -l

    • B.

      Sudo su /

    • C.

      Su root

    • D.

      Sudo -l

    • E.

      Sudo su-

    • F.

      Nijedno od ponuđenog

    Correct Answer(s)
    D. Sudo -l
    E. Sudo su-
    Explanation
    The correct answer is "sudo -l" and "sudo su-". The "sudo -l" command allows a user to list their privileges or permissions, while "sudo su-" allows a user to switch to the root user account. Both commands are used to gain root access in a terminal.

    Rate this question:

  • 10. 

    Izlazak iz programa less vrši se pritiskom tastera:

    • A.

      Q

    • B.

      CTRL+Q

    • C.

      O

    • D.

      ALT+Q

    Correct Answer
    A. Q
    Explanation
    The correct answer is Q. This is because the question is asking for the key that is used to exit the program "less". In this case, pressing the Q key will exit the program.

    Rate this question:

  • 11. 

    Komanda time vraća vremena sa oznakama: Izaberite jedan ili više odgovora:

    • A.

      UTC

    • B.

      Real

    • C.

      Full

    • D.

      User

    • E.

      Nijedno od ponuđenih

    • F.

      Sys

    Correct Answer(s)
    B. Real
    D. User
    F. Sys
    Explanation
    The correct answer is "real, user, sys". This is because the question asks for the time labels returned by the "time" command. "real" represents the real (wall clock) time, "user" represents the amount of CPU time spent in user-mode, and "sys" represents the amount of CPU time spent in system-mode. These labels are commonly used in performance monitoring and profiling of computer programs.

    Rate this question:

  • 12. 

    Za redirekciju izlaza se koristi znak:

    • A.

      <<

    • B.

      <-

    • C.

      >

    • D.

      ->

    • E.

      <

    Correct Answer
    C. >
    Explanation
    The correct answer is ">" because the ">" sign is used for output redirection in programming languages. It is commonly used to redirect the output of a command or program to a file or another command. This allows the output to be stored or processed further without being displayed on the screen.

    Rate this question:

  • 13. 

    Postavite prava pristupa za datoteku "metal" (koja je u vlasništvu korisnika "nemanja") na 755 Napomena: uneti celu komandu

    Correct Answer
    chmod 755 metal
    Explanation
    The given correct answer suggests using the command "chmod 755 metal" to set the access rights for the file named "metal" to 755. The "chmod" command is used to change the permissions of a file or directory. The number 755 represents the permissions in octal form, where the first digit (7) corresponds to the owner's permissions, the second digit (5) corresponds to the group's permissions, and the third digit (5) corresponds to others' permissions. In this case, the owner has read, write, and execute permissions, while the group and others have read and execute permissions.

    Rate this question:

  • 14. 

    Određenim sistemskim korisnicima se u polje komandnog interpretera postavljaju izvršne komande koje sprečavaju prijavljivanje u sistem: Izaberite jedan ili više odgovora:

    • A.

      Nijedno od ponuđenih

    • B.

      /bin/false

    • C.

      /usr/sbin/nologin

    • D.

      /bin/shell

    Correct Answer(s)
    B. /bin/false
    C. /usr/sbin/nologin
    Explanation
    Certain system users are assigned executable commands in the command interpreter field that prevent them from logging into the system. The correct answers are "/bin/false" and "/usr/sbin/nologin". These commands are commonly used to disable login for specific users or system accounts.

    Rate this question:

  • 15. 

    Ako datoteku želimo da otvorimo tako da je moguće čitanje, drugi parametar open() sistemskog poziva može biti: Izaberite jedan ili više odgovora:

    • A.

      O_A

    • B.

      O_WRONLY

    • C.

      O_RDONLY

    • D.

      O_ALL

    • E.

      O_RDWR

    Correct Answer(s)
    C. O_RDONLY
    E. O_RDWR
    Explanation
    The second parameter of the open() system call determines the access mode for opening a file. The options are O_RDONLY (read-only) and O_RDWR (read-write). O_RDONLY allows only reading from the file, while O_RDWR allows both reading and writing. Therefore, the correct answer is O_RDONLY, O_RDWR as these options allow the file to be opened for reading.

    Rate this question:

  • 16. 

    Jedan od osnovnih koraka prilikom kreiranja novog korisničkog naloga je:

    • A.

      Dodavanje korisnika u grupu sudoersa

    • B.

      Kopiranje inicijalnog profila

    • C.

      Kreiranje ličnog direktorijuma korisnika  direktorijum /tmp

    • D.

      Nijedno od ponuđenog

    Correct Answer
    B. Kopiranje inicijalnog profila
    Explanation
    When creating a new user account, one of the basic steps is to copy the initial profile. This means that the settings and configurations from an existing profile are copied to the new user's account, providing them with a starting point and ensuring consistency across user accounts. This helps to save time and effort in setting up individual user accounts from scratch.

    Rate this question:

  • 17. 

    Koji od navedenih programa nije interaktivan za kreiranje novog naloga?

    • A.

      Useradd

    • B.

      Adduser

    • C.

      Mkuser

    • D.

      Usermk

    Correct Answer
    A. Useradd
    Explanation
    The correct answer is "useradd". This program is not interactive for creating a new account. Unlike "adduser" which prompts the user for additional information, "useradd" simply adds a new user to the system with default settings. "mkuser" and "usermk" are not standard Linux commands, so they are not relevant to the question.

    Rate this question:

  • 18. 

    Komandom who sa opcijom -q dobijamo informaciju informaciju ko je trenutno prijavljen i broj prijavljenih?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    A. Tačno
    Explanation
    The given answer is correct. When using the option -q with the command "who", we can obtain information about who is currently logged in and the number of logged-in users.

    Rate this question:

  • 19. 

    Koji od korisnika se mogu prijaviti?

    • A.

      /bin/bash->sentinel

    • B.

      Bash/bin

    • C.

      Bash/bin->sentinel

    • D.

      Sentinel

    Correct Answer
    A. /bin/bash->sentinel
    Explanation
    The correct answer is "/bin/bash->sentinel". This answer suggests that the user "/bin/bash" can log in and access the system. The "->sentinel" part might indicate that this user has some special privileges or is associated with a specific security system.

    Rate this question:

  • 20. 

    Koja od navedenih komandi služi za promenu postupnog(?) podrazumevanog korisničkog interfejsa?

    • A.

      Chsh

    • B.

      Shch

    • C.

      Shsh

    • D.

      Schh

    Correct Answer
    A. Chsh
    Explanation
    The correct answer is "chsh". The chsh command is used to change the user's login shell, which can also affect the default user interface. By using this command, the user can switch to a different shell, such as bash or zsh, which may have a different interface compared to the default shell.

    Rate this question:

  • 21. 

    Kojom opcijom se parametri pri izvršavanju programa "user-add" uzimaju iz datoteke "user add" "etc/default/useradd"

    Correct Answer
    -D
    Explanation
    The option "-D" is used to specify the default configuration file for the "user-add" program. In this case, the parameters are being taken from the file "etc/default/useradd".

    Rate this question:

  • 22. 

    Na Linux-u postoje neki sistemski korisnici koji ne pripadaju ni jednoj grupi?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    B. Netačno
    Explanation
    On Linux, there are system users that do not belong to any group. These system users are typically created for specific system processes or services that do not require group membership. Therefore, the statement "Netačno" (False) is the correct answer as there are indeed system users on Linux that do not belong to any group.

    Rate this question:

  • 23. 

    Redirekcija ulaza se obavlja pomoću znaka >?

    • A.

      Tačno 

    • B.

      Netačno

    Correct Answer
    B. Netačno
    Explanation
    The statement "Redirekcija ulaza se obavlja pomoću znaka >?" translates to "Input redirection is done using the > sign?" in English. The correct answer is "Netačno" which means "False". This means that the statement is incorrect. Input redirection is actually done using the < sign in most command line interfaces, including Unix-like systems and Windows PowerShell. The > sign is used for output redirection.

    Rate this question:

  • 24. 

    Komandom cd se mora proslediti relativna putanja?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    B. Netačno
    Explanation
    The correct answer is "Netačno" (False). The explanation for this is that the "cd" command in a command-line interface is used to change the current directory. It can accept both relative and absolute paths as arguments. Therefore, it is not necessary to always provide a relative path when using the "cd" command.

    Rate this question:

  • 25. 

    Brisanje crontab datoteke -slovo:

    Correct Answer
    -r
    Explanation
    The correct answer for this question is -r. This option is used to remove the crontab file. By using the -r option, the crontab file associated with the user is deleted, effectively removing all the scheduled tasks and jobs. This option is useful when there is a need to completely remove the crontab file and start fresh.

    Rate this question:

  • 26. 

    Pregledanje crontab datoteke slovo:

    Correct Answer
    -l
    Explanation
    The correct answer is "-l" because the "-l" option is used to list the contents of the crontab file. By including this option in the command, the user can view the scheduled tasks and their respective timing settings.

    Rate this question:

  • 27. 

    Izmena crontab datoteke -e?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    A. Tačno
    Explanation
    Izmena crontab datoteke -e se odnosi na tačnost tvrdnje da je moguće izmeniti crontab datoteku koristeći komandu -e.

    Rate this question:

  • 28. 

    Komanda kojom prikazujemo listu svih poslova?

    Correct Answer
    jobs
    Explanation
    The correct answer is "jobs". This command is used to display a list of all jobs.

    Rate this question:

  • 29. 

    Komanda ps -t daje više informacija od ps -f?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    B. Netačno
    Explanation
    The correct answer is "Netačno" (False). The command "ps -t" does not provide more information than the command "ps -f". In fact, "ps -f" provides a more detailed output, showing the full format of the process listing, including additional information such as the terminal associated with each process. On the other hand, "ps -t" only displays the processes associated with the current terminal.

    Rate this question:

  • 30. 

    Procesna grupa se može suspendovati:

    • A.

      CTRL

    • B.

      CTRL+Z

    • C.

      Kill

    • D.

      ALT+Z

    Correct Answer(s)
    B. CTRL+Z
    C. Kill
    Explanation
    The correct answer is CTRL+Z, kill. The CTRL+Z combination is commonly used to suspend a process in a Unix-like operating system. This action sends a SIGSTOP signal to the process, pausing its execution. On the other hand, the "kill" command is used to send different signals to a process, including SIGSTOP, which can suspend it as well. Therefore, both CTRL+Z and the kill command can be used to suspend a process. The other options mentioned, CTRL and ALT+Z, do not have a specific function related to suspending processes.

    Rate this question:

  • 31. 

    Koristeći brojnu notaciju, napisati koja su prava pristupa korisnika,grupe i ostalih(others) nad skrivenim fajlom .Xauthorithy: Unositi samo odgovarajuće brojeve npr: 777

    Correct Answer(s)
    600
    Explanation
    The correct answer is 600. In Unix-like systems, file permissions are represented by a three-digit number. The first digit represents the permissions for the file owner, the second digit represents the permissions for the group, and the third digit represents the permissions for others. In this case, the number 600 means that the file owner has read and write permissions, while the group and others have no permissions.

    Rate this question:

  • 32. 

    Prikazana procedura predstavlja interakciju nakon poziva komande adduser marko:

    • A.

      Tačno 

    • B.

      Netačno

    Correct Answer
    A. Tačno 
    Explanation
    The given procedure represents the interaction after calling the "adduser marko" command.

    Rate this question:

  • 33. 

    Prikazana procedura predstavlja interakciju nakon poziva komande useradd marko:

    • A.

      Tačno 

    • B.

      Netačno

    Correct Answer
    B. Netačno
    Explanation
    The given procedure does not represent the interaction after the useradd command is called for the user "marko". Therefore, the answer is "Netačno" (False).

    Rate this question:

  • 34. 

    Komanda sa slike menja vlasnika direktorijuma v4.Nakon ove komande vlasnik je "korisnik"?

    • A.

      Tačno

    • B.

      Netačno

    Correct Answer
    A. Tačno
    Explanation
    The given answer is "Tačno" (Correct). This suggests that the command shown in the image successfully changes the owner of the directory v4 to "korisnik".

    Rate this question:

  • 35. 

    Korisnik unosi komandu,kao odziv sistema dobiće:

    • A.

      Sve direktorijume u okviru /etc direktorijuma kojima su prva dva slova od a do d,a zatim imaju neograničen broj promenljivih karaktera

    • B.

      Sve direktorijujme u okviru /etc direktorijuma koji počinju slovima od b do c

    • C.

      Grešku,jer komanda nije ispravna

    Correct Answer
    C. Grešku,jer komanda nije ispravna
    Explanation
    The given correct answer states that the system will return an error because the command is not correct. However, without knowing the specific command that the user entered, it is not possible to provide a more detailed explanation.

    Rate this question:

  • 36. 

    Prikaz sa slike dobijen je upotrebom komande:

    • A.

      Ls -l

    • B.

      Ls

    • C.

      Ls la

    Correct Answer
    A. Ls -l
    Explanation
    The correct answer is "ls -l" because this command is used to display detailed information about files and directories in a long format. It provides information such as file permissions, owner, group, file size, and modification date. The "-l" option stands for "long format".

    Rate this question:

  • 37. 

    Prikaz sa slike dobijen je komandom:

    • A.

      Ls -la

    • B.

      Ls -a

    • C.

      Ls

    • D.

      Ls -l

    Correct Answer
    B. Ls -a
    Explanation
    The correct answer is "ls -a". This command is used to list all files and directories, including hidden ones, in the current directory. The "-a" option stands for "all" and it displays all files and directories, including those whose names start with a dot (which indicates hidden files in Linux).

    Rate this question:

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.