|
发表于 2005-8-18 22:15:49
|
显示全部楼层
Post by newred
这就是我不理解的,难道是中文版书翻译错了?
网上没有中文版,这是英文版内容,书名是"UNIX Unleashed, System Administrator's Edition"
---------------------------------
If the home directory of a username is altered, the previous initial directory files must be moved to the new directory. To move a user directory, issue the command:
cd /old_dir; tar -cf - . | (cd /new_dir; tar -xpf -)
Verify the result and then remove old_dir. If the user base is not entirely knowledgeable, look for old_dir in existing files and change them to new_dir for the user. The system can locate any entries by:
find /new_dir -exec grep -l old_dir {} \;
For any entries that find locates, change the entry to new_dir or, when appropriate, change the absolute path name to the more generic $HOME variable. Pay particular attention to the start up (dot) files contained within a user's home directory because errors in that class of file will surely get the attention of a user quickly.
-----------------------------------
网页地址:http://docs.rinet.ru:8080/UNIXs/ch17.htm
ok, 我的理解,英文对于find的命令的作用只有一句,就是"The system can locate any entries by". 其他的事都得用户自己做。"For any entries that find locates",这一句可以证明,find除了locate entries,再没做别的。 |
|