M
M
Msim2015-05-19 10:12:23
ubuntu
Msim, 2015-05-19 10:12:23

How to unzip without creating a folder?

when unzipping, a folder is automatically created with the files that I need, how to make sure that the folder is not created, but the files are thrown out as they are.
unzip file.zip

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2015-05-19
@mureevms

It already unpacks as it is - without creating a directory. It just got archived when it was packaged. Those. you need to move the files to the directory above:

Распаковать
unzip file.zip -d ./
Переместить файлы
mv ./file/* .
Переместить скрытые файлы
mv ./file/.[!.]* .
Удалить пустой каталог 
rmdir file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question