Kali Training: Quiz 4

Kali Training: Quiz 4

Professional Development

11 Qs

quiz-placeholder

Similar activities

Linux Basics

Linux Basics

Professional Development

16 Qs

Introduction to Linux

Introduction to Linux

Professional Development

15 Qs

Linux

Linux

Professional Development

10 Qs

Kali Linux

Kali Linux

Professional Development

15 Qs

CyberCamp 3 Standard Camp Linux Intro

CyberCamp 3 Standard Camp Linux Intro

KG - Professional Development

10 Qs

Linux-2

Linux-2

Professional Development

15 Qs

Linux Command Line Quiz

Linux Command Line Quiz

Professional Development

14 Qs

XK0-004 - Chapter 3

XK0-004 - Chapter 3

Professional Development

9 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?