Hi Wengi,
nice to have someone to get forward with wlhdd ...
the [ is a alias for test and option checks if the file exists and is executable ... if ok it will execute the following command ... I thing there's a mistake inside ... I think the dot will be a mistake ... following command will only be executed if test condition is true (ok)
Code:
[ -x /usr/local/etc/profile ] && /usr/local/etc/profile
THX
Martin
P.S.: I am very happy to get the wlhdd alive and forward ...
Originally Posted by
wengi
Hi,
ich hab jetzt noch ein Kapitel angehängt, in dem ich das profile anpassen will.
Das funktioniert aber noch nicht.
Um es zu verstehen muss ich folgende Frage klären:
Was machen die beiden folgenden Zeilen in der /etc/profile?
[ -x /usr/local/etc/profile ] && . /usr/local/etc/profile
[ -x /opt/etc/profile ] && . /opt/etc/profile
Ich dachte, es übernimmt evtl. vorhandene Einträge aus /usr/local/etc/profile und /opt/etc/profile.
Funktioniert bei mir aber nicht.
Kann mir jemand weiterhelfen?
Danke
wengi