Hi kazzarian,
If step 8 is not some mistake in what you were given, then my
guess is that they want to accomplish the same thing as two commands run separately ( as root, or via sudo ) :
Code:
echo 'export PATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:$PATH' >>/etc/profile
touch /etc/profile
The first command will append a new line to the end of /etc/profile to include the cross compiler stuff in the PATH environment variable, so the cross compiler can be found when you want to use it.
The
touch command will update the access time of /etc/profile, since in some environments only the modify time will be updated when a appending to a file.
I'm
guessing they are thinking it might be safer to have people change /etc/profile this way, rather than having people use an editor to modify /etc/profile.
HTH.