We should note these methods are clunky, a bit confusing for many and dealing with Terminal is always a bit nerve-wracking. usr folder is owned by root user, so only root can write there, that means create files or folder. To compress folder, Mac Terminal will work, too: Open Terminal Enter tar command and press Enter Enter the command tar -czf LotsOfFiles.tgz LotsOfFiles replacing LotsOfFiles with your folder name and press Enter.
Here's how to open Terminal on a Mac, with a few commands you can use. That means the owner of that folder testuser can read-write-execute stuff there (first rwx), and group testuser can only read and execute stuff there - that's the r-x part, and final r-x part means read execute for any other groups or users. Terminal is a versatile command line system that comes with every Mac computer. If a folder has the following permissions, drwxr-xr-x 15 testuser testuser 4096 Nov 22 12:34 testuser/ When you install some package with apt-get or dpkg there should be preinstall and postinstall scripts that come along with the package, and run automatically to set up whatever program you're getting.įolder ( in linux terminology - directory ) creation, just like file creation, depends on the permissions. That's pretty much it - apt-get will take care of everything. Installation of that is somewhat simpler sudo apt-get install openjdk-7-jre openjdk-7-jdk icedtea-7-plugin Create the folder from a command line terminal using: sudo mkdir /usr/java You need sudo to make changes to /usr because /usr is owned by the root user. There's also open-source version of Java, Open JDK. We already have a question about that: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?.All of the necessary commands are there, and I strongly suggest you read their manual pages with man COMMAND in terminal. You can enter the open command here to open any application, or to open a file with the application of your. I'm going to address two parts of your question: java installation and folder creation. Apple's Terminal provides you with a UNIX command line inside the OS X environment.