Kali Training: Quiz 4

Kali Training: Quiz 4

Professional Development

11 Qs

quiz-placeholder

Similar activities

Thin & Light

Thin & Light

Professional Development

7 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Friday Fun

Friday Fun

Professional Development

10 Qs

Gamefication in Learning

Gamefication in Learning

Professional Development

10 Qs

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

SQL Commands - SELECT Statements

SQL Commands - SELECT Statements

Professional Development

10 Qs

Fun and Interesting Facts about Technology

Fun and Interesting Facts about Technology

University - Professional Development

10 Qs

GIT

GIT

Professional Development

15 Qs

Kali Training: Quiz 4

Kali Training: Quiz 4

Assessment

Quiz

Computers

Professional Development

Easy

Created by

John Coder

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?