Firstly I must say that I don't have an AIX 7 server. The CDE is controlled by the dtlogin daemon. The command to run is:-/usr/dt/bin/dtlogin -daemonIt is usual to have a script in /etc/rc.d/rc2.d...
This is correct but starting it directly is only a one-time solution. The way to set the default environment permanently is the command dtconfig. For the documentation see here...
You do not have to. When a certain runlevel is entered (in your case runlevel 2) all the S-scripts (S for Start) are executed. If another runlevel is entered all the K-scripts (K for Kill) for the...