بسم الله الرحمن الرحيم
السلام عليكم ورحمه الله وبركاته
شخص لم اعرفة يقول عنده امتحان ومحتاج يذاكر بعض الاشياء وفى اسئلة مش موجودة اجابتها لدية وهى
Use ln to create links and investigate the behaviour of the links in different situations:
1. Change to the new directory and use ln -s to create a symbolic link to the file. Does the original file show any indication of the symbolic link?
Do the same for the directory and see if there is any indication. Try to make a symbolic link to a file that does not exist, or make a symbolic link and then remove the file. What happens?
2. Type ln -s blah blah. What happens when you try to read the file blah you just created? Explain.
3. Now make a hard link to a file (i.e. ln without -s). What happens now?
4. What happens when you change the permissions of the original file with chmod, or update its modification time with touch?
5. Apart from the names, how can you tell which was the original file, and which is the link you just created?
6. What happens if you remove the original?
7. What happens if you try to make a hard link to a directory? To a non-existent file?
ياريت اذا ممكن احد يجاوب عليها يكون فعل خير فيه وكمان نكون تعلمنا خصائص الامر ده
بالتوفيق ان شاء الله
السلام عليكم ورحمه الله وبركاته
شخص لم اعرفة يقول عنده امتحان ومحتاج يذاكر بعض الاشياء وفى اسئلة مش موجودة اجابتها لدية وهى
Use ln to create links and investigate the behaviour of the links in different situations:
1. Change to the new directory and use ln -s to create a symbolic link to the file. Does the original file show any indication of the symbolic link?
Do the same for the directory and see if there is any indication. Try to make a symbolic link to a file that does not exist, or make a symbolic link and then remove the file. What happens?
2. Type ln -s blah blah. What happens when you try to read the file blah you just created? Explain.
3. Now make a hard link to a file (i.e. ln without -s). What happens now?
4. What happens when you change the permissions of the original file with chmod, or update its modification time with touch?
5. Apart from the names, how can you tell which was the original file, and which is the link you just created?
6. What happens if you remove the original?
7. What happens if you try to make a hard link to a directory? To a non-existent file?
ياريت اذا ممكن احد يجاوب عليها يكون فعل خير فيه وكمان نكون تعلمنا خصائص الامر ده
بالتوفيق ان شاء الله
تعليق