Hacker News new | past | comments | ask | show | jobs | submit login

Not going to really argue here, but I have to use mlocate every single time I want to find a unit file, because there's no telling where it would be.

Perhaps blame lays on the distro packager, but still, it ends up to a user being strange.




For what it's worth:

systemctl | grep ssh

systemctl cat sshd

I find it useful to find the unit name, and 'cat' displays the ___location.


You can also do 'systemctl edit <service>' which will open up an editor in which you can see the existing configuration and edit the overrides in /etc/


thanks, I had no idea that existed.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: