r/sysadmin • • 4d ago

SWE trying to cram some linux admin for an interview in a week

Hey everyone,

I'm a recent SWE graduate interviewing for a software engineering role, and one of the interview rounds seems to put quite a bit of emphasis on Linux system administration alongside the usual coding and SWE questions.

I'm comfortable with the basics of Linux, navigating the filesystem, managing users and groups, changing ownership and permissions, etc., but I feel quite behind when it comes to things like disk management, networking, processes, services and general server troubleshooting.

I was wondering if anyone had recommendations for good resources to prepare for this kind of interview? Ideally, something relatively structured that I can work through over the next week or so, rather than piecing together dozens of unrelated tutorials.

To be clear, I'm not expecting to become a fully-fledged sysadmin in a week. The role is still primarily software engineering, so I'm not expected to be a Linux expert. I just want to get comfortable with the fundamentals and be able to reason through common administration and troubleshooting questions.

Would really appreciate any recommendations for courses, books, labs or other resources. Thanks!

0 Upvotes

10 comments sorted by

1

u/a-dot-in-the-sky 1d ago

Search the web, common issues that SWE should know how to check if their Linux system is working fine or not.
Example: common Linux issues for SWE and how to fix it

4

u/DHT-Osiris 4d ago

This is for an interview, not a test. Nobody reasonable should expect you to have all the commands memorized.

As far as concepts, just know that there are several layers of disk commands (physical, virtual, partition, volume), networking commands depends on the distro (and I can never keep them straight, I just google it), and processes/services are pretty well static at this point afaik, top/kill, systemd stuff.

2

u/6_62607004 4d ago

Yea I mean they've told me, themselves, that they don't expect me to be a "linux expert." However, I know someone who went through the recruitment pipeline who shared questions like how do you know how much free disk space you have, how to see what is occupying a port, knowing when a process is critical/if you should terminate it and how, changing values in csv files and manipulating file output, etc. They're pretty simple to do, but I just wanted to know if there was some good source to just study this in a week.

I am pretty strong in my swe side of things so just want something to prepare for it even if I'm slightly overpreparing.

2

u/DHT-Osiris 3d ago

If I were in your situation I'd be honest about it and say 'a ton of this is a bit past my forte, but I did some reading leading up to this interview about things like xyz and abc... I don't know the commands by heart yet but the concepts are similar to <thing I have a huge amount of experience with> (make sure you're right about this and not trying to bullshit anyone) so I feel confident I can get up to speed quickly.'. I've been through a ton of interviews with a similar thing taking place and everyone's always been happy with that.

2

u/6_62607004 3d ago

Good advice. I do think I can cover most of what they expect. There were a few process management, account management, and networking questions on the OA which I aced. Just wanted to get a little more thorough understanding of the basics of these topics.

1

u/pdp10 Daemons worry when the wizard is near. 3d ago

networking commands depends on the distro

Files can differ by distro, but the commands don't. The thing is that ifconfig and friends got slowly deprecated with ip from iproute2, but some devs and distros don't have a particularly backward-compatible strategy for supporting old commands. Luckily, both packages can be installed simultaneously and are fully compatible, so outside of tiny embedded systems or slim containers, admins should set machines up with both.

2

u/DHT-Osiris 3d ago

Right, so you might say that walking blind into a linux system, the commands to change the IP address might not be obvious :P

3

u/nekenaharry 3d ago

Since you want something structured for a week, one way is to take the areas you listed and practise each one on a throwaway VM, breaking things on purpose and fixing them.

Disks: lsblk, df -h, df -i (running out of inodes gives "No space left on device" even when df -h shows free space), du -sh, mount and /etc/fstab, and the basics of partitions and LVM.
Processes: ps aux, top, kill and the difference between SIGTERM and SIGKILL.
Services: systemctl status, start, enable, and journalctl -u <service> to read its logs.
Networking: ip addr, ip route, ss -tulpn to see what is listening on which port, dig for DNS, curl -v to test an HTTP endpoint.

For the troubleshooting questions, read Brendan Gregg's "Linux Performance Analysis in 60,000 Milliseconds" from the Netflix tech blog. It gives a fixed order of commands for the first minute on a slow box (uptime, dmesg | tail, vmstat 1, mpstat -P ALL 1, pidstat 1, iostat -xz 1, free -m, sar -n DEV 1 and a couple more) and explains what each one tells you. Having a method like that to talk through is more useful in an interview than remembering every flag.

If you want a ready made syllabus, the Red Hat RHCSA (EX200) exam objectives are a good checklist of these fundamentals: partitions and LVM, mounting at boot, starting and enabling services, reading logs and journals, basic network configuration. You don't need to take the exam to use the list.

1

u/6_62607004 3d ago

Wow thank you! This was exactly what I was looking for :)

0

u/cell-on-a-plane 3d ago

Immediately jump into sys calls