Is there a fairly simple way to tar
several (specific) files in a directory? For example let's say the following is a directory:
-rw-r--r-- 1 allend bin 98 Jul 20 15:50 scriptlog.log
-rw-r--r-- 1 allend bin 19533 Jul 29 21:47 serveralert.log
-rwxr--r-- 1 allend bin 1625 Jul 29 21:47 orion
-rw-r--r-- 1 allend bin 24064 Jul 29 21:49 orion_files.tar
-rwxr--r-- 1 allend bin 156 Aug 4 21:22 htmltest
-rw-r--r-- 1 allend bin 131 Aug 4 21:23 page.html
What if I only want to tar
the files serveralert.log
and page.html
?
Argument list too long
error then you can usefind
instead. See this answer on SuperUser. – Florian Brucker Feb 10 '21 at 13:12