Os2 - II Odbrana

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By John321e
J
John321e
Community Contributor
Quizzes Created: 5 | Total Attempts: 3,095
| Attempts: 1,168 | Questions: 67
Please wait...
Question 1 / 67
0 %
0/100
Score 0/100
1. Novi nod za uređaje kreiraćete komandom:

Explanation

The correct answer is "mknod". This command is used to create a new special file or device node in the file system. It is typically used to create character or block devices.

Submit
Please wait...
About This Quiz
Os2 - II Odbrana - Quiz

OS2 - II odbrana.

Personalize your quiz and earn a certificate with your name on it!
2. Komande df i du služe za proveru slobodnog i zauzetog prostora fajl sistema.

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.

Submit
3. Kojom komandom kreiramo novi ext2 fajl sistem na particiji /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.

Submit
4. 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:

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".

Submit
5. Sistemski pozivi popoen i pclose se koriste za rad sa:

Explanation

The correct answer is "Pipe strukturama" (Pipe structures). The system calls popen and pclose are used for working with pipe structures. Pipes are a form of inter-process communication that allows the output of one process to be used as the input for another process. The popen function opens a pipe and creates a new process to execute a command, while the pclose function closes the pipe and waits for the associated process to terminate. These system calls are commonly used for tasks such as redirecting input/output between processes or creating a pipeline of processes.

Submit
6. Razlika između FIFO i Pipe datoteka je:

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.

Submit
7. Dat je deo podešavanja u /etc/syslog.conf datoteci koja se odnose na poruke jezgra (kernel) Linuksa sa kritičnim prioritetom (crit). Povezati gde se šalju poruke na osnovu linija konfiguracije.
Submit
8. Koja je prednost ext3 fajl sistema u odnosu na ext2?

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.

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

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.

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

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.

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

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.

Submit
12. Šta je na Linuksu direktorijum /proc/self?

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.

Submit
13. Šta predstavlja /dev/hda na Linux operarivnom sistemu?

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.

Submit
14. Prilikom upotrebe neimenovane "pipe" datoteke, koja je ispravna sintaksa i redosled pozivanja da bi ulaz za programA bio izlaz iz programB?

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.

Submit
15. 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).

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.

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

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.

Submit
17. Koja od ponuđenih komandi za aktiviranje mrežnog sistema datoteka ima ispravnu sintaksu?

Explanation

The correct answer is "mount -t nfs fileserver1://share/doc /doc". This command uses the correct syntax for activating a network file system. It specifies the file system type (-t nfs) and the location of the file server (fileserver1://share/doc). It also specifies the mount point (/doc) where the file system will be mounted.

Submit
18. 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?

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.

Submit
19. Algoritam wakeup je tesno povezan sa:

Explanation

The correct answer is "mechanism of interruption". The wakeup algorithm is closely related to the mechanism of interruption. When a device or process needs attention or needs to be activated, it sends an interrupt signal to the system, which triggers the wakeup algorithm. This algorithm determines the appropriate action to take in response to the interrupt and ensures that the necessary resources are allocated to handle the interrupt effectively.

Submit
20. Sledeći deo koda se koristi za:
  • int fd =open (fifo_path, O_WRONLY); 
  • write (fd, data, data_length);
  • close (fd);

Explanation

The given code opens a file descriptor using the "open" function, specifying the path to a FIFO (named pipe) file and the flag O_WRONLY, indicating that the file will be opened for writing only. Then, it writes the contents of the data buffer to the FIFO using the "write" function and the file descriptor. Finally, it closes the file descriptor using the "close" function. Therefore, the correct answer is "Upis bafera podataka u FIFO", which translates to "Writing data buffer to FIFO" in English.

Submit
21. Program fdisk služi za:

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.

Submit
22. Kojom komandom ćete najlakše utvrditi IP adresu vašeg mrežnog adaptera?

Explanation

The correct answer is "ifconfig". By using the "ifconfig" command, you can easily determine the IP address of your network adapter.

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

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.

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

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.

Submit
25. Šta postižemo sledećom komandom u Linuxu:
  • mount /dev/hdb1 /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.

Submit
26. Koje komande unosimo za kreiranje i aktivaciju swap particije na /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.

Submit
27. Sledeći deo koda se koristi za:
  • FILE*fifo = fopen (fifo_path, "r");
  • fscanf (fifo, %s, buffer);
  • fclose (fifo);

Explanation

The given code is used for reading data from a FIFO file. It opens the FIFO file using the "r" mode, reads a string from the file using fscanf, and then closes the file. Therefore, the correct answer is "Čitanje podataka iz FIFO datoteke" which translates to "Reading data from a FIFO file" in English.

Submit
28. 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?

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.

Submit
29. Koji faktor koristi sistemski generator slučajnih brojeva u Linuksu kao "spoljšnji" izvor?

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.

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

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).

Submit
31. Šta omogućava program sudo na Linuksu?

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.

Submit
32. Sistemski poziv dup2 koristi se za:

Explanation

The correct answer is "preusmeravanje ulaza i izlaza". The dup2 system call in programming is used to duplicate a file descriptor, allowing the input and output to be redirected from one file to another. This means that the input and output can be redirected to a different file or device, providing flexibility in handling data streams.

Submit
33. Čemu služi poziv shmget()?

Explanation

Poziv shmget() služi za alokaciju deljivog memorijskog segmenta.

Submit
34. 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?

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.

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

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.

Submit
36. 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:

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.

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

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.

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

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.

Submit
39. Korisnik root zadaje sledeće dve komande:
  • dd if=/dev/zero of=/swap_file count =100M bs=512
  • mkswap /swap_file
Za koliko se povećava ukupan swap prostor na sistemu?

Explanation

The given commands are used to create a swap file and initialize it as swap space on the system. However, the size of the swap file is not specified in the commands, so it will not increase the total swap space on the system. Therefore, the correct answer is "Ne povećava se" (It does not increase).

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

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.

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

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.

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

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.

Submit
43. Za koju konfiguracionu datoteku je karakterističan sledeći sadržaj:
  • search mydomain.co.yu
  • nameserver 172.16.48.1

Explanation

The given content is typically found in the /etc/resolve.conf file. This file is used by the DNS resolver to map hostnames to IP addresses. It specifies the nameserver(s) that should be used for DNS resolution. In this case, the nameserver 172.16.48.1 is specified, indicating that DNS queries should be sent to this IP address for resolution.

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

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).

Submit
45. Čemu služi sistemski poziv ioctl?

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.

Submit
46. 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:

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.

Submit
47. Program badblocks služi za:

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.

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

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.

Submit
49. Korisnik root zadaje sledeće dve komande:
  • dd if=/dev/zero of=/swap_file count =100M bs=512
  • mkswap /swap_file
  • swapon /swap_file
Za koliko se povećava ukupan swap prostor na sistemu?

Explanation

The given commands are used to create and enable swap space on the system. The "dd" command is used to create a file called "swap_file" with a size of 100M (100 megabytes) and a block size of 512 bytes. The "mkswap" command is used to set up the file as swap space. Finally, the "swapon" command is used to enable the swap space. Since the size of the file created is 100M, which is equal to 51.2 MB, the total swap space on the system is increased by 51.2 MB.

Submit
50. U datoteci /etc/sudoers korisniku student1 dato pravo da izvršava komande chown i find sa akreditivima root korisnika. korisnik student1 može da pokloni svije datoteke korisniku student2 komandom:

Explanation

The correct answer is "sudo find / -user student1 -print -exec chown student2 {} \;". This command uses the "sudo" command to execute the "find" command with the specified options. It searches for files owned by "student1" and prints their paths, then it uses the "exec" option to execute the "chown" command and change the ownership of each found file to "student2".

Submit
51. U datoteci /etc/fstab se nalazi sledeće:

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.

Submit
52. Komanda
  • fsck /dev/sdb1
služi za:

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.

Submit
53. Čemu služi wrapper program xinetd?

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.

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

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.

Submit
55. 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

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.

Submit
56. Šta predstavlja datoteka /dev/zero:

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.

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

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.

Submit
58. 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:

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."

Submit
59. Čemu služi poziv mmap()?

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.

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

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.

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

Explanation

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

Submit
62. 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:

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".

Submit
63. Which one do you like?

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.

Submit
64. 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/hda5 on /tmp type ext2 (rw)
  • none on /proc type proc (rw).
Korisnik root zadaje sledeće komande: umount /home, umount /win, umount /tmp Odredite koju komandu korisnik root sigurno ne može da izvrši:

Explanation

The user root cannot execute the command "mkfs -t ext2 /dev/hda4" because the command is attempting to create a new file system on the device /dev/hda4. However, the device /dev/hda4 is not currently mounted, as indicated by the output of the "mount" command. Therefore, the user cannot create a file system on a device that is not mounted.

Submit
65. Spojiti komande vezane za mrežu u Linuksu sa njihovom namenom:
Submit
66. Spojiti datoteke vezane za mrežu u Linuksu sa njihovom namenom:
Submit
67. U datoteci /etc/sudoers korisniku student1 dato pravo da izvršava komandu chown sa akreditivima root korisnika. korisnik student1 može da pokloni svije datoteke korisniku student2 komandom:

Explanation

not-available-via-ai

Submit
View My Results

Quiz Review Timeline (Updated): Mar 18, 2023 +

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
Cancel
  • All
    All (67)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Novi nod za uređaje kreiraćete komandom:
Komande df i du služe za proveru slobodnog i zauzetog prostora fajl...
Kojom komandom kreiramo novi ext2 fajl sistem na particiji /dev/sdb1?
U sledećem delu programskog koda ...
Sistemski pozivi popoen i pclose se koriste za rad sa:
Razlika između FIFO i Pipe datoteka je:
Dat je deo podešavanja u /etc/syslog.conf datoteci koja se...
Koja je prednost ext3 fajl sistema u odnosu na ext2?
Šta se postiže sledećom komandom: ...
Šta se dešava kada korisnik sa root privilegijama...
Pretvaranje ext2 fajl sistema u ext3 je moguće bez gubitka podataka.
Šta je na Linuksu direktorijum /proc/self?
Šta predstavlja /dev/hda na Linux operarivnom sistemu?
Prilikom upotrebe neimenovane "pipe" datoteke, koja je ispravna...
Uređaji povratne petlje (loopback) u Linuksu /dev/loop0, /dev/loop1,...
Pri korišćenju sistemskog poziva : ...
Koja od ponuđenih komandi za aktiviranje mrežnog sistema datoteka...
Postoji sledeća linija u datoteci: ...
Algoritam wakeup je tesno povezan sa:
Sledeći deo koda se koristi za: ...
Program fdisk služi za:
Kojom komandom ćete najlakše utvrditi IP adresu vašeg...
Šta se dešava prilikom korišćenja neimenovane...
Šta se nalazi u direktorijumu /dev/pts na Linuksu?
Šta postižemo sledećom komandom u Linuxu: ...
Koje komande unosimo za kreiranje i aktivaciju swap particije na...
Sledeći deo koda se koristi za: ...
Dnevnička datoteka (log file) koju generiše syslog je obično...
Koji faktor koristi sistemski generator slučajnih brojeva u Linuksu...
U navedenom delu programskog koda: ...
Šta omogućava program sudo na Linuksu?
Sistemski poziv dup2 koristi se za:
Čemu služi poziv shmget()?
Na Linuksu se jezgro koje se koristi prilikom podizanja operativnog...
Pri upotrebi shmget: ...
Za uspešno montiranje (mount) postojeće slike diska (disk...
Za koreni fajl sistem Root FS (/) važi sledeće:
Uređaj /dev/cdrom je montiran u direktorijum /media/cdrom Koje od...
Korisnik root zadaje sledeće dve komande: ...
Šta se dešava kada u Linuksu pokrnemo komandu ifconfig...
Šta je tačno za blok uređaje u Linuxu?
Šta se podešava u datoteci /etc/exports na Linuksu?
Za koju konfiguracionu datoteku je karakterističan sledeći...
Jedini način da običan korisnik izvrši program sa ROOT...
Čemu služi sistemski poziv ioctl?
Rezultat izvršenja komande mount na jednom Linux sistemu je: ...
Program badblocks služi za:
Koje sve komande se mogu koristiti za ispisivanje tabele rutiranja u...
Korisnik root zadaje sledeće dve komande: ...
U datoteci /etc/sudoers korisniku student1 dato pravo da...
U datoteci /etc/fstab se nalazi sledeće:
Komanda fsck /dev/sdb1 služi za:
Čemu služi wrapper program xinetd?
Soketi (sockets) omogućavaju komunikaciju između:
Sledeće linije predstavljaju: ...
Šta predstavlja datoteka /dev/zero:
Na koji način tipični aplikativni programi u Linuksu pristupaju...
Rezultat izvršenja komande mount na jednom Linux sistemu je: ...
Čemu služi poziv mmap()?
Šta sve važi za nod /dev/null:
Šta se beleži u datoteku /var/log/messages na Linuksu?
Rezultat izvršenja komande mount na jednom Linux sistemu je: ...
Which one do you like?
Rezultat izvršenja komande mount na jednom Linux sistemu je: ...
Spojiti komande vezane za mrežu u Linuksu sa njihovom namenom:
Spojiti datoteke vezane za mrežu u Linuksu sa njihovom namenom:
U datoteci /etc/sudoers korisniku student1 dato pravo da...
Alert!

Advertisement