Need help with a LinuxUNIX question The path for sams home d

Need help with a Linux/UNIX question:

The path for sam’s home directory is /home/sam, and all his scripts have a reference to the directory sam/home/assets. If sam changes his home directory later to /users/sam, what should sam do to avoid his scripts becoming invalid?

Solution

Place the assets folder inside the /user/sam directory.

Because when the home directory is changed from /home/sam to /users/sam , then we need to change the reference of the directory also where the scripts are resides otherwise all the scripts become invalid without specifying the correct reference path to them.

Need help with a Linux/UNIX question: The path for sam’s home directory is /home/sam, and all his scripts have a reference to the directory sam/home/assets. If

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site