≡ Menu

exclude certain file names in listing

Exclude Certain Files When Creating A Tarball Using Tar Command

How can I keep out certain files when creating a tarball? For example:

/home/me/file1
/home/me/dir1
/home/me/dir2
/home/me/abc
/home/me/xyz

How do I exclude zyz and abc file while using a tar command?
[click to continue…]

Sysadmin because even developers need heroes!!!