Module #1 Flashcards
With virtualization, virtual computers can operate and run within physical computers. These computers are called
Virtual Machines (VM)
VMs are often called
guests
computers are often called
hosts
Anyone with a modern computer and operating system can run virtual machines.
true
All coding labs in this course are performed on a
Linux-based VM
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.
Linux
is an easy to learn programming language.
Python
Few factors that make Python a great tool for learning basic coding are:
- It is easy to learn
- It is easy to use for writing new software
- It is easy to obtain, install and deploy
provides a solid foundation and allows to learn other programming languages
(for example, C++, Java, or C) much easier and faster.
Python
is free, open and multiplatform.
Python
it is possible to write code faster when
using Python.
true
the time needed to learn Python is shorter than for many other
languages.
true
commands are
case-sensitive
Use the ____ command to display a listing of the current directory
ls
Use the _____ command with the _____ argument to display the contents of the labs folder
ls labs
Use the _____ command with the ______ option to display a “long display” of the contents of the current directory.
ls -l
Use the _____ command with the ______ option to display the contents of the current directory in reverse alphabetical order.
ls -r
Use the _____ command with the argument ls to see all of the possibilities in the manual
man ls
You can also use _____ argument after most commands to see a shorter summary of all the available command options.
–help
Use the _____ command to display the current working directory.
pwd
Use the ____ command to change the directory to /home/devasc/Documents.
cd
Use the ____ characters to move up a single directory.
..
Use the _____ command to issue a single command as the root user.
sudo
type the first few letters of the directory name and press _____ for the system to automatically enter the rest of the name
Tab
Use the ______________ command to update to refresh the list of available packages installed on the VM.
sudo apt-get update
Use the command _______ to create a shell script file
echo
Use the _______ command to view the only command in the script
cat
Use the command ________ to allow you to execute the file.
chmod +x myfile.sh
Use the command _______ to make a copy of the myfile_renamed.sh file.
cp
Use the _______ command to remove the myfile_renamed_and_copied.sh file.
rm
Use the grep command with the anchor character ^ to find the word, but only at the
beginning of the line.
Use the grep command with the anchor character $ to find a word at the
end of a line.
Use the grep command with the anchor character . to
match specific length words with different letters in them.
Use the grep command to find lines where only the numbers 8 or 9 are present
grep ‘[8-9]’
Use the grep command to find literal characters. Notice that only the lines containing a comma are returned.
grep ‘[,]’
Use the grep command to find occurrences of zero or more of the pattern preceding it.
grep ‘new*’
Use the ________ command to display the network configuration.
ip address
What command is used to rename a file in a Linux system?
mv
The _______ Linux command can be used to move a file to another directory or rename a file.
mv
The ______ command is also used to make a copy of a file.
dd
Use the command ________ to initiate a shutdown of the OS (and the VM) immediately.
shutdown now
Use the command ______ to check set date of the OS.
date
shutdown -c
shutdown cancel
Use the command ping with the options _______ to ping a computer on your local network four times
ping -c 4
Use the _____ command to display the processes that are running in the current terminal.
ps
Use the ______ with the ______ option to display all the processes that are running on the computer.
ps -e
You can pipe any command output to one screen at a time by adding
| more
more.
Use the _____ with the ____ option to display all the processes that are running on the computer with more detail.
ps -ef
Use the command ____ to update your password.
passwd