1.
Ukoliko se korisnik nalazi u direktorijumu /etc i zatim unese komande:
1.cd..
2.pwd
kao odziv druge komande će se dobiti:
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.
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.
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.
4.
Pravilan poziv kompajlera gcc je:
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.
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.
6.
Određenim sistemskim korisnicima se u polje komandnog interpretera postavljaju izvršne datoteke koje sprečavaju prijavljivanje?
Correct Answer
A. Tačno
Explanation
Certain system users can be assigned executable files in the command interpreter field that prevent login.
7.
Ukoliko hoćemo da odredimo tip datoteke pod imenom last_login , to ćemo uraditi komandom:
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.
8.
Podrazumevana prava za direktorijume i datoteke od kojih se "oduzima" umask vrednost pri inicijalnom postavljanju prava?
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.
9.
Prelazak u root nalog iz regularnog naloga u terminal je moguć uz komande:
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.
10.
Izlazak iz programa less vrši se pritiskom tastera:
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.
11.
Komanda time vraća vremena sa oznakama:
Izaberite jedan ili više odgovora:
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.
12.
Za redirekciju izlaza se koristi znak:
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.
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.
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:
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.
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:
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.
16.
Jedan od osnovnih koraka prilikom kreiranja novog korisničkog naloga je:
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.
17.
Koji od navedenih programa nije interaktivan za kreiranje novog naloga?
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.
18.
Komandom who sa opcijom -q dobijamo informaciju informaciju ko je trenutno prijavljen i broj prijavljenih?
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.
19.
Koji od korisnika se mogu prijaviti?
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.
20.
Koja od navedenih komandi služi za promenu postupnog(?) podrazumevanog korisničkog interfejsa?
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.
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".
22.
Na Linux-u postoje neki sistemski korisnici koji ne pripadaju ni jednoj grupi?
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.
23.
Redirekcija ulaza se obavlja pomoću znaka >?
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.
24.
Komandom cd se mora proslediti relativna putanja?
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.
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.
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.
27.
Izmena crontab datoteke -e?
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.
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.
29.
Komanda ps -t daje više informacija od ps -f?
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.
30.
Procesna grupa se može suspendovati:
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.
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.
32.
Prikazana procedura predstavlja interakciju nakon poziva komande adduser marko:
Correct Answer
A. Tačno
Explanation
The given procedure represents the interaction after calling the "adduser marko" command.
33.
Prikazana procedura predstavlja interakciju nakon poziva komande useradd marko:
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).
34.
Komanda sa slike menja vlasnika direktorijuma v4.Nakon ove komande vlasnik je "korisnik"?
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".
35.
Korisnik unosi komandu,kao odziv sistema dobiće:
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.
36.
Prikaz sa slike dobijen je upotrebom komande:
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".
37.
Prikaz sa slike dobijen je komandom:
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).