Password protecting zipped directories in bash [closed] - zip

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
When I use the -P option to zip files like this:
zip -P password filename.zip filename
It properly asks me for the password when I attempt to unzip it but when I attempt to do the same for difectories like this:
zip -r -P password archivename.zip directoryname
It for some reason doesn't ask for a password when I try to unzip it. Can anyone tell me why this is and how I can fix it?

Related

How to download an entire directory and locate using wget? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
i can download entire folder with following command:
wget -r --no-parent http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/
But how can i locate them for example into this folder: home/web/example
Try use key -P.
Please, note you may need to use command sudo.
wget -r --no-parent http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/ -P /home/web/example

How to change file name while downloading from wget? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I try to download file so wget -P /var/www/html/wp-content/uploads/movies/2019/ https://example.com/video.mp4
After download, the name of this file will be video.mp4 and can I change the name directly on download? to set it for example love.mp4?
Try to use -O or --output-document=FILE
Example:
wget -P /var/www/html/wp-content/uploads/movies/2019/ -O love.mp4 https://example.com/video.mp4

How do I copy a file to my server using scp [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I want to copy a file to my server. But, the only port open for ssh is 2232. I am doing the follwing at present, what am I doing wrong.
scp -P 2232 -l file.1 root#xxx.xxx.xxx.xxx:/~
scp [file_directory][file_name] #[server_ip]:[directory where you want to put the file] .For example:
scp example.txt #192.168.3.1:/home/ . Then do as the guide what system gave. I hope this can help you.

scp with a vertical line in directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Suppose I want to scp from cluster to local;
scp id#nodename:"~/Main/56|75/test.pdf" .
Here, the | is screwing up the scp transfer. If I move test.pdf into /Main then it'll function.
How do I call scp in a way that works with a | in the directory?
Escape!
scp id#nodename:"~/Main/56\|75/test.pdf" .

How can I store my own path in cygwin? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
It's always a bit tedious to go from $HOME to some directory to run something, so is there a way I can save a directory to like $MYPATH and do cd $MYPATH from anywhere?
This is what you want http://cygwin.com/cygwin-ug-net/setup-env.html
so everytime you start a session you can
export MYPATH="path where you want to go to"
alternatively you can save the above line in the ~/.bashrc this way when you start a new session, the variable is set automatically

Resources