[PLUG] How to set path of shell script in .profile in Ubuntu 23.x system?

Gaurav Pant gauravggs at gmail.com
Sat Apr 6 09:42:01 IST 2024


See inline

On Fri, Apr 5, 2024 at 12:12 PM Amey Abhyankar via plug-mail <
plug-mail at plug.org.in> wrote:

> Hello All,
>
> I haven't done this in ages hence thought of asking here thank you.
>
> I have a simple shell script which will set mtu after I login via GUI.
> [Ubuntu 23.x system]
>
> I want to set it under .profile but I'm not sure exactly how to put the
> path of my script in the .profile
> I do not want to copy-paste the script in the .profile of my user.
>

The .profile is run when you start an instance of bash.  It would not run
when GUI starts.  If you want the setting globally put it under the main
profile file.

>
> Any thoughts on how to do it?
>

You can check out this link. Hopefully it provides and ans
https://askubuntu.com/questions/1391030/ubuntu-run-bash-script-on-startup-with-visible-terminal


>
> I tried searching for solutions at stackoverflow but all solutions I found
> so far are suggesting to put the content of the script under .profile
>
> Thanks & Regards,
> Amey.
> _______________________________________________
> plug-mail mailing list
> plug-mail at plug.org.in
> http://list.plug.org.in/listinfo/plug-mail
>


-- 
Dexter
-------------------------------------------
http://OpenSourceCook.in
If you can cook, you can code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.plug.org.in/pipermail/plug-mail/attachments/20240406/0d72147c/attachment.htm>


More information about the plug-mail mailing list