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
SettingsSettings
Please wait...
  • 1/7 Questions

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

Please wait...
Linux Lupina - Terminal - Quiz
About This 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.


Quiz Preview

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

    Rate this question:

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

    Rate this question:

  • 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?

    • Ls mkdir domace_naloge

    • Cd Documents ls mkdir domace_naloge

    • Cd documents ls mkdir domace_naloge

    Correct Answer
    A. 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:

  • 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

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

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

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

    Correct Answer
    A. 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:

  • 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?

    • Cp domaca_1.txt domaca_2.txt

    • Cp domaca_1.txt paste domaca_2.txt

    • 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:

  • 7. 

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

    • Rmdir 2_domaca

    • Rm 2_domaca

    • Rm -r 2_domaca

    Correct Answer
    A. 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:

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
Back to Top Back to top
Advertisement