Module #1 Flashcards

1
Q

With virtualization, virtual computers can operate and run within physical computers. These computers are called

A

Virtual Machines (VM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

VMs are often called

A

guests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

computers are often called

A

hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Anyone with a modern computer and operating system can run virtual machines.

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

All coding labs in this course are performed on a

A

Linux-based VM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

has gained widespread use in servers, Internet of Things (IoT) devices, networking
equipment, smartphones, and many other devices that may not seem as even being
computers.

A

Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

is an easy to learn programming language.

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Few factors that make Python a great tool for learning basic coding are:

A
  • It is easy to learn
  • It is easy to use for writing new software
  • It is easy to obtain, install and deploy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

provides a solid foundation and allows to learn other programming languages
(for example, C++, Java, or C) much easier and faster.

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

is free, open and multiplatform.

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

it is possible to write code faster when
using Python.

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

the time needed to learn Python is shorter than for many other
languages.

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

commands are

A

case-sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Use the ____ command to display a listing of the current directory

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Use the _____ command with the _____ argument to display the contents of the labs folder

A

ls labs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Use the _____ command with the ______ option to display a “long display” of the contents of the current directory.

A

ls -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Use the _____ command with the ______ option to display the contents of the current directory in reverse alphabetical order.

A

ls -r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Use the _____ command with the argument ls to see all of the possibilities in the manual

A

man ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

You can also use _____ argument after most commands to see a shorter summary of all the available command options.

A

–help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Use the _____ command to display the current working directory.

A

pwd

21
Q

Use the ____ command to change the directory to /home/devasc/Documents.

A

cd

22
Q

Use the ____ characters to move up a single directory.

A

..

23
Q

Use the _____ command to issue a single command as the root user.

A

sudo

24
Q

type the first few letters of the directory name and press _____ for the system to automatically enter the rest of the name

A

Tab

25
Q

Use the ______________ command to update to refresh the list of available packages installed on the VM.

A

sudo apt-get update

26
Q

Use the command _______ to create a shell script file

A

echo

27
Q

Use the _______ command to view the only command in the script

A

cat

28
Q

Use the command ________ to allow you to execute the file.

A

chmod +x myfile.sh

29
Q

Use the command _______ to make a copy of the myfile_renamed.sh file.

A

cp

30
Q

Use the _______ command to remove the myfile_renamed_and_copied.sh file.

A

rm

31
Q

Use the grep command with the anchor character ^ to find the word, but only at the

A

beginning of the line.

32
Q

Use the grep command with the anchor character $ to find a word at the

A

end of a line.

33
Q

Use the grep command with the anchor character . to

A

match specific length words with different letters in them.

34
Q

Use the grep command to find lines where only the numbers 8 or 9 are present

A

grep ‘[8-9]’

35
Q

Use the grep command to find literal characters. Notice that only the lines containing a comma are returned.

A

grep ‘[,]’

36
Q

Use the grep command to find occurrences of zero or more of the pattern preceding it.

A

grep ‘new*’

37
Q

Use the ________ command to display the network configuration.

A

ip address

38
Q

What command is used to rename a file in a Linux system?

A

mv

39
Q

The _______ Linux command can be used to move a file to another directory or rename a file.

A

mv

40
Q

The ______ command is also used to make a copy of a file.

A

dd

41
Q

Use the command ________ to initiate a shutdown of the OS (and the VM) immediately.

A

shutdown now

42
Q

Use the command ______ to check set date of the OS.

A

date

43
Q

shutdown -c

A

shutdown cancel

44
Q

Use the command ping with the options _______ to ping a computer on your local network four times

A

ping -c 4

45
Q

Use the _____ command to display the processes that are running in the current terminal.

A

ps

46
Q

Use the ______ with the ______ option to display all the processes that are running on the computer.

A

ps -e

47
Q

You can pipe any command output to one screen at a time by adding

A

| more

more.

48
Q

Use the _____ with the ____ option to display all the processes that are running on the computer with more detail.

A

ps -ef

49
Q

Use the command ____ to update your password.

A

passwd