Hands-on questions. Enter your commands and/or scripts, along with output in thetext box below.
Question 1
Please provide a single “date” command to the following questions:
Question 2
Please provide a single “date” command to the following questions:
Question 3
Please provide a single “grep” command that displays all thelines that contain “www.” in file /etc/services.
# Updated from http://www.iana.org/assignments/port-numbers and other
http80/tcpwww# WorldWideWeb HTTP# Updated from http://www.iana.org/assignments/port-numbers and other# sources like http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/serv… .
Question 4(10 points)
Please provide a single “find” command that displays all the html files that have been updated in last 25 days under your home directory. The command should display at least your “index.html” document.
Question 5(10 points)
Please provide a single “grep” command that displays the first two lines that contain “http” at the beginning of the lines in file /etc/services.
The correct output of the command looks like:It is incorrect if the command displays the following lines or anything other than the correct output shown above:# Updated from http://www.iana.org/assignments/port-numbers and other# sources like http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/serv… .In the following space, please type the command starting with grep to generate the required output:http 80/tcp www # WorldWideWeb HTTPhttps 443/tcp # http protocol over TLS/SSL
Question 6(10 points)
Please provide a single “ls” command that displays the last two linesofthe files under directory /etc in the order of their filename extensions.
-rw-r–r– 1 root root 24546 2019-10-18 mime.typesdrwxr-xr-x 2 root root 4096 2021-12-14 cron.weekly