Zip only contents of directory using absolute path

خرید بک لینک

A lot of solutions to zipping the contents of a folder, Excluding the folder, look like this:

zip -r contents.zip *

But I need to do this WITHOUT cd'ing into the directory, I want to use an absolute path. But this command includes the parent directory:

zip -r everything.zip /some/path/to/folder/*

So how can I zip the contents ONLY using an absolute path?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: linux zip only contents of directory, نویسنده: استخدام کار بازدید: 559 تاريخ: چهارشنبه 10 شهريور 1395 ساعت: 22:09

صفحه بندی