Shadowing Practice: Top 10 Linux Job Interview Questions - Learn English Speaking with Video

Ders oluşturuluyor...
1
Hey, what's going on guys?
2
In this video we're going to cover the top 10 Linux interview questions.
3
These are the most common Linux system administration job interview questions that you'll find out in the wild.
4
So these are what you'll get in your first phone screen generally.
5
There will obviously be maybe more specific interviews after this, and it also depends on the position you're actually interviewing for.
6
Any given position might involve lots of other tech too.
7
While this covers the majority of the types of things that are asked during junior Linux sysadmin interviews.
8
You may also want to know the similar types of questions for databases, TCP /IP and networking, programming, or a specific programming language.
9
There may also be infrastructure or architecture questions if you're doing a more mid -level or senior type position.
10
Likewise, you may be asked about specific applications or services.
11
You can get mad, you can get sad, you can have lots of opinions about this, whatever.
12
This is just the reality for tech phone screens.
13
Your interviewer only has a couple of minutes to figure out if you're worth more time investment.
14
really regardless of what kind of job interview you're preparing for, if it involves Linux in some capacity, You should be really comfortable with these basic things.
15
If you haven't yet, make sure to check out my basic Linux system administration playlist, because it covers a lot of the theory and a lot of how Linux works.
16
behind what we're going to talk about. As a last...
17
piece of caution or word of advice Do not just memorize these things, because even if you make it through the first phone screen, they're going to be pretty pissed if it turns out
18
that you actually don't understand what you're doing after you make it through by memorizing answers to these basic questions.
19
Use these questions as a jumping off point for further exploration.
20
Okay.
21
So let's jump right in.
22
The first question you should immediately know the answer to is, How would you check the kernel version of the currently running system that you're on.
23
The answer is Uname.
24
Uname prints out system information.
25
specifically the -a, the a flag, uname -a will give you everything it's got.
26
So you've got your host name,
27
OS, kernel release kernel version, architecture, et cetera.
28
Thank you.
29
There's a couple small...
30
permutations of this that you can use.
31
So kernel version, and kernel release.
32
if you're looking for just those specific chunks of information, but that's Unim.
33
If someone asks you, how do you check the kernel version of the system or even What operating system is it running?
34
This is a fairly quick way to find out.
35
Another favorite question is, How would you go about checking what your current IP address is?
36
and this may come in a couple permutations like oh what's the current address on
37
the eth0 device or what's your current IPv6 address or what have you.
38
There's a couple ways to do this.
39
I'll show you the old and the new way.
40
The old ways, if config interface configuration, I've got a bunch of little devices here, don't worry about that.
41
This is the loopback device and this is our Ethernet device.
42
You can see our IPv4 address is here along with broadcast and subnet mask.
43
RIPv6, Address information can be found here.
44
Okay.
45
Now, if someone asks you for a specific interface, In general, you should be using the newer IP
46
tools command so IP adder we want the address show that gives you everything All of your devices.
47
or you can give another argument the device name.
48
So IP adder show. with zero.
49
As you can see, that gives you all the info for Ethernet Zero.
50
including IPv4, insider notation, How would you check for free disk space.
51
Other versions of this question are, you know, How would you check how much disk space is left, or what percentage of disk space you're using?
52
Don't get tripped up by different ways of asking these.
53
DF is your friend.
54
DF.
55
All file systems, human readable formatting.
56
So df space dash ah.
57
- Shh.
58
This will give you a readout of all of your file systems, including virtual file systems.
59
You can see our hard drive partitions are here. and R.
60
root, Partition is mounted on SDA one.
61
And you can see it's 5 .8 gigs of capacity.
62
We've used 5 gigs of that.
63
So we've got about half a gig left.
64
We're using 91%.
65
So DF, remember that, disk free.
66
Managing services is a completely normal part of being a Linux sysadmin or working with Linux in general.
67
So don't be surprised if someone asks you, "How would you see if a service is running?" Or, "How would you start or stop a service?" Or,
68
"How would you reload a service?" On any newer system, most major Linux distributions have switched to system D.
69
However, On an older system, you would have said...
70
either service I'll use Udev just as the service name.
71
This might be Nginx or MySQL or what have you.
72
Service name goes here.
73
Service Udev.
74
status checks status of a service uh start stop etc. are also arguments you can put at the end.
75
Service, service name.
76
and then what you want to do. to it.
77
on a newer system d system so something that is not running um Sys5Init or Upstart or another init system, you would use systemctl.
78
So this is the "new" version, quote unquote, if that's all you remember.
79
Systemctl status service.
80
Now, I'm on an old system.
81
I'm not using systemd.
82
This is a command not found.
83
But the important thing is it's system CTL, Status service name You'll notice that this is actually reversed the order
84
of the service or unit name argument, Systemd calls this a unit.
85
instead of a service.
86
But that's pretty much all you need to know.
87
It takes the same start /stop enable, disable, reload, etc. You can see I've got some some files and directories here.
88
How would you check the total size of everything inside of a given directory.
89
Thank you.
90
I'm going to say D -U -S -H.
91
We'll check the code directory.
92
Disk use, D -U.
93
Thank you.
94
This is going to go and tally that up.
95
So you can see I've got 80 megs worth of stuff in my code directory.
96
Nice and easy.
97
little bit more networking focused how would you check for open ports, let's say.
98
This question can be asked in a couple different ways.
99
check listening network sockets, open ports, you could say, services that are listening on TCP or UDP ports or sockets.
100
So this question can come in a couple different versions, but if you hear, you know, network socket, listening, ports, TCP and UDP services,
101
start thinking netstat because Netstat is what shows you that stuff.
102
So by default, it gives you-- Basically, uselessly big output, it's meant to be filtered down with other Linux and Unix tools,
103
So you'll probably want to run something like netstat.
104
I like tu, so for TCP and UDP, LPN Listening Tulpan.
105
Just remember that, and it's a pretty good shorthand for most times when you need this.
106
Obviously, main netstat will get you the manual page for Netstat.
107
More on that in a second.
108
So this shows you the address and port that different things are listening on.
109
I'm actually going to run this command as root because you'll see in a second, You can see on the right this...
110
PID or program name, is actually blank for everything, because we're not root.
111
Only root can see that.
112
So if we say sudo then, So executed as root.
113
you can see we now have all that extra information.
114
Okay.
115
So from left to right.
116
What type of service is it?
117
Well, it's TCP, IPv4.
118
TCP /IPv6, UDP, UDP, I...
119
IPv6, excuse me, getting a little excited here.
120
the local address that it's listing on.
121
The 0000 means all public addresses.
122
Port 80.
123
foreign addresses.
124
Is it listening?
125
And the process ID and name of the process-- so it actually looks up the process name from the PID--
126
that owns this socket So you can see,
127
Nginx, our web server, is listening on Port 80 and anyone on our local network that can get to our machine.
128
can check out what we're hosting on our web server, 127, 001 is our local machine here.
129
So this is actually not accessible from outside of our machine.
130
Again, for more on that, you just learn a little bit more about networking, but this netstat -tulpn is extremely useful.
131
And again, remember to run it as root if you can, because it just gives you that extra Okay, who is actually listening on that port is very interesting to know.
132
How would you check CPU usage of a given process?
133
You can run ps, AUX, then grep for your process name.
134
This is a pipe.
135
If you're not familiar with pipes, I highly suggest that you watch some of my basic shell videos.
136
It's like a building block of Linux, and you should not be a sysadmin if that doesn't make sense So ps -aux, pipe it into grep and look for Nginx.
137
You can see these are all the processes right now.
138
in the process table that have Nginx in the name, and you can get some process information this way.
139
The user it's running as, you can see the master process is running as root, the worker processes running as www data.
140
et cetera, et cetera.
141
You need to know how to parse this.
142
Read up on P .S.
143
Another way of doing this is top.
144
You'll find top just about everywhere.
145
So this is-- updated by default I think every seconds or two seconds.
146
This gives you a lot more information, top.
147
You can see by default it's ordered descending order by CPU.
148
time percentage of cpu that it's using So this will be updated with your most CPU intensive processes, although you can change what it's sorted by.
149
Likewise, it also gives you a bunch of other stats about memory, swap and use, load averages, et cetera.
150
Nice alternative to this, although you won't find it installed by default, is HTOP.
151
That's interesting to you.
152
I like this, you can search it easily with like the slash key, search for some process.
153
gives you a nice little graphical representation of the cores it sees, memory swap, et cetera.
154
Nice and intuitive.
155
So, That's how you sort of check what's going on with processes, what users own a process, what a process is running as,
156
and things like CPU, memory usage, etc. How would you mount...
157
some kind of new volume, let's say a new hard drive partition, that you just plugged in, let's say a USB stick.
158
How would you mount that in your system?
159
Well, Linux will generally have a directory called mount, En route.
160
And that is sort of the canonical place to mount things.
161
So to mount a new volume, you would say, Mount is the command.
162
And then the Absolute path to the volume.
163
So if it's a device like let's see it's a hard drive partition SDA 2.
164
It's the second partition on the SDA hard drive and You could say amount.
165
address and then the mount point.
166
If I just wanted to mount it on Mount MNT, This would be the command.
167
Thank you.
168
Likewise, checking for existing mounts
169
is just the mount command without any So you can see here's what's mounted and the mount options it's got.
170
And you also get a file system type.
171
So X4, got a butterfs here, on and on last little trick on mount just because it's fast um
172
If you automatically need to mount a volume at boot, what file would you look in?
173
The answer is, "etcfs -tad".
174
If we take a quick look at that file, you can see this is our disk partitions that we want.
175
So this is SDA1 and it's UUID, unique device ID.
176
and our swap partition, sda5, with its unique ID, so that we can find that.
177
at boot time.
178
when i generally make changes to config files um
179
that are not part of a larger system like just on my desktop so not as part of a
180
business configuration management setup
181
I like to just leave my name in there just
182
so I can quickly grep for files that have this string in them, so that I can see everything that I've changed on a system.
183
that isn't in some kind of configuration management or automatic provisioning script.
184
Finally, the very, very most important thing Mad pages you will get asked how you look stuff up.
185
How do you find answers to questions?
186
Your first answer to this should be, if it's a command, I look at the man pages, the manual pages.
187
So man, command, gets you there.
188
So for example, man ps, you want to know all the options you could pass to ps.
189
It's kind of a big command.
190
Here are all the interesting things you can do with it.
191
Generally, man pages have sort of Name of the commands, basic synopsis, the way you call it,
192
So the syntax we're calling it a description of the commands, a mini, very dense tutorial usually, Thank you.
193
And some examples, BSDs are a lot better than most Linux distros for this, but you hope to find an example section at the bottom.
194
In this case, you've got an example section here, although this is often missing depending on what the command is.
195
and then a listing of all the options in detail.
196
You can see this is a very old and Well -documented command.
197
Other than man, Google server fault Stack Overflow.
198
These are good answers in an interview.
199
You should know multiple ways of finding answers to questions If you haven't read it yet, I will link it here.
200
But the How to Ask Smart Questions or How to Ask Questions the Smart Way article
201
is required reading for anybody in tech.
202
So I hope that's been useful.
203
If you want more of these, either more for Linux, for higher level Linux questions, or for other sort of skill silos like databases,
204
networking, programming, infrastructure, cloud stuff, applications and services, I'd be happy to make more of these videos.
205
So if they're helpful.
206
Leave a comment with stuff you'd like to see covered
207
subscribe for more if you haven't already check out the basic sysadmin skills
208
playlist because there's just a whole lot of background stuff you need to know. in there.
209
So good luck on your job hunt and in your interviews, and maybe we'll run across each other in real life sometime.
210
Thanks for watching, guys.

Bu Ders Hakkında

Gölgeleme Tekniği Nedir?

Gölgeleme, başlangıçta profesyonel tercüman eğitimi için geliştirilen ve çok dilli Dr. Alexander Arguelles tarafından popüler hale getirilen, bilim destekli bir dil öğrenme tekniğidir. Yöntem basit ama güçlüdür: ana dili İngilizce olan bir sesi dinler ve hemen yüksek sesle tekrar edersiniz — konuşmacıyı 1-2 saniye gecikmeyle takip eden bir gölge gibi. Pasif dinleme veya dilbilgisi alıştırmalarının aksine, gölgeleme beyninizi ve ağız kaslarınızı gerçek konuşma kalıplarını eşzamanlı olarak işlemeye ve yeniden üretmeye zorlar. Araştırmalar, telaffuz doğruluğu, tonlama, ritim, bağlı konuşma, dinleme anlama ve konuşma akıcılığını önemli ölçüde geliştirdiğini göstermektedir — bu da onu IELTS Konuşma hazırlığı ve gerçek dünya İngilizce iletişimi için en etkili yöntemlerden biri yapar.

Shadowing tekniği: adım adım eksiksiz rehberi okuyun →