Linux Lupina - Terminal

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 Mateb
M
Mateb
Community Contributor
Quizzes Created: 1 | Total Attempts: 50
Questions: 7 | Attempts: 50

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


Questions and Answers
  • 1. 

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

    • A.

      Ls mkdir domace_naloge

    • B.

      Cd Documents ls mkdir domace_naloge

    • C.

      Cd documents ls mkdir domace_naloge

    Correct Answer
    B. Cd Documents ls mkdir domace_naloge
    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.

    Rate this question:

  • 2. 

    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

    • A.

      Make > domaca_1.txt To je moja prva domača naloga.

    • B.

      File domaca_1.txt To je moja prva domača naloga.

    • C.

      Cat > domaca_1.txt To je moja prva domača naloga.

    Correct Answer
    C. Cat > domaca_1.txt To je moja prva domača naloga.
    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.

    Rate this question:

  • 3. 

    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?

    • A.

      Cp domaca_1.txt domaca_2.txt

    • B.

      Cp domaca_1.txt paste domaca_2.txt

    • C.

      Mv domaca_1.txt domaca_2.txt

    Correct Answer
    A. Cp domaca_1.txt domaca_2.txt
    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.

    Rate this question:

  • 4. 

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

    • A.

      Rmdir 2_domaca

    • B.

      Rm 2_domaca

    • C.

      Rm -r 2_domaca

    Correct Answer
    C. Rm -r 2_domaca
    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.

    Rate this question:

  • 5. 

    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č

    Correct Answer
    chmod 644 domaca_1.txt
    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.

    Rate this question:

  • 6. 

    Kateri ukaz bi uporabili za varno odstranitev USB ključa? Pomoč

    Correct Answer
    umount
    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.

    Rate this question:

  • 7. 

    Kateri ukaz bi uporabili da bi v ”/home/ubunto/Documents/domace_naloge/1_naloga” našli vse txt datoteke?

    Correct Answer
    find *.txt
    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.

    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 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 03, 2008
    Quiz Created by
    Mateb
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.