E
E
eyeballers2020-07-02 21:08:27
linux
eyeballers, 2020-07-02 21:08:27

How to archive only hidden files in a folder?

Didn't find an answer to this question.
How all files or including hidden ones is understandable.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2020-07-02
@eyeballers

In the current folder simply
tar czf name.tar .
If you need only hidden files in folders and folders below, then the design
find -type f -name .\* | tar czf test.tgz -T -

S
Saboteur, 2020-07-03
@saboteur_kiev

In the current folder
tar cvfz file.tar ./.[^.]*
in the desired folder
tar cvfz file.tar /home/user/.[^.]*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question