Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
开发者_StackOverflow Improve this questionI want to tar the directory /opt/mydir into a directory /opt/myprefix/mydir
how can I do that with tar command? (solaris)
thanks
Create a symlink so that you can access /opt/mydir as /opt/myprefix/mydir
cd /opt
ln -s . myprefix
Then tar it:
tar -cvf mytar.tar /opt/myprefix/mydir
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论