Question
The next couple questions deal with the file last_log. Take a look at it if you like, it is just the output of a command
The next couple questions deal with the file last_log. Take a look at it if you like, it is just the output of a command called last. It is in that same directory as before, and you can use it there or copy it if you like.
25. Using this method we can sort these, get the unique names, then sort again but based on the IP address. (You can just use -k 2 even though this will sort the IP addresses by alphabetic order.) This will allow us to determine which individuals are logging in from the same address. There are five pairs of people that log in from the same IP address. (Hey, theres somebody in the list, besides me, that we know from class!) Name any pair of users that log in from the same IP address. So I need the command to for the above.
Command:
Answer:
rfulkers ptsl 1696 mosh 15047] Mon Oct 24 10:01 still logged in rfulkers pts/1700 mosh [16649] Mon Oct 24 10:01 still logged in coltwest pts/1714 fpld-47.crisslib Mon Oct 24 09:59 still logged in adorcy pts/1538 10.12.0.37 Mon Oct 24 09:55 still logged in bross pts/1727 98.23.163.11 via Mon Oct 24 09:46 still logged in bross pts/1727 mosh [18333] Mon Oct 24 09:46 09:46 (00:00) bross ptsl1727 98.23.163.11 via Mon Oct 24 09:46 09:46 (00:00) asusman pts/1706 phi-dev.ist.unom Mon Oct 24 09:46 still logged bross pts/1727 mosh [18333] Mon Oct 24 09:41 09:46 (00:04) twjorgen pts/1758 74.51.217.170 Mon Oct 24 09:39 09:46 (00:06) sshupe pts/1 753 137.48.185.89 Mon Oct 24 09:39 10:01 (00:22) eshafer ptst1752 p 174-74-1-73.om Mon Oct 24 09:38 still logged in youn pts/1585 137.48.185.125 Mon Oct 24 09:38 still logged in mrbacon pts/1750 10.12.5.87 Mon Oct 24 09:34 still logged in wmahoney pts/1749 p68-99-3-88 om. Mon Oct 24 09:32 still logged sriramsr ptsl1746 137.48.186.209 Mon Oct 24 09:31 still logged in osaha ptst1735 10.8.58.76 Mon Oct 24 09:30 still logged in inekl ptsl1723 10.8.9.161 Mon Oct 24 09:30 09:49 (00:19) rfulkers pts/1700 68.13.53.101 via Mon Oct 24 09:26 10:01 (00:35) rfulkers pts/1 700 mosh [16649] Mon Oct 24 09:26 09:26 (00:00) rfulkers pts/1700 68.13.53.101 via Mon Oct 24 09:26 09:26 (00:00) rfulkers ptsl 1696 68.13.53.101 via Mon Oct24 09:26 10:01 (00:35) rfulkers pts/1 696 mosh [15047] Mon Oct 24 09:26 09:26 (00:00) rfulkers ptsl 1696 68.13.53.101 via Mon Oct24 09:26 09:26 (00:00) rfulkers pts/1 696 mosh [15047] Mon Oct 24 09:26 09:26 (00:00) rfulkers pts/1 700 mosh [16649] Mon Oct 24 09:26 09:26 (00:00) bhan drew pts/1709 10.8.17.40 Mon Oct 24 09:24 still logged in rfulkers pts/1696 68.13.53.101 via Mon Oct 24 09:21 09:26 (00:04) rfulkers ptsl 1700 68.13.53.101 via Mon Oct24 09:21 09:26 (00:04) rfulkers pts/1 696 mosh [15047] Mon Oct 24 09:21 09:21 (00:00) rfulkers pts/1 700 mosh [16649] Mon Oct 24 09:21 09:21 (00:00) rfulkers ptsl 1700 68.13.53.101 via Mon Oct24 09:21 09:21 (00:00) rfulkers ptsl 1696 68.13.53.101 via Mon Oct 24 09:21 09:21 (00:00)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started