Linux Study Tips/Notes

Linux Study Tips/Notes

Solution

I use Cloud 9 Linux workspace and following notes will be useful in linux env.

Zipping and Unzipping Files under Linux

install :

1
$ sudo apt-get install zip unzip

Unzip File

1
$ unzip data.zip

Adding Password: only for direct folder

1
2
3
zip --encrypt secure.zip * 

zip --encrypt secure.zip file

This is more insecure, as the password is entered/shown as plain text:

1
zip --password (password) file.zip files

How To Archive All Files And Sub Folders In A Zip File

1
zip -r *

How To Archive All Files And Sub Folders In A Zip File with password

1
zip -r --encrypt secure.zip *

Use the following command to uncompress a ZIP file:

1
2
3
4
5
6
7
8
$ unzip secure.zip 

Enter password:
***
```


#### How to download a file from a website via terminal?

$ wget “https://github.com/github/git-lfs/releases/download/v1.1.0/git-lfs-linux-amd64-1.1.0.tar.gz"

`

https://www.cyberciti.biz/tips/how-can-i-zipping-and-unzipping-files-under-linux.html

https://www.lifewire.com/practical-examples-of-the-zip-command-2201158

https://www.shellhacks.com/create-password-protected-zip-file-linux/