Any suggestions?
Hello @jyothy18
if you want to keep the slashes in front of the file names, the option you need is
-P or --absolute-names option
$ tar -cfP /home/bob/python.tar /home/bob/reptile/snake/python
Or
$ tar -cf /home/bob/python.tar --absolute-names /home/bob/reptile/snake/python
Hope this helps
3 Likes
Thanks! This helped