It's ok that I can export in this way, but how can I make it permanent? I want LD_PRELOAD to still be changed after a reboot. I'm using Ubuntu and Fedora
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Ordinarily, you'd put your "export" line into whatever shell startup file is appropriate:
.zprofile, whatever, in your
If you want to make it permanent for every user, the various shells usually have system-wide config files in
/etc/profile exists on this linux box, but do read the man page to figure out which user-specific and which system-wide file to put it in.