1 00:00:06,559 --> 00:00:07,839 Let's have a look at the solution. 2 00:00:08,359 --> 00:00:14,775 So sudo systemctl status SSHD works also without sudo by the way, is showing 3 00:00:14,775 --> 00:00:21,190 us what? Well, it's showing that the SSHD is active and it is running. 4 00:00:21,710 --> 00:00:26,170 And here is its pid and it's not using so many so much memory. 5 00:00:26,750 --> 00:00:30,429 And the next part ensure that SSHD service will be automatically started. 6 00:00:30,429 --> 00:00:34,109 We don't have to do that because it is already enabled. 7 00:00:34,770 --> 00:00:40,953 But if that wouldn't be the case, then you could use sudo systemctl enable SSHD Next 8 00:00:40,953 --> 00:00:47,136 we need to find out what is used as the default target. Well, that would be 9 00:00:47,136 --> 00:00:53,320 systemctl getdefault and there we can see that we have multi user target as the default. 10 00:00:54,100 --> 00:00:58,913 Aha, multi user target as a default. That means 11 00:00:58,913 --> 00:01:03,726 that I forgot to set my default target. Let's 12 00:01:03,726 --> 00:01:08,540 use sudo systemctl setdefaultgraphical target to set it back. 13 00:01:09,540 --> 00:01:15,540 Now we can safely ignore the note that you see at the end. That's only showing us that we have started with something else. 14 00:01:16,519 --> 00:01:19,980 Last part of this lab is to show a list of all active unit vals. 15 00:01:20,480 --> 00:01:24,299 That would be systemctl list units. 16 00:01:24,980 --> 00:01:30,265 There is list units and list unit vals if you want to see what is currently running. 17 00:01:30,265 --> 00:01:35,549 List units is the better solution because that is showing everything that is loaded and active. 18 00:01:36,209 --> 00:01:41,250 And listunit files is showing more information. 19 00:01:41,769 --> 00:01:45,920 It also includes units that are not currently active. 20 00:01:46,579 --> 00:01:50,700 But if you want to see what is running, list units is the better solution.