/etc/profile.d/ does not work in Ubuntu as in Fedora, please help set perm. alias
by lleb from LinuxQuestions.org on (#520BX)
https://www.linuxquestions.org/quest...-a-4175442604/
I have been following this post since it was created and marked as solved a few years back. Works fantastic for setting permanent alias's across all users.
I just attempted to do this same process in a brand new Ubuntu install with zero luck:
Code:xxx@xxxlap:~$ d
d: command not found
xxx@xxxlap:~$ ls -laF /etc/profile.d/
total 48
drwxr-xr-x 2 root root 4096 Apr 10 16:36 ./
drwxr-xr-x 136 root root 12288 Apr 10 15:20 ../
-rw-r--r-- 1 root root 96 Sep 27 2019 01-locale-fix.sh
-rw-r--r-- 1 root root 825 Oct 30 08:17 apps-bin-path.sh
-rw-r--r-- 1 root root 664 Apr 1 2018 bash_completion.sh
-rw-r--r-- 1 root root 1003 Dec 29 2015 cedilla-portuguese.sh
-rw-r--r-- 1 root root 652 Apr 3 2019 input-method-config.sh
-rw-r--r-- 1 root root 1941 Jul 16 2018 vte-2.91.sh
-rw-r--r-- 1 root root 954 May 2 2018 xdg_dirs_desktop_session.sh
-rwxr-xr-x 1 root root 85 Apr 10 16:36 z_local_aliases.sh*
xxx@xxxlap:~$ cat /etc/profile.d/z_local_aliases.sh
alias d='/bin/ls -laF --color=auto'
alias dird='/bin/ls -laFp --color=auto | grep /'closed my terminals and reopened, no luck. rebooted laptop, still no luck.
What do I need to do to get those aliases set permanently.
Thank you,


I have been following this post since it was created and marked as solved a few years back. Works fantastic for setting permanent alias's across all users.
I just attempted to do this same process in a brand new Ubuntu install with zero luck:
Code:xxx@xxxlap:~$ d
d: command not found
xxx@xxxlap:~$ ls -laF /etc/profile.d/
total 48
drwxr-xr-x 2 root root 4096 Apr 10 16:36 ./
drwxr-xr-x 136 root root 12288 Apr 10 15:20 ../
-rw-r--r-- 1 root root 96 Sep 27 2019 01-locale-fix.sh
-rw-r--r-- 1 root root 825 Oct 30 08:17 apps-bin-path.sh
-rw-r--r-- 1 root root 664 Apr 1 2018 bash_completion.sh
-rw-r--r-- 1 root root 1003 Dec 29 2015 cedilla-portuguese.sh
-rw-r--r-- 1 root root 652 Apr 3 2019 input-method-config.sh
-rw-r--r-- 1 root root 1941 Jul 16 2018 vte-2.91.sh
-rw-r--r-- 1 root root 954 May 2 2018 xdg_dirs_desktop_session.sh
-rwxr-xr-x 1 root root 85 Apr 10 16:36 z_local_aliases.sh*
xxx@xxxlap:~$ cat /etc/profile.d/z_local_aliases.sh
alias d='/bin/ls -laF --color=auto'
alias dird='/bin/ls -laFp --color=auto | grep /'closed my terminals and reopened, no luck. rebooted laptop, still no luck.
What do I need to do to get those aliases set permanently.
Thank you,