
Kali Training: Quiz 4
Authored by John Coder
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ____ command is generally used for displaying the contents of a file, but it can also be used to create
small files. For creating bigger files, it’s better to enter the code in a text editor such as
vim, emacs, leaf pad, g edit, or kate and then save it as a file.
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The cat command followed by a filename will display the contents of that file, but to create a file, we follow the cat command with a r_________, denoted with the > symbol, and a name for the file we want to create. Here’s an example:
cat > hackingskills
Hacking is the most valuable skill set of the 21st century!
To exit and return to the prompt, I press CTRL ___
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
To add, or append, more content to a file, you can use the cat command with a d__________ redirect (>>), followed by whatever you want to add to the end of the file.
Here’s an example:
cat >> hacking skills
Everyone should learn hacking
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
If I want to o__________ the file with new information, I can simply use the cat command with a single redirect again, as follows:
cat > hackingskills
Everyone in IT security without hacking skills is in the dark
cat hackingskills
Everyone in IT security without hacking skills is in the dark
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The second command for file creation is ______. This command was originally developed
so a user could simply change file details, such as the date it was
created or modified. However, if the file doesn’t already exist, this command creates
that file by default.
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The command for creating a directory in Linux is ______..
To create a directory named newdirectory, enter the following command:
_____newdirectory
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
To copy files, we use the _____ command. This creates a duplicate of the file in the new location and leaves the old one in place. Here, we’ll create the file oldfile in the root directory with touch and copy it to
/root/newdirectory, renaming it in the process and leaving the original oldfile in place:
touch oldfile
__ oldfile /root/newdirectory/newfile
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?