answersLogoWhite

0


Best Answer

Easy - CD to the directory with the files and folders, and do:

zip -r foo *

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: With the zip command in Unix how can you add a group of files and folders to an archive in such a way that when uncompressed you only end up with the files and folders and not the enclosing archive?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the consequences of compressing files and folders?

When using lossless compression (such as putting the file in a Zip or RAR archive), there are no permanent consequences; the file can be restored to its full uncompressed form at any time. The only factor is the additional time and space it takes to compress and decompress the file.


When a user gives a command to modify the contents of a file is it actually a command to access folders within the file?

There are no folders within a file. Files are within a folder.


At the command prompt you can use what command to control how user accounts can access files and folders?

cacls


How do you find archive utility on a mac?

Archive Utility is somewhat burned into your computer if you absolutely need the location of Archive Utility it can be found /System/CoreServices/ folder, but please take extra caution when dealing with System folders. You can irreversible damage to your installation


Can A file contain files directories and folders?

A file cannot (in general) contain other files or folders in the traditional sense. A zip or other archive file can contain other files or folders and a document file can have a file in it as an embedded object, but these are special applications.


Linux command to list a folders contents?

The LS command: ls folder Type man ls for more details.


What do CD command do in unix?

The 'CD' command is not standard for Unix. The 'cd' command, however, will change directories (folders). It is a means of navigating the Unix file system.


How do you copy outlook folders minus emails?

Use the File Archive... feature to archive from the old, existing, PST file, to a new, empty, PST file that you've created.Set the archive "Archive Items Older Than" setting to be a very old date, like before your oldest email in the original archive -- but not too old, or it can take a long time to process.Click OK to start the archiving. This will copy the current folder structure of the old archive to the new one, but no emails will copy.Briany@voicenet.com


Write the Linux command to display the information about LS command?

Using man ls will open the manual page for the ls command. The ls command lists the files and folders in the current directory.


Which command should be run from the C data to remove the system property from all files and folders that are currently on the C drive?

The attrib.exe -s/s command


How do you copy files or folders?

To Copy files, Rightclick it and click Copy, or press CTRL + V. Same for folders. For Command Prompt... A=copy C:\System32 (OR) copy C:\System32. To open Command Prompt, open your Start menu, type cmd. This should open it.


What command do you use to see all files in command prompt?

If I understand the question correctly, the command is "dir" (without the quotes), short for directory. That will show you all the files and sub-folders within the current directory. You can navigate around to other directories/folders as well... for general help with command prompt commands, when you're at the prompt type "help". (Again, no quotes.) It'll give you a list of commands. If you need more detailed help with any particular command, like the dir command, type help dir.