Can I tar linux directory recursively AND Symbolic Links?

I know that I can tar a linux directory with its subdirectories ?

and  can I tar symbolic links with the same command ?

Thanks
mshamsanAsked:
Who is Participating?
 
farzanjCommented:
No switch.

tar pcvf tarfile.tar dirname
0
 
farzanjCommented:
tar command is recursive.  Yes, you can tar everything together. Just tar the directory and the contents become part of tar
0
 
mshamsanAuthor Commented:
thanks, would you please send me an example of a recursive tar ..

Secondly, so the Symbolic Links will be part of tar with any special switch or consideration, right?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.