UNIX Reminder

In order to zip all content of a folder use -r option

zip -r abc.zip 1/

Extract your files from a zip folder

unzip abc.zip

To extract to a specific directory use -d option

unzip abc.zip -d /tmp

The mv command can also be used to rename a file while leaving it in the same directory.

mv oldfilename newfilename

How to move all files from current directory to upper directory?

mv * .[^.]* ..

Changing ownership of folder after unziping

chown -R www-data domain_folder

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Captcha Reload