Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

New York City College of Technolos What L/shor more oon one way to du thie Your

ID: 3587240 • Letter: N

Question


New York City College of Technolos What L/shor more oon one way to du thie Your boss o very smart arsi knows wow powerd and oflecent She wans baseball txt. Provkle the comrunis tut can accompsh the nwvin? (dert aresevenL one) Question 9 Assune the password fike, /ete/paswwdlooks lice thie syslog:x:101:104::/home/syslog:/bin/false messagebus:x:102:106::/var/run/dbus:/bin/talse Landscape : x:103:109: :/var/lib/landscape: /bin/talse sshd:x:104:65534::/var/run/sshd: /usr/sbin/nologin pollinate:x: 105:l:i/var/cache/pollinate: /bin/false ubuntu:x: 1000:1000:Ubuntu:/home/ubuntu:/bin/bash curt in:x: 1001: 1001:curtin/home/curtin:/bin/besh Provide the command line that woukd give this oupu libuuid:/var/lib/libuuid sysiog:/home/syslog messagebus:/var/run/dbus landscape:/var/lib/1andscape sshd:/var/run/sshd pollinate:/var/cache/pollinate ubuntu:/home/ubuntu curtin: /home/curtin Answer

Explanation / Answer

Answer#7. The 'uptime' command will give you the time elapsed since the last reboot. Additionally, it gives the following information:-

Current time, number of users logged in, load average.

The time elapsed is the second value which is displayed.

So a command that can be used for this is : uptime

  

Answer#8. Use the %s command.

The syntax of the %s command is :- %s/search string/replacement string/

Open the file baseball.txt in vi.

Then press Esc, followed by the colon (:) and then type %s/yankees/mets/ and press ENTER.

So the command is, :%s/yankees/mets/

Answer #9. Use the cut command eith -d and -f parameters for this. The -d parameter is used when we want to extract substrings based on some delimiter.

The -f parameter is used for field numbers to be extracted.

So, the command for this would be, cut -d ':' -f 1,6 /etc/passwd

This will extract the first field and the sixth field from each line of the /etc/passwd file, where the fields are separated by colons (:), giving the required result.

Unfortunately, linux refuses to load onto my system so I can't show you the screenshots of the results of these commands.

Hope this helps!

  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote