Linux Lupina - Terminal

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 Mateb
M
Mateb
Community Contributor
Quizzes Created: 1 | Total Attempts: 50
| Attempts: 50 | Questions: 7
Please wait...
Question 1 / 7
0 %
0/100
Score 0/100
1. Kateri ukaz bi uporabili za varno odstranitev USB ključa? Pomoč

Explanation

The correct answer is "umount." This command is used to safely remove or unmount a USB key or any other mounted device from the system. By using the "umount" command, the operating system ensures that all data has been written to the device and any ongoing processes are completed before allowing the device to be safely removed. This helps prevent data corruption or loss that could occur if the device is removed without proper unmounting.

Submit
Please wait...
About This Quiz
Linux Lupina - Terminal - Quiz

Preverite svoje znanje iz Linux lupine. Nalog se lotite tako, da najprej sami rešite nalogo, nato pa pogledate s katerim odgovorom se ujemajo vaši ukazi in se odločite za pravilnega.

Personalize your quiz and earn a certificate with your name on it!
2. Kateri ukaz bi uporabili da bi v ”/home/ubunto/Documents/domace_naloge/1_naloga” našli vse txt datoteke?

Explanation

The command "find *.txt" is used to search for all text files in the directory "/home/ubunto/Documents/domace_naloge/1_naloga". The command "find" is used to search for files and directories based on specified criteria, in this case, the criteria is files with the extension ".txt". The asterisk (*) is a wildcard character that represents any characters before the ".txt" extension.

Submit
3. Zaščititi hočemo datoteko “domaca_1.txt” tako, da bo lastnik lahko bral in pisal, ostali bodo pa lahko le brali. Spodaj zapišite ukaz. Pomoč

Explanation

The given answer suggests that the command "chmod 644 domaca_1.txt" should be used to protect the file "domaca_1.txt" in a way that the owner can read and write, while others can only read. The "chmod" command is used to change the permissions of a file or directory, and the numbers "644" represent the permission settings. The first digit "6" represents the owner's permissions, which include read and write access. The second and third digits "4" represent the group and others' permissions, which only include read access.

Submit
4. Trenutno se nahajamo na “/home/ubuntu”. Želimo pregledati vsebino imenika Documents ter v njej ustvariti nov imenik ”domace_naloge". Kakšno bo zaporedje ukazov?

Explanation

The correct answer suggests that the first command should be "cd Documents" to navigate to the Documents directory. Then, the "ls" command is used to list the contents of the Documents directory. Finally, the "mkdir domace_naloge" command is used to create a new directory called "domace_naloge" within the Documents directory.

Submit
5. Znotraj imenika “domace_naloge” želimo ustvariti datoteko “domaca_1.txt” z tekstom “To je moja prva domača naloga” znotraj te datoteke. Katero zaporedje ukazov je pravilno?  Pomoč: ukazi, kreiranje datotek

Explanation

The correct answer is "cat > domaca_1.txt". This command creates a file named "domaca_1.txt" and redirects the output of the "cat" command (which is the text "To je moja prva domača naloga") into the file. This will result in the desired file "domaca_1.txt" with the specified text inside it.

Submit
6. Znotraj imenika ”domace_naloge” imamo na novo kreirano .txt datoteko in sicer “domaca_1.txt”. To datoteko želimo kopirati v istem imeniku in jo hkrati preimenovati v “domaca_2.txt”. Kateri ukaz je pravilen?

Explanation

The correct answer is "cp domaca_1.txt domaca_2.txt". This is the correct command to copy the file "domaca_1.txt" and rename it as "domaca_2.txt" within the same directory. The "cp" command is used to copy files, and by specifying the source file "domaca_1.txt" and the destination file "domaca_2.txt", the file is copied and renamed accordingly.

Submit
7. V imeniku domace_naloge želimo izbrisati imenik 2_domaca. Kateri je pravilen ukaz?

Explanation

The correct answer is "rm -r 2_domaca". This command is used to remove a directory and its contents recursively. In this case, we want to delete the directory "2_domaca" and all its files and subdirectories within it. The "rm" command alone would only delete files, but not directories. The "-r" option is necessary to remove directories recursively.

Submit
View My Results

Quiz Review Timeline (Updated): Jul 22, 2024 +

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

  • Current Version
  • Jul 22, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 03, 2008
    Quiz Created by
    Mateb
Cancel
  • All
    All (7)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Kateri ukaz bi uporabili za varno odstranitev USB ključa? Pomoč
Kateri ukaz bi uporabili da bi v...
Zaščititi hočemo datoteko “domaca_1.txt” tako, da bo lastnik...
Trenutno se nahajamo na “/home/ubuntu”. Želimo pregledati vsebino...
Znotraj imenika “domace_naloge” želimo ustvariti datoteko...
Znotraj imenika ”domace_naloge” imamo na novo kreirano .txt...
V imeniku domace_naloge želimo izbrisati imenik 2_domaca. Kateri je...
Alert!

Advertisement