CTS 4348
Write the bash code to evaluate the following math operation ( 3 + 4 ) ^ 2
$ echo "$((3+4)**)
To send the process to the background on the comand below, please fill in the blank. $ php -S 0.0.0.0:8080 _____ [1] 3456
&
When manual installing tomcat. One must manually run the grouped and user add commands. When running the user add command what OPTION / FLAG is NOT used
-c
List 4 usermod options that update an existing account.
-c, comment -d, --home -e , expiredate -s, shell -U, unlock -u, uid -f, inactive
______ is the curl option used to debug the sent / received headers
-v
What is the name of the folder in which one will find the configuration files for the following web server: HTTPD, NGINX, LIGHTTPD
/etc
When adding a new account. The username is added into /etc/passwd and they are assigned a userid treated than ________
1000
How may fields are in your Assignment 2 CSV ?
12
How many quizzes will we have during Fall 2022
14
What ip do we ping once the VM is running to test network connectivity with the outside world ?
8.8.8.8
What delimiter is used in the /etc/passwd file ?
:
Fall 2022 uses 5 VMs for Assignment 1. Which of the following distributions is not part of Assignment 1
Debian (Should be Rocky, SL, Fedora, CentOS, and Ubuntu)
Can you COPY / PASTE on VNC ? // This is in context of this class and the VMs we are using
False
Can you run multiple web server on the same IPv4 address using the same port.
False
Can you use DNF to install peel-release on SL7
False
When pulling users from the /etc/passwd, then filtering the output using cut -d, -f1. Will both commands below yield the same result /etc/passwd | cut -d, -f1 | sort -u /etc/passwd | cut -d, -f1 | uniq | sort
False
When running the userdel command, will the home folder of the userid be removed ? // Asking for a friend using rocky 8
False
Math the following services to their corresponding port
HTTP 80 SSH 22 DNS 53 HTTPS 443
The /etc/os-release is a file that is made up of KEY / VALUE pairs. List 4 Keys found in this file.
ID, Version_ID, Home_URL, and NAME: Name, Version, ID, ID_LIKE, VERSION_ID, PLATFORM
To apply changes of a recently updated configuration file on your web server you must.
Restart your web server
In the lesson from Sept 13, 2022 . When we demo the newemployee script. Describe what is the purpose of $1 variable
The $1 is the first argument the script is meant to execute.
Can you use the cut command and print multiple columns using in a single run.
True
The default file extension used in Tomcat is .jsp
True
When installing httpd. A new user is added to /etc/passwd with the username apache
True
When creating a Hello World script using awk. The first line of the script contains the sha-bang. Is the following correct ? #!/usr/bin/awk -fBEGIN { print "Hello World!" }
True /bin/ -> /usr/bin/ are the same
Does the lowest assignment grade gets dropped
false
What is the name of the file created by default when using ssh-keygen ?
id_rsa.pub
What is the name of the directive used to change the ( landing page / index page / root page ) in the NGINX configuration from index.html to demo09272022.html
index
What is the command used to check the IP of the system
ip addr
In your own words, what content is stored in the authorized_keys file
it contains all the public SSH keys of the users allowed to access your information
In your own words what is the purpose of the grep command
it is a command to search for text in a file that match what you are looking for example: cat /etc/passwd | grep bob searches for any instance of bob in passwd: grep is a command-line utility for searching plain-text data sets for lines that match a regular expression.
List TWO of the dependencies required to install Tomcat.
java-11-openjdk java-11-openjdk-devel
In Linux what is the command used to compile a java file ? _________ hello.java
javac
What is an alternate command to ss -tlnp ? // hint this was demo on the Oct 6 lecture.
netstat
What command do you run to disable SELinux
setenforce 0
For the command shown below. List two arguments one can use to fill in the blank. systemctl ___________ sshd
systemctl status sshd systemctl start sshd
What is the opposite command of cat in UNIX ?
tac
What is the UNIX command structure ?
the command, a list of options, and a list of arguments: command [options] [arguments]
What of the following methods is used by node to write out text.
console.log
What is the name of the command one can use to load a website via de CLI
curl