opkar.blogg.se

Mac compress folder termianl
Mac compress folder termianl









mac compress folder termianl

Once that’s done, we can start creating our zip files. It doesn’t need to be anything meaningful (or long), just so we can see that these documents are indeed different from the ones already created inside the Stuff and files folders.

mac compress folder termianl

Our next-to-last step before creating a zip file is to create a couple “extra” documents on the Desktop with the same names as files we just created, so type touch doc2.txt doc3.txt to create them.įinally, open each of the two “extra” text files and add some text to them. to change the Desktop back to the working directory. One more command, to ‘cd’ into the newly-created Files folder (cd Files), because we’ll want some other documents inside that.įinally, type touch doc4.txt doc5.txt doc6.txt in order to create three new documents. Now, type touch doc1.txt doc2.txt doc3.txt & mkdir Files into your Terminal, which will create a folder called Files, as well as three documents – doc1.txt, doc2.txt and doc3.txt – inside the Stuff folder. Now that we have a Stuff folder, we’ll use the ‘cd’ command to make the Stuff folder our current working directory. In the Terminal, we can do so with a single command – mkdir /home/username/Desktop/Stuff (of course, you’ll replace “username” with your own username, as shown below, and if you already have a Stuff folder on your Desktop, you’ll want to change the name). For the sake of this article, we’ll create a new folder on our Desktop, called Stuff. Once installed, we can use zip to create archives (or modify existing ones), and unzip to expand them to their originals.

mac compress folder termianl

Note: if those two programs are already installed, you’ll receive a message stating this to be the case, as shown above.











Mac compress folder termianl