Не точно ответ, но развитие.
Это, должно быть, было ошибкой в потрясающем. С awesome-3.4.10
это работает, как Вы хотели это. Теперь, чтобы иметь приложение, открытое на предопределенном, наклеивают текущий экран, используют что-то вроде этого:
{ rule = { instance = "urxb" },
callback = function(c)
c.screen = mouse.screen
c:tags({tags[c.screen][3]})
end }
Установка zip
и используйте
zip -r foo.zip .
Можно использовать флаги -0
(ни один) к -9
(лучше всего) изменить compressionrate
Исключая файлы может быть сделан через -x
флаг. Из страницы справочника:
-x files
--exclude files
Explicitly exclude the specified files, as in:
zip -r foo foo -x \*.o
which will include the contents of foo in foo.zip while excluding all the files that end in .o. The backslash avoids the shell filename substitution, so that the name matching
is performed by zip at all directory levels.
Also possible:
zip -r foo foo -x@exclude.lst
which will include the contents of foo in foo.zip while excluding all the files that match the patterns in the file exclude.lst.
The long option forms of the above are
zip -r foo foo --exclude \*.o
and
zip -r foo foo --exclude @exclude.lst
Multiple patterns can be specified, as in:
zip -r foo foo -x \*.o \*.c
If there is no space between -x and the pattern, just one value is assumed (no list):
zip -r foo foo -x\*.o
See -i for more on include and exclude.
Я думаю, многие люди, которые приходят через Google к этому вопросу, имеют в виду «архивировать и сжимать», когда пишут «zip». Альтернативой zip-формату является tar :
tar -czf copy.tar.gz whatever/
, где сжатый архивный файл будет copy.tar.gz, а его содержимым будет все, что есть в папке.
-c, --create
create a new archive
-z, --gzip, --gunzip --ungzip
-f, --file ARCHIVE
use archive file or device ARCHIVE