How do I know if 7zip used AES256? [closed] - zip

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I originally was using WinZip15 to create .ZIP files with AES256 which we later package into .EXE files using WinZip's self extracting tool (since we can't be sure the people we are giving the archives to will have a zip utility that can handle AES-256 ZIP archives).
I started using 7Zip's command line utility to package the ZIP files using
7za a -y -tzip -ptestabc123 -mem=AES256 C:\helloworld.zip C:\test\
Is there anyway to tell if it actually used AES256 to encrypt the archive? It clearly has a password, but other than that it seems difficult to determine. When I created AES256 archives using WinZip15 "View in explorer" did not work, which I presume is normal. When I create archives using 7za (with the -mem=AES256 switch), windows explorer CAN open the zip archive which I find strange.

I don't know about 7zip, but you can create a self-extracting EXE that uses AES56, using DotNetZip's command line tools.

Related

How to convert a temp folder( .tmp ) to a binary file ( .bin) in Linux [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
enter image description here
enter image description herei.stack.imgur.com/emphasized text8kFIB.png
I want to convert the folder into a binary file(.bin),I tried to write a shell file, but it not generate the correct binary file,I do not know how to solve it,maybe my solution is wrong.Someone tells me that I can use the command zip,I can not agree....C
From your remark about zip, it seems you are trying to make an archive. One simple way to create an archive of a directory is with tar:
tar -zcf foo.tgz /path/to/foo
Note that this will create a file named foo.tgz rather than *.bin, but .... you don't really want to use the bin suffix for a tarball.

source a file everytime I start unix [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I created a few .sh files and put them under one of the directories under $PATH. Unfortunately every time I start a new session I have to source them if I want to use them. I did a google search and couldn't really find what I am looking for to not having to source these files.
I guess I can place a source all command at ~/.bashrc but there should be a way to get this done in a simple way.
Thanks
Let's say all of your scripts are under the ~/.functions directory. Put this in your $HOME/.bashrc:
for file in ~/.functions/*
do
. $file
done
This will source in all files in the ~/.functions directory whenever you start a new shell.
Sourcing all commands in .bashrc is the simple way.
You may want a sophisticated way of sourcing your start scripts by creating a specific directory, say ~/.start_scripts, where you put all your commands, and write a loop in your .bashrc that sources whatever executable is in this directory. That way, you no longer have to edit .bashrc each time a new command is put in the .start_scripts directory.

Convert xlsx to text CSV via command line only on Linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Simple question:
Is it currently possible to invoke LibreOffice from a command line to open a *.xlsx and convert/save it as a *.csv?
Alternatively, if this is not possible what is the current best method for doing this via command line (needs to be invokable via script)?
Thanks,
Here is the command:
localc --headless --convert-to csv:"Text - txt - csv (StarCalc)" *.xlsx
The above will save all converted files in current directory(directory from where you'll run the command). All converted files will have their filename extensions changed to csv.
Alternative, method is the use of unoconv which i've not used.

Create a basic .bashrc file [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I don't have .bashrc file, I want to create one but how? And what does a basic .bashrc file contains? I am on Linux Mint 12
I want to have a .bashrc file, because i have created a folder for virtualenv and I want to load virtualenvwrapper
Why do you want one if you don't know what to put in there? You only need a .bashrc (or .profile or .bash_profile) if you actually have something you want to execute in every shell (or login shell).
But you can basically put any bash commands in those files.
A .bashrc file contains whatever default settings you want to use when you are using bash. If you don't have any particular preferences then leave it blank for now.
Typical contents of a .bashrc file includes aliases of commands you find yourself using a lot.

Restore trash item to original location - Linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm wondering if it is possible to restore a file that is in the trash (~/.Trash) to its original location.
I understand there is a restore command but I don't understand its arguments or how to correctly use it.
Is this a fairly simple thing to do?
Cheers
If your desktop environment followed the XDG Trash Can Specification when trashing the file, then restore-trash from trash-cli would do the trick.
What desktop do you use?
.Trash is just a (hidden) directory. All you need to do is move it out:
mv ~/.Trash/foo ~/
or using the file browser of your desktop environment, open the trash and drag it out.
As far as I know, in the trash folder (~/.local/share/Trash/), there is a folder with the files (files/) and a folder with the file information (info/). Each file has an associated .trashinfo file in which the original path and time of deletion are stored. You can use that to restore the file to its original location.

Resources