Skip to main content

View zipped files without expanding

Don’t know how useful this command would be for an end user but yes, if you are good at Terminal, you would love to use this.

So lets start, launch the Terminal. Navigate to the zip file you want to have a glance at, by using the “cd” command and type the path to your file. For example cd ./downloads, this file can be any any where on your Mac. downloads can be replaced by the folder on your Machine.

Here comes the magic bit, copy and past the following into Terminal.

unzip -l "$@" MyFile.zip

Where text.zip is the name of you zip file you want to view. You need to have the at and dollar symbol for the text to be displayed on screen. You should have something similar to the image shown below.

Very handy where you can see the size of the file in bytes, the date is was created and the name and location of the file.

You can send the information found in the screen shot to a text file. You can use this to keep a log of a text file or as a backup to send to someone else. To forward the information to a text file type the following:

unzip -l "$@" MyFile.zip > textfile.txt

You can append the data to the end of a text file by using to arrows “>>”. This will add what ever is found in the zip file to the end of the text file you select, great if you are making an archive of what is in text files.

There is nothing much to do except writing few line and you can check if the file is exactly you are looking for.

Comments

Popular posts from this blog

MAKING A FILE/FOLDER INVISIBLE

How to hide a file/folder using Terminal This is one of the greatest technique that I ever came across, I had to share my Mac in office and was curious about hiding confidential data. This was when I started exploring and finally came up with this solution. These commands are to be typed in Terminal. To make a file or folder invisible in Mac OS X Finder setfile -a V testfile.txt Here is goes, the file or folder is no longer visible via the Finder GUI, though it will be by Terminal. Your files are still there and you can find them via the command line and will show with an ls command. If you want your files and folders to be visible again, use this command: To make a file or folder visible again in Mac OS X Finder setfile -a v testfile.txt Now the file/folder will be visible again to the Finder, cool isn't it? Please Note: setfile is a command line utility included in Apple’s Developer Tools, which is a highly recommended optional install included on any Mac OS X install...

ENTOURAGE TROUBLESHOOTING: CRASHES WHILE LAUNCHING - II

Entourage Crashing due to Fonts There are two fonts that are known to be one of the most popular reasons of Entourage crashing. The first one is Helvetica Fractions which is majorly responsible to cause problems, the second is Times Phonetic. In order to fix this issue, don't just disable these fonts in Font Book, but physically remove them from your system and try to launch Entourage again. Other discussed reasons are database , schedules and duplicate daemons .

An introduction to Mac OS X Server

Mac OS X server is combination of Power and Style. It derives power from its strong UNIX base and the style comes from well known Apple GUI. This combination makes Mac OS X Server one of the robust server available in present time. Mac OS X Server is built on a fully compliant UNIX foundation. This battle-tested core provides the stability, performance, and security that organizations require. And full UNIX conformance ensures compatibility with existing server and application software. Mac OS X Server is the ideal platform for deploying groundbreaking enterprise applications and services. The kernel in Mac OS X Server provides superior thread management and affinity algorithms for efficient handling of multithreaded applications on the latest generation of Intel multicore processors. It also provides precise control of real-time processing requirements, allowing a user-level thread — even an unprivileged one — to precisely specify its requirements for time-sensitive operations...