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.

21
Q

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

22
Q

Use the ____ characters to move up a single directory.

23
Q

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

24
Q

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

25
Use the ______________ command to update to refresh the list of available packages installed on the VM.
sudo apt-get update
26
Use the command _______ to create a shell script file
echo
27
Use the _______ command to view the only command in the script
cat
28
Use the command ________ to allow you to execute the file.
chmod +x myfile.sh
29
Use the command _______ to make a copy of the myfile_renamed.sh file.
cp
30
Use the _______ command to remove the myfile_renamed_and_copied.sh file.
rm
31
Use the grep command with the anchor character ^ to find the word, but only at the
beginning of the line.
32
Use the grep command with the anchor character $ to find a word at the
end of a line.
33
Use the grep command with the anchor character . to
match specific length words with different letters in them.
34
Use the grep command to find lines where only the numbers 8 or 9 are present
grep '[8-9]'
35
Use the grep command to find literal characters. Notice that only the lines containing a comma are returned.
grep '[,]'
36
Use the grep command to find occurrences of zero or more of the pattern preceding it.
grep 'new*'
37
Use the ________ command to display the network configuration.
ip address
38
What command is used to rename a file in a Linux system?
mv
39
The _______ Linux command can be used to move a file to another directory or rename a file.
mv
40
The ______ command is also used to make a copy of a file.
dd
41
Use the command ________ to initiate a shutdown of the OS (and the VM) immediately.
shutdown now
42
Use the command ______ to check set date of the OS.
date
43
shutdown -c
shutdown cancel
44
Use the command ping with the options _______ to ping a computer on your local network four times
ping -c 4
45
Use the _____ command to display the processes that are running in the current terminal.
ps
46
Use the ______ with the ______ option to display all the processes that are running on the computer.
ps -e
47
You can pipe any command output to one screen at a time by adding
| more. | more
48
Use the _____ with the ____ option to display all the processes that are running on the computer with more detail.
ps -ef
49
Use the command ____ to update your password.
passwd