Basic Linux Commands In Kali Quiz

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 MagicCookie .
M
MagicCookie .
Community Contributor
Quizzes Created: 1 | Total Attempts: 687
Questions: 6 | Attempts: 687

SettingsSettingsSettings
Basic Linux Commands In Kali Quiz - Quiz


Questions and Answers
  • 1. 

    How do you move deeper into the file tree in a fresh Kali Linux installation?

    • A.

      Ls

    • B.

      Mv

    • C.

      Cp

    • D.

      Av

    • E.

      Td

    • F.

      Os

    • G.

      Nmap

    • H.

      Move

    • I.

      Cd

    • J.

      Next

    • K.

      [folder name]

    • L.

      Add

    Correct Answer
    I. Cd
    Explanation
    To move deeper into the file tree in a fresh Kali Linux installation, you would use the "cd" command. "cd" stands for change directory and it allows you to navigate through different folders in the file system. By typing "cd" followed by the name of the folder you want to enter, you can move deeper into the file tree.

    Rate this question:

  • 2. 

    What is the structure for renaming a file

    • A.

      Cp file-name new-name

    • B.

      Cp new-name file-name

    • C.

      Mv file-name new-name

    • D.

      Mv new-name file-name

    • E.

      Ls file-name new-name

    • F.

      Ls new-name file-name

    • G.

      Op file-name new -name

    • H.

      Op new-name file-name

    Correct Answer
    C. Mv file-name new-name
    Explanation
    The correct answer is "mv file-name new-name". The "mv" command in Unix/Linux is used to move or rename files and directories. In this case, "file-name" is the name of the file that needs to be renamed, and "new-name" is the desired new name for the file. Therefore, using the "mv" command with the appropriate file names allows for the renaming of a file.

    Rate this question:

  • 3. 

    How do you copy a file to the root directory?

    • A.

      Mv file-name /

    • B.

      Mv file-name /root

    • C.

      Op file-name /

    • D.

      Op file-name /root

    • E.

      Cp file-name /

    • F.

      Cp file-name /root

    • G.

      Ls file-name /

    • H.

      Ls file-name /root

    • I.

      Copy file-name /

    • J.

      Copy file-name /root

    Correct Answer
    E. Cp file-name /
    Explanation
    To copy a file to the root directory, the correct command is "cp file-name /". The "cp" command is used to copy files, and the "/root" directory specifies the destination. By using "/" as the destination, the file will be copied directly to the root directory.

    Rate this question:

  • 4. 

    The Root Home Directory and the ' / ' Directory are the same place:

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The root home directory and the '/' directory are not the same place. The root home directory is the default directory for the root user, while the '/' directory is the top-level directory in the file system hierarchy. The root home directory is typically located within the '/' directory, but they are distinct entities.

    Rate this question:

  • 5. 

    How do you go to your home directory of the that account you're currently logged into?

    • A.

      Cd !

    • B.

      Cd !home

    • C.

      Cd ~

    • D.

      Cd ~home

    • E.

      Ls !

    • F.

      Ls !home

    • G.

      Ls ~

    • H.

      Ls ~home

    • I.

      Mv !

    • J.

      Mv !home

    • K.

      Mv ~

    • L.

      Mv ~home

    Correct Answer
    C. Cd ~
    Explanation
    To go to your home directory of the account you're currently logged into, you can use the command "cd ~". The "~" symbol represents the home directory, so when you use "cd ~", it takes you directly to your home directory.

    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
  • Apr 20, 2020
    Quiz Created by
    MagicCookie .
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.