Os2 - II Odbrana

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 John321e
J
John321e
Community Contributor
Quizzes Created: 5 | Total Attempts: 2,861
Questions: 67 | Attempts: 1,156

SettingsSettingsSettings
Os2 - II Odbrana - Quiz

OS2 - II odbrana.


Questions and Answers
  • 1. 

    Šta predstavlja /dev/hda na Linux operarivnom sistemu?

    • A.

      Čvor (node) preko koga pristupamo disku “IDE Primary Master”

    • B.

      Direktorijum na kome se nalaze diskovi

    • C.

      Čvor (node) preko koga pristupamo disku “IDE Secondary Master”

    • D.

      Ne znam 

    Correct Answer
    A. Čvor (node) preko koga pristupamo disku “IDE Primary Master”
    Explanation
    The correct answer is "Čvor (node) preko koga pristupamo disku 'IDE Primary Master'". This answer correctly identifies that the given symbol represents the node through which we access the "IDE Primary Master" disk on a Linux operating system.

    Rate this question:

  • 2. 

    Koja je prednost ext3 fajl sistema u odnosu na ext2?

    • A.

      Ext2 fajl sistem je bolji u odnosu na ext3

    • B.

      Ext3 podržava dnevnik (journaling)

    • C.

      Ne znam

    • D.

      Ext3 podržava straničenje (paging)

    Correct Answer
    B. Ext3 podržava dnevnik (journaling)
    Explanation
    The correct answer is ext3 podržava dnevnik (journaling). Ext3 file system has the advantage of supporting journaling, which means that it keeps a log of changes before they are actually made to the file system. This helps in recovering the file system in case of a system crash or power failure, as it can replay the journal and restore the file system to a consistent state. This feature enhances data integrity and reduces the risk of data loss.

    Rate this question:

  • 3. 

    Šta postižemo sledećom komandom u Linuxu:
    • mount /dev/hdb1 /home

    • A.

      Montiramo IDE uređaj predstavljen čvorom /dev/hdb1 u svoj lični direktorijum 

    • B.

      Montiramo PDE uređaj predstavljen čvorom /dev/hdb1 u direktorijum /home

    • C.

      Montiramo IDE uređaj predstavljen čvorom /dev/hdb1 u direktorijum /home

    • D.

      Ne znam

    Correct Answer
    C. Montiramo IDE uređaj predstavljen čvorom /dev/hdb1 u direktorijum /home
    Explanation
    The given command "mount /dev/hdb1 /home" is used to mount an IDE device represented by the node /dev/hdb1 into the directory /home. This means that the contents of the IDE device will be accessible and usable in the /home directory.

    Rate this question:

  • 4. 

    Za koreni fajl sistem Root FS (/) važi sledeće:

    • A.

      Sadrži sistemske podatke i njegova struktura je strogo određena

    • B.

      U toku rada se ne može deaktivirati (umount)

    • C.

      Prvi se aktivira prilikom podizanja operativnog sistema

    • D.

      Ne znam 

    Correct Answer
    C. Prvi se aktivira prilikom podizanja operativnog sistema
    Explanation
    The correct answer states that the root file system (/) is activated first during the booting process of the operating system. This means that it is the initial file system that is accessed and loaded by the operating system during startup. Other file systems may be mounted later, but the root file system is essential for the functioning of the operating system.

    Rate this question:

  • 5. 

    Sledeće linije predstavljaju:
    • /dev/sda 1 /ext3 defaults,usrquota 1 1
    • /dev/sdb 1 /home ext3 defaults,usrquota 1 2
    • none /proc proc defaults 0 0
    • /dev/sda3 swap swap defaults 0 0

    • A.

      Tipičan sadržaj datoteke /etc/fstab

    • B.

      Tipičan sadržaj datoteke /dev/sda

    • C.

      Tipičan sadržaj datoteke /dev/fstab

    • D.

      Ne znam 

    Correct Answer
    A. Tipičan sadržaj datoteke /etc/fstab
    Explanation
    The given lines represent a typical content of the /etc/fstab file. This file is used by the operating system to mount filesystems at boot time and to define various mount options for each filesystem. The lines specify the device name, mount point, filesystem type, mount options, dump frequency, and pass number for each filesystem. The first line represents the root filesystem, the second line represents the /home filesystem, the third line represents the /proc filesystem, and the fourth line represents the swap partition.

    Rate this question:

  • 6. 

    Uređaj /dev/cdrom je montiran u direktorijum /media/cdrom Koje od sledećih komandi služe za deaktivaciju tog uređaja?

    • A.

      Umount /cdrom

    • B.

      Umount /dev/cdrom

    • C.

      Umount /media/cdrom

    • D.

      Ne znam

    Correct Answer
    B. Umount /dev/cdrom
    Explanation
    The correct answer is "umount /dev/cdrom". This command is used to unmount a device, in this case, the /dev/cdrom device. The "umount" command is followed by the device's path (/dev/cdrom) to specify which device should be unmounted. By executing this command, the device will be deactivated and can be safely removed from the system.

    Rate this question:

  • 7. 

    Koje komande unosimo za kreiranje i aktivaciju swap particije na /dev/sda2?

    • A.

      Swapon /dev/sda2

    • B.

      Swap /dev/sda2

    • C.

      Mkswap /dev/sda2

    • D.

      Ne znam

    Correct Answer
    C. Mkswap /dev/sda2
    Explanation
    The correct answer is "mkswap /dev/sda2". This command is used to create a swap partition on the /dev/sda2 device. The "swapon /dev/sda2" command is used to activate the swap partition, while the "swap /dev/sda2" command is not a valid command.

    Rate this question:

  • 8. 

    Kojom komandom kreiramo novi ext2 fajl sistem na particiji /dev/sdb1?

    • A.

      Create ext2 /dev/sdb1

    • B.

      Ne znam

    • C.

      Ext2 /dev/sdb1

    • D.

      Mkfs -t ext2 /dev/sdb1

    Correct Answer
    D. Mkfs -t ext2 /dev/sdb1
    Explanation
    The command "mkfs -t ext2 /dev/sdb1" is used to create a new ext2 file system on the partition /dev/sdb1. The "mkfs" command is used to create a file system, "-t ext2" specifies the file system type as ext2, and "/dev/sdb1" is the partition on which the file system will be created. This command formats the partition and sets it up to be used as an ext2 file system.

    Rate this question:

  • 9. 

    U datoteci /etc/fstab se nalazi sledeće:

    • A.

      Spisak fajl sistema i parametara za montiranje (mount) prilikom podizanja operativnog sistema

    • B.

      Spisak fajl sistema i parametara za deaktivranje (umount) prilikom podizanja operativnog sistema

    • C.

      Spisak datoteka i parametara za montiranje (mount) prilikom podizanja operativnog sistema

    • D.

      Ne znam

    Correct Answer
    A. Spisak fajl sistema i parametara za montiranje (mount) prilikom podizanja operativnog sistema
    Explanation
    The correct answer is "Spisak fajl sistema i parametara za montiranje (mount) prilikom podizanja operativnog sistema." This is because the /etc/fstab file contains a list of file systems and their parameters for mounting during the boot process of the operating system.

    Rate this question:

  • 10. 

    Program fdisk služi za:

    • A.

      Upravljanje hard diskova 

    • B.

      Upravljanje particijama hard diskova - kreiranje, brisanje i sl.

    • C.

      Upravljanje fajl sistemima

    • D.

      Ne znam

    Correct Answer
    B. Upravljanje particijama hard diskova - kreiranje, brisanje i sl.
    Explanation
    The correct answer is "Upravljanje particijama hard diskova - kreiranje, brisanje i sl." This is because the program fdisk is used for managing partitions on a hard disk, including creating and deleting partitions, as well as performing other related tasks. It is not used for managing the entire hard disk or file systems, but specifically for partition management.

    Rate this question:

  • 11. 

    Postoji sledeća linija u datoteci:
    • /etc/fstab: /dev/sdb1 /proba ext3 defaults 0 2
    da li je potrebno nešto izmeniti da bi obični korisnici mogli da montiraju (mount) fajlsistem /dev/sdb1?

    • A.

      Potrbno je dodati ,mount posle defaults

    • B.

      Nije potrebno ništa izmeniti

    • C.

      Potrbno je dodati ,user posle defaults

    • D.

      Ne znam

    Correct Answer
    C. Potrbno je dodati ,user posle defaults
    Explanation
    To allow regular users to mount the /dev/sdb1 filesystem, it is necessary to add ",user" after "defaults" in the given line in the /etc/fstab file.

    Rate this question:

  • 12. 

    Program badblocks služi za:

    • A.

      Proveru ispravnosti fajl sistema

    • B.

      Proveru ispravnosti blokova

    • C.

      Ne znam 

    • D.

      Proveru fizičke ispravnosti površine hard diska

    Correct Answer
    D. Proveru fizičke ispravnosti površine hard diska
    Explanation
    The correct answer is "Proveru fizičke ispravnosti površine hard diska" which translates to "Checking the physical integrity of the hard disk surface". The program badblocks is used to scan and detect any bad sectors or blocks on a hard disk. It helps to identify any physical damage or errors on the hard disk's surface, allowing users to take appropriate actions such as repairing or replacing the disk.

    Rate this question:

  • 13. 

    Komanda
    • fsck /dev/sdb1
    služi za:

    • A.

      Proveru logične ispravnosti direktorijuma

    • B.

      Proveru logične ispravnosti fajl sistema sdb1

    • C.

      Proveru fizičke ispravnosti fajl sistema sdb1

    • D.

      Ne znam

    Correct Answer
    B. Proveru logične ispravnosti fajl sistema sdb1
    Explanation
    The correct answer is "Proveru logične ispravnosti fajl sistema sdb1" which translates to "Checking the logical integrity of the sdb1 file system." This command is used to check the file system for any logical errors or inconsistencies on the device /dev/sdb1. It ensures that the file system is functioning correctly and can detect and fix any issues that may be present.

    Rate this question:

  • 14. 

    Komande df i du služe za proveru slobodnog i zauzetog prostora fajl sistema.

    • A.

      Netačno 

    • B.

      Uslovno

    • C.

      Tačno 

    • D.

      Ne znam

    Correct Answer
    C. Tačno 
    Explanation
    The given statement is true. The command "df" is used to check the free and used space of a file system. By running this command, users can see the amount of disk space used and available on their system. It provides information about the total size of the file system, the amount of space used, the amount of free space, and the percentage of space used. Therefore, the statement "tačno" (true) is the correct answer.

    Rate this question:

  • 15. 

    Pretvaranje ext2 fajl sistema u ext3 je moguće bez gubitka podataka.

    • A.

      Netačno

    • B.

      Uslovno

    • C.

      Ne znam

    • D.

      Tačno

    Correct Answer
    D. Tačno
    Explanation
    The statement "Pretvaranje ext2 fajl sistema u ext3 je moguće bez gubitka podataka" translates to "Converting an ext2 file system to ext3 is possible without data loss." The correct answer "Tačno" means "True." Therefore, the explanation is that it is indeed possible to convert an ext2 file system to ext3 without losing any data.

    Rate this question:

  • 16. 

    Prilikom upotrebe neimenovane “pipe” datoteke, koja je ispravna sintaksa i redosled pozivanja da bi ulaz za programA bio izlaz iz programB?

    • A.

      ProgramB | programA

    • B.

      ProgramA | programB

    • C.

      Oba 

    • D.

      Ne znam

    Correct Answer
    A. ProgramB | programA
    Explanation
    The correct answer is "programB | programA". This is the correct syntax and order of calling in order for the input for programA to be the output of programB. The "|" symbol represents the pipe operator, which allows the output of one program to be used as the input of another program. In this case, programB's output is being piped into programA as its input.

    Rate this question:

  • 17. 

    Šta se dešava prilikom korišćenja neimenovane “pipe” datoteke ukoliko proces čitalac pokuša da pročita a ne postoje raspoloživi podaci?

    • A.

      Ne može da se koristi neimenovana pipe datoteka

    • B.

      Proces čitalac se blokira dok se ne pojave podaci i time se postiže automatska sinhronizacija

    • C.

      Ne znam 

    • D.

      Proces čitalac se ne blokira dok se ne pojave podaci i time se postiže automatska sinhronizacija

    Correct Answer
    B. Proces čitalac se blokira dok se ne pojave podaci i time se postiže automatska sinhronizacija
    Explanation
    When using an unnamed "pipe" file, if the reader process tries to read but there is no available data, it will be blocked until data appears. This allows for automatic synchronization between the reader and writer processes.

    Rate this question:

  • 18. 

    Pri upotrebi shmget:
    • int segment_id = shmget (key, getpagesize(), shmflg);
    getpagesize() predstavlja:

    • A.

      Funkciju koja  vraća trenutnu sistemsku veličinu deljive memorije

    • B.

      Funkciju koja šalje trenutnu sistemsku veličinu stranice (page size)

    • C.

      Funkciju koja vraća trenutnu sistemsku veličinu stranice (page size)

    • D.

      Ne znam

    Correct Answer
    C. Funkciju koja vraća trenutnu sistemsku veličinu stranice (page size)
    Explanation
    The correct answer is "Funkciju koja vraća trenutnu sistemsku veličinu stranice (page size)". In this context, getpagesize() is a function that returns the current system page size. This page size is used as the size parameter in the shmget() function to allocate a shared memory segment.

    Rate this question:

  • 19. 

    U sledećem delu programskog koda
    • segment_id = shmget (IPC_PRIVATE, shared_segment_size,
    • IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR);
    dodelili smo sledeća prava vlasniku deljivog memorijskog segmenta:

    • A.

      Samo čitanje

    • B.

      Samo pisanje

    • C.

      Čitanje i pisanje

    • D.

      Ne znam

    Correct Answer
    C. Čitanje i pisanje
    Explanation
    The given code is using the shmget function to create a shared memory segment. The flags IPC_CREAT and IPC_EXCL are used to create a new segment if it does not already exist. The flags S_IRUSR and S_IWUSR are used to set the permissions for the owner of the segment, allowing both reading and writing. Therefore, the correct answer is "Čitanje i pisanje".

    Rate this question:

  • 20. 

    Čemu služi poziv shmget()?

    • A.

      Za alokaciju ne deljivog memorijskog segmenta

    • B.

      Za alokaciju memorijskog segmenta

    • C.

      Ne znam

    • D.

      Za alokaciju deljivog memorijskog segmenta

    Correct Answer
    D. Za alokaciju deljivog memorijskog segmenta
    Explanation
    Poziv shmget() služi za alokaciju deljivog memorijskog segmenta.

    Rate this question:

  • 21. 

    Čemu služi poziv mmap()?

    • A.

      Za mapiranje obične datoteke u memoriju nekog procesa

    • B.

      Ne znam

    • C.

      Za mapiranje datoteke

    • D.

      Za mapiranje specijalne datoteke u memoriju nekog procesa

    Correct Answer
    A. Za mapiranje obične datoteke u memoriju nekog procesa
    Explanation
    The correct answer is "Za mapiranje obične datoteke u memoriju nekog procesa." This means that the mmap() function is used to map a regular file into the memory of a process. This allows the process to directly access the contents of the file in memory, making it easier to read from or write to the file.

    Rate this question:

  • 22. 

    U navedenom delu programskog koda:
    • file_memory = mmap
    • (0,FILE_LENGTH,PROT_WRITE,MAP_SHARED,fd,0);
    radimo sledeće:

    • A.

      Kreiramo mapiranu datoteku sa pravom za upis u fajl deskriptor sa ofsetom nula

    • B.

      Kreiramo memorijski mapiranu datoteku sa pravom za upis u fajl deskriptor sa ofsetom nula

    • C.

      Kreiramo memorijski mapiranu datoteku sa pravom za upis u fajl deskriptor sa ofsetom jedan

    • D.

      Ne znam

    Correct Answer
    B. Kreiramo memorijski mapiranu datoteku sa pravom za upis u fajl deskriptor sa ofsetom nula
    Explanation
    In the given code, the function mmap is used to create a memory-mapped file with write permission for the file descriptor and an offset of zero. This means that a portion of the file is mapped into memory, allowing direct read and write operations to the file. The offset of zero indicates that the mapping starts from the beginning of the file. Therefore, the correct answer is "Kreiramo memorijski mapiranu datoteku sa pravom za upis u fajl deskriptor sa ofsetom nula" (We create a memory-mapped file with write permission for the file descriptor and an offset of zero).

    Rate this question:

  • 23. 

    Pri korišćenju sistemskog poziva :
    • pipe(fds)
    parametar fds predstavlja:

    • A.

      Celobrojni niz od dva člana u koji se smeštaju deskriptori datoteka samo za pisanje

    • B.

      Celobrojni niz od dva člana u koji se smeštaju deskriptori datoteka samo za čitanje

    • C.

      Celobrojni niz od dva člana u koji se smeštaju deskriptori datoteka za čitanje i pisanje

    • D.

      Ne znam

    Correct Answer
    C. Celobrojni niz od dva člana u koji se smeštaju deskriptori datoteka za čitanje i pisanje
    Explanation
    The correct answer is "Celobrojni niz od dva člana u koji se smeštaju deskriptori datoteka za čitanje i pisanje." This means that the parameter 'fds' represents an integer array of two members where file descriptors for both reading and writing are stored.

    Rate this question:

  • 24. 

    Razlika između FIFO i Pipe datoteka je:

    • A.

      Nema razlike

    • B.

      Ne znam 

    • C.

      FIFO nema ima ime u sistemu datoteka a Pipe je imenovana datoteka

    • D.

      FIFO ima ime u sistemu datoteka a Pipe je neimenovana datoteka

    Correct Answer
    D. FIFO ima ime u sistemu datoteka a Pipe je neimenovana datoteka
    Explanation
    The correct answer states that FIFO has a name in the file system, while Pipe is an unnamed file. This means that FIFO can be accessed and manipulated using its name in the file system, whereas Pipe does not have a specific name and is typically used for communication between processes within the same system.

    Rate this question:

  • 25. 

    Soketi (sockets) omogućavaju komunikaciju između:

    • A.

      Nepovezanih procesa na različitim računarima

    • B.

      Povezanih procesa na različitim računarima

    • C.

      Nepovezanih i povezanih procesa na različitim računarima

    • D.

      Ne znam

    Correct Answer
    A. Nepovezanih procesa na različitim računarima
    Explanation
    Soketi (sockets) omogućavaju komunikaciju između nepovezanih procesa na različitim računarima. Ovo znači da soketi omogućavaju komunikaciju između procesa koji nemaju prethodno uspostavljenu vezu ili odnos. Soketi se koriste za slanje i primanje podataka između različitih računara preko mreže.

    Rate this question:

  • 26. 

    Šta je tačno za blok uređaje u Linuxu?

    • A.

      Obezbeđuju slučajan (proizvoljan) pristup skladištenim podacima

    • B.

      Obezbeđuju čitanje ili upis u podataka u blokovima fiksne veličine

    • C.

      Obezbeđuju čitanje ili upis i pristup

    • D.

      Ne znam 

    Correct Answer
    B. Obezbeđuju čitanje ili upis u podataka u blokovima fiksne veličine
    Explanation
    The correct answer is that block devices in Linux provide reading or writing of data in fixed-size blocks. Block devices are a type of storage device that allows data to be accessed in blocks rather than individual bytes. These blocks have a fixed size, which allows for efficient reading and writing operations. Block devices include devices such as hard drives and solid-state drives.

    Rate this question:

  • 27. 

    Na koji način tipični aplikativni programi u Linuksu pristupaju sadržaju hard diska?

    • A.

      Preko sadržaja fajl sistema montiranog (mount) u okviru korenog sistema datoteka

    • B.

      Preko sadržaja particije montiranog (mount) u okviru korenog sistema datoteka

    • C.

      Ne znam 

    Correct Answer
    B. Preko sadržaja particije montiranog (mount) u okviru korenog sistema datoteka
    Explanation
    Typical application programs in Linux access the content of the hard disk through the content of the partition mounted within the root file system.

    Rate this question:

  • 28. 

    Šta predstavlja datoteka /dev/zero:

    • A.

      Ne znam 

    • B.

      Nod običnog uređaja koji se ponaša kao da je ispunjem beskonačnim brojem nula

    • C.

      Nod specijalnog uređaja koji se ponaša kao da je ispunjem beskonačnim brojem nula

    Correct Answer
    C. Nod specijalnog uređaja koji se ponaša kao da je ispunjem beskonačnim brojem nula
    Explanation
    The correct answer is "Nod specijalnog uređaja koji se ponaša kao da je ispunjem beskonačnim brojem nula." This means that /dev/zero is a special device node that behaves as if it is filled with an infinite number of zeros.

    Rate this question:

  • 29. 

    Šta sve važi za nod /dev/null:

    • A.

      Nod specijalnog uređaja koji pri čitanju prijavljuje da je prazan - veličine 0 bajtova

    • B.

      Nod specijalnog uređaja kod koga se pri upisivanju svi podaci odbacuju

    • C.

      Nod specijalnog uređaja kod koga se pri upisivanju svi podaci nule

    • D.

      Ne znam 

    Correct Answer
    B. Nod specijalnog uređaja kod koga se pri upisivanju svi podaci odbacuju
    Explanation
    The correct answer is "Nod specijalnog uređaja kod koga se pri upisivanju svi podaci odbacuju". This is because /dev/null is a special device node in Unix-like operating systems that discards all data written to it. It is often used to redirect unwanted output or to discard data without any further processing.

    Rate this question:

  • 30. 

    Koji faktor koristi sistemski generator slučajnih brojeva u Linuksu kao “spoljšnji” izvor?

    • A.

      Ponašanje korisnika

    • B.

      Ponašanje cpu-a

    • C.

      Zvuk

    • D.

      Ne znam

    Correct Answer
    A. Ponašanje korisnika
    Explanation
    The correct answer is "Ponašanje korisnika." In Linux, the system random number generator uses various factors as "external" sources to generate random numbers. One of these factors is the behavior of the user. The user's actions, such as mouse movements and keyboard inputs, are used as input to generate random numbers. This helps to ensure that the generated numbers are unpredictable and suitable for cryptographic purposes.

    Rate this question:

  • 31. 

    Uređaji povratne petlje (loopback) u Linuksu /dev/loop0, /dev/loop1, … služe za simuliranje nekog blok uređaja koristeći datoteku - sliku - sa sadržajem (disk image).

    • A.

      Uslovno

    • B.

      Tačno

    • C.

      Netačno

    • D.

      Ne znam

    Correct Answer
    B. Tačno
    Explanation
    The given answer "Tačno" (True) is correct because it accurately states that the loopback devices in Linux, such as /dev/loop0, /dev/loop1, etc., are used to simulate a block device by using a file or disk image as its content. This allows users to access and manipulate the contents of the file as if it were a physical device.

    Rate this question:

  • 32. 

    Za uspešno montiranje (mount) postojeće slike diska (disk image) /tmp/image u direktorijumu /mnt/vdrv koristeći uređaj povratne petlje (loopback) potrebno je da unesemo sledeće komande:

    • A.

      Mount loop=/dev/loop0 /tmp/image /mnt/vdrv

    • B.

      Mount -o loop=/dev/loop0 /tmp/image 

    • C.

      Mount -o loop=/dev/loop0 /tmp/image /mnt/vdrv

    • D.

      Mount -o loop=/dev/loop0 /tmp /mnt/vdrv

    Correct Answer
    C. Mount -o loop=/dev/loop0 /tmp/image /mnt/vdrv
    Explanation
    The correct answer is "mount -o loop=/dev/loop0 /tmp/image /mnt/vdrv". This command uses the "-o" option to specify that the loop device is "/dev/loop0", the disk image is located at "/tmp/image", and the mount point is "/mnt/vdrv". This command correctly mounts the disk image using the loopback device.

    Rate this question:

  • 33. 

    Šta se nalazi u direktorijumu /dev/pts na Linuksu?

    • A.

      Ne znam 

    • B.

      Tu je montiran specijalni sistem datoteka u kome se statički kreiraju nodovi koji odgovaraju pokrenutim kvazi-terminalima

    • C.

      Tu je montiran specijalni sistem datoteka u kome se dinamički kreiraju nodovi koji odgovaraju pokrenutim kvazi-terminalima

    Correct Answer
    C. Tu je montiran specijalni sistem datoteka u kome se dinamički kreiraju nodovi koji odgovaraju pokrenutim kvazi-terminalima
    Explanation
    The correct answer is "Tu je montiran specijalni sistem datoteka u kome se dinamički kreiraju nodovi koji odgovaraju pokrenutim kvazi-terminalima." This means that the special file system /dev/pts on Linux dynamically creates nodes that correspond to running pseudo-terminals. This allows multiple terminal sessions to be created and managed simultaneously.

    Rate this question:

  • 34. 

    Čemu služi sistemski poziv ioctl?

    • A.

      Pomoću ovog poziva se može upravljati uređajima na Linuksu

    • B.

      Pomoću ovog poziva se može upravljati diskovima na Linuksu

    • C.

      Pomoću ovog poziva se može upravljati fajlovima na Linuksu

    • D.

      Ne znam

    Correct Answer
    A. Pomoću ovog poziva se može upravljati uređajima na Linuksu
    Explanation
    The ioctl system call in Linux is used to control devices. It allows a user program to communicate with a device driver and perform various operations on the device, such as configuring settings, retrieving information, or controlling its behavior. This system call is commonly used for managing and manipulating devices in the Linux operating system.

    Rate this question:

  • 35. 

    Which one do you like?

    • A.

      U /proc se nalaze datoteke koje se dinamički generišu i sadrže informacije o hardverskoj konfiguraciji sistema

    • B.

      U /proc se nalaze direktorijumi dinamički kreirani za sve aktivne procese koji sadrže podatke o tim procesima

    • C.

      /proc/ sadrži veze ka svim deskriptorima datoteka koje aktivni procesi na sistemu koriste

    • D.

      Ne znam 

    Correct Answer
    B. U /proc se nalaze direktorijumi dinamički kreirani za sve aktivne procese koji sadrže podatke o tim procesima
    Explanation
    The correct answer states that in /proc, there are dynamically created directories for all active processes that contain information about those processes. This means that the /proc directory in a system contains specific directories for each active process, and these directories hold important data about the respective processes.

    Rate this question:

  • 36. 

    Šta je na Linuksu direktorijum /proc/self?

    • A.

      To je specijalni direktorijum u kome se pojavljuje sadržaj u zavisnosti od procesa koji pristupa, i ne odgovara PID tog procesa u /proc/ direktorijumu

    • B.

      Ne znam 

    • C.

      To je specijalni direktorijum u kome se pojavljuje sadržaj u zavisnosti od procesa koji pristupa, i odgovara PID tog procesa u /proc/ direktorijumu

    Correct Answer
    C. To je specijalni direktorijum u kome se pojavljuje sadržaj u zavisnosti od procesa koji pristupa, i odgovara PID tog procesa u /proc/ direktorijumu
    Explanation
    The correct answer is: To je specijalni direktorijum u kome se pojavljuje sadržaj u zavisnosti od procesa koji pristupa, i odgovara PID tog procesa u /proc/ direktorijumu.

    The /proc/self directory in Linux is a special directory that contains information about the current process. It dynamically shows the content based on the process that accesses it and corresponds to the process ID (PID) of that process in the /proc/ directory. Therefore, the correct answer explains the purpose and functionality of the /proc/self directory accurately.

    Rate this question:

  • 37. 

    Koje sve komande se mogu koristiti za ispisivanje tabele rutiranja u Linuksu?

    • A.

      Route

    • B.

      Netstat -r

    • C.

      Rttable

    • D.

      Ne znam 

    Correct Answer
    A. Route
    Explanation
    The correct answer is "route". In Linux, the "route" command is used to display or manipulate the IP routing table. It allows users to view the current routing table, add or delete routes, and modify routing parameters. The "netstat -r" command can also be used to display the routing table, providing information about the network connections and routing information. However, "rttable" and "ne znam" are not valid commands for displaying the routing table in Linux.

    Rate this question:

  • 38. 

    Šta se dešava kada u Linuksu pokrnemo komandu ifconfig bez dodatnih parametara?

    • A.

      Dobijamo prikaz i status svih aktivnih mrežnih interfejsa

    • B.

      Dobijamo prikaz i status određenih aktivnih mrežnih interfejsa

    • C.

      Dobijamo prikaz svih aktivnih mrežnih interfejsa

    • D.

      Ne znam

    Correct Answer
    A. Dobijamo prikaz i status svih aktivnih mrežnih interfejsa
    Explanation
    When we run the "ifconfig" command in Linux without any additional parameters, it displays the information and status of all active network interfaces. This allows us to see the details of each interface, such as IP addresses, MAC addresses, and network settings.

    Rate this question:

  • 39. 

    Šta se podešava u datoteci /etc/exports na Linuksu?

    • A.

      Tabela eksportovanih datoteka

    • B.

      Parametri mrežnog sistema datoteka (NFS)

    • C.

      Parametri fajl sistema datoteka (FFS)

    • D.

      Ne znam

    Correct Answer
    B. Parametri mrežnog sistema datoteka (NFS)
    Explanation
    The correct answer is "Parametri mrežnog sistema datoteka (NFS)". This is because the question is asking about what can be configured in the /etc/exports file on Linux. The /etc/exports file is used to define the directories and options that are available for remote NFS clients to access. Therefore, the correct answer is the one that mentions "Parametri mrežnog sistema datoteka (NFS)", as it is the only option related to NFS, which is the network file system used for sharing files and directories between systems.

    Rate this question:

  • 40. 

    Šta omogućava program sudo na Linuksu?

    • A.

      Izvršavanje programa bez privilegija drugih korisnika sa njihovim šiframa

    • B.

      Taj program ne postoji na Linuksu

    • C.

      Izvršavanje programa sa privilegijama drugih korisnika bez njihove šifre

    • D.

      Ne znam

    Correct Answer
    C. Izvršavanje programa sa privilegijama drugih korisnika bez njihove šifre
    Explanation
    The correct answer is "Izvršavanje programa sa privilegijama drugih korisnika bez njihove šifre" which translates to "Executing programs with the privileges of other users without their password". This refers to the "sudo" command in Linux, which allows a user to run commands with the security privileges of another user, typically the root user, without needing to know their password.

    Rate this question:

  • 41. 

    Šta se postiže sledećom komandom:
    • find / -nouser -o -nogroup

    • A.

      Prikazivanje svih datoteka koje imaju vlasnika i grupe na fajl sistemu

    • B.

      Prikazivanje svih datoteka fajl sistemu

    • C.

      Ne znam 

    • D.

      Prikazivanje svih datoteka bez vlasnika i grupe na fajl sistemu

    Correct Answer
    D. Prikazivanje svih datoteka bez vlasnika i grupe na fajl sistemu
    Explanation
    The given command "find / -nouser -o -nogroup" is used to display all files on the file system that do not have an owner or a group assigned to them.

    Rate this question:

  • 42. 

    Šta se dešava kada korisnik sa root privilegijama izvrši sledeću komandu:
    • rm -rf /

    • A.

      Započinje se brisanje celokupnog korenog stabla Linux sistema datoteka sa svim poddirektorijumima

    • B.

      Započinje se brisanje celokupnog korenog stabla Linux sistema datoteka sa bez poddirektorijumima

    • C.

      Ne znam 

    • D.

      Komanda nije ispravno uneta

    Correct Answer
    A. Započinje se brisanje celokupnog korenog stabla Linux sistema datoteka sa svim poddirektorijumima
    Explanation
    The given command "rm -rf /" is used to remove files and directories recursively and forcefully. In this case, it is being executed with root privileges. The option "-r" indicates that the removal should be done recursively, and the option "-f" indicates that it should be done forcefully without prompting for confirmation. The argument "/" specifies the root directory. Therefore, the command will start deleting the entire root directory of the Linux system, including all its subdirectories.

    Rate this question:

  • 43. 

    Na Linuksu se jezgro koje se koristi prilikom podizanja operativnog sistemačuva u direktorijumu /boot. Nakoji način se može povećati sigurnost jezgra?

    • A.

      Ostaviti ga na istoj particiji i podesiti da je ona samo za čitanje (read only) u /etc/fstab

    • B.

      Prebaciti ga na drugu particiju i podesiti da je ona samo za čitanje (read only) u /etc/fstab

    • C.

      Ne znam

    • D.

      Prebaciti ga na drugu particiju i podesiti da je ona samo za pisanje (write only) u /etc/fstab

    Correct Answer
    B. Prebaciti ga na drugu particiju i podesiti da je ona samo za čitanje (read only) u /etc/fstab
    Explanation
    By moving the kernel to a separate partition and setting it to read-only in the /etc/fstab file, the security of the kernel can be increased. This prevents any unauthorized modifications to the kernel, as it can only be accessed in a read-only mode. This helps to protect the integrity of the kernel and reduce the risk of malicious attacks or unauthorized changes to the operating system.

    Rate this question:

  • 44. 

    Šta se beleži u datoteku /var/log/messages na Linuksu?

    • A.

      Korisnički događaji koje beleži syslog alat

    • B.

      Sistemski i korisnički događaji koje beleži syslog alat

    • C.

      Sistemski događaji koje beleži syslog alat

    • D.

      Ne znam

    Correct Answer
    C. Sistemski događaji koje beleži syslog alat
    Explanation
    The correct answer is "Sistemski događaji koje beleži syslog alat." This answer states that syslog tool logs system events.

    Rate this question:

  • 45. 

    Dnevnička datoteka (log file) koju generiše syslog je obično propširna za ručni pregled od strane administratora. Koji programi služe za lakši pregled i slanje obaveštenja o određenim događajima?

    • A.

      Swatch

    • B.

      Aptitude

    • C.

      Ne znam

    • D.

      Logcheck

    Correct Answer
    D. Logcheck
    Explanation
    Logcheck is a program that is used for easier review and notification of specific events in log files generated by syslog. It helps administrators to efficiently monitor and manage log files by automatically scanning them for predefined patterns or keywords and sending notifications or alerts when those patterns are found. This allows administrators to stay informed about important events and take necessary actions promptly.

    Rate this question:

  • 46. 

    Čemu služi wrapper program xinetd?

    • A.

      Kontroliše mrežne zahteve za određenim portovima i po potrebi podiže tražene servise

    • B.

      Kontroliše sistemske zahteve za određenim portovima i po potrebi podiže tražene servise

    • C.

      Ne znam 

    • D.

      Taj program ne postoji

    Correct Answer
    A. Kontroliše mrežne zahteve za određenim portovima i po potrebi podiže tražene servise
    Explanation
    The correct answer is "Kontroliše mrežne zahteve za određenim portovima i po potrebi podiže tražene servise." The wrapper program xinetd is used to control network requests for specific ports and, if necessary, start the requested services.

    Rate this question:

  • 47. 

    Jedini način da običan korisnik izvrši program sa ROOT privilegijama na Linuksu je da zna šifru root-a

    • A.

      Tačno

    • B.

      Netačno

    • C.

      Uslovno

    • D.

      Ne znam

    Correct Answer
    B. Netačno
    Explanation
    The given statement is incorrect. The only way for an ordinary user to execute a program with root privileges on Linux is not just by knowing the root password. There are other methods such as using the "sudo" command or modifying the user's permissions through the "sudoers" file. Therefore, the correct answer is "Netačno" (False).

    Rate this question:

  • 48. 

    Rezultat izvršenja komande mount na jednom Linux sistemu je:
    • /dev/hda1 on / type ext2 (rw)
    • /dev/hdc5 on /mnt type ext2 (rw)
    • /dev/hda4 on /DOS type msdos (ro)
    • none on /proc type proc (rw).
    Na osnovu toga odredite broj i vrstu diskova na sistemu:

    • A.

      Minimum 2 diska, IDE Primary Master i IDE Secondary Master - tako pise u skripti iz kopirnice

    • B.

      Minimum 2 diska, IDE Primary Master i IDE Primary Slave - tako pise u skripti iz kopirnice

    • C.

      Ne znam 

    • D.

      Minimum 2 diska, IDE Primary Slavei IDE Primary Slave - tako pise u skripti iz kopirnice

    Correct Answer
    A. Minimum 2 diska, IDE Primary Master i IDE Secondary Master - tako pise u skripti iz kopirnice
    Explanation
    Based on the output of the "mount" command, we can determine that there are at least 2 disks on the Linux system. The first disk is /dev/hda1, which is mounted as the root ("/") directory and is of type ext2. This disk is identified as the IDE Primary Master. The second disk is /dev/hdc5, which is mounted on /mnt and is also of type ext2. This disk is identified as the IDE Secondary Master. Therefore, the correct answer is "minimum 2 diska, IDE Primary Master i IDE Secondary Master - tako pise u skripti iz kopirnice".

    Rate this question:

  • 49. 

    Rezultat izvršenja komande mount na jednom Linux sistemu je:
    • /dev/hda1 on / type ext2 (rw)
    • /dev/hdb5 on /mnt type ext2 (rw)
    • /dev/hda4 on /DOS type msdos (ro)
    • none on /proc type proc (rw).
    Na osnovu toga odredite broj i vrstu diskova na sistemu:

    • A.

      Minimum 2 diska, IDE Primary Master i IDE Secondary Master - tako pise u skripti iz kopirnice

    • B.

      Minimum 2 diska, IDE Primary Master i IDE Primary Slave - tako pise u skripti iz kopirnice

    • C.

      Minimum 2 diska, IDE Primary Slavei IDE Primary Slave - tako pise u skripti iz kopirnice

    • D.

      Ne znam 

    Correct Answer
    B. Minimum 2 diska, IDE Primary Master i IDE Primary Slave - tako pise u skripti iz kopirnice
    Explanation
    Based on the output of the mount command, we can see that there are two disk devices mounted on the system: /dev/hda1 and /dev/hdb5. The device /dev/hda1 is mounted on the root directory (/), indicating that it is the primary disk (IDE Primary Master). The device /dev/hdb5 is mounted on the /mnt directory, suggesting that it is the secondary disk (IDE Primary Slave). Therefore, the correct answer is "minimum 2 diska, IDE Primary Master i IDE Primary Slave - tako pise u skripti iz kopirnice."

    Rate this question:

  • 50. 

    Rezultat izvršenja komande mount na jednom Linux sistemu je:
    • /dev/hda1 on / type ext2 (rw)
    • /dev/hda2 on /home type ext2 (rw)
    • /dev/hda3 on /win type ntfs (ro)
    • /dev/hda4 on /tmp type ext2 (rw)
    • none on /proc type proc (rw).
    Korisnik root zadaje sledeće komande: umount /home, umount /win, umount /tmp Korisnik root:

    • A.

      Ne može da izvrši sve komande

    • B.

      Može da samo komande umount /home, umount /win

    • C.

      Može da izvrši sve komande

    • D.

      Ne znam

    Correct Answer
    C. Može da izvrši sve komande
    Explanation
    The given output shows that the /home, /win, and /tmp directories are currently mounted on the system. The user root is attempting to unmount these directories using the "umount" command. Since the user root has the necessary permissions and the directories are currently mounted, the user root can successfully execute all the commands and unmount the directories.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 18, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 17, 2019
    Quiz Created by
    John321e
Back to Top Back to top
Advertisement