APPLE

Safety bite: down the rabbit hole of neat, less well -known terminal commands (Article 2)

9to5MAC is provided exclusively by the safety bite . The creation of Apple devices is ready for work, and Enterprise is everything we do. Our unique integrated approach to management and security combines modern Apple safety solutions for complete automatic strengthening & amp; Correspondence, EDR Next Generation, AI-Powered Zero Trust and exclusive privilege management with the most powerful and modern Apple MDM in the market. The result is a fully automated Apple Unified Platform, which is currently entrusted with more than 45,000 organizations to make millions of Apple devices ready to work without effort and at affordable cost. Request your extended trial trial today and understand why Mosyle is all you need to work with Apple.

Recently I got into a rabbit hole from less known terminal functions. In past months, I covered everything, from the inclusion of Touch ID for the authentication of SUDO to the cleaning of the Wi-Fi public formations stored on your Mac. But this week I want to share even more neat functions that you probably did not know what the terminal could do. This can be useful if you are daily Mac user or enterprise fleet. In this security bite, let me even more raise your command line. Efficiency and let you show you some really useful tricks. To be experienced in the terminal helps you think as a system and thinking, as a system, is the first step in its provision.

Protecting the password of the compressed folder

Using the terminal to compress the folder secure by the password .DMG.

A .dmg (disk image) The file is similar to an empirical disk in the software. It is used in MacOS for packaging and distributing applications, files and often malicious programs. However, it can also be used to store and send confidential or confidential information. Last week, I learned from a friend (Hello, Charlie) that you can squeeze the folder to the .dmg file with encryption AES-128 from the terminal. This is the same standard used by governments today. Anyone who receives a .dmg file needed a password to decrypt and open it. Here. In a catalog containing a folder that you would like to squeeze. I ’ M Using the desktop in the example below for simplicity.

Now the type:

hdium Create -Cencryption -stdypas file] .dmg

You can also make this from the graphical interface of the disk utility. If you have problems with the fact that you have problems with this in the terminal, try:

  1. Open Discure utility Application
  2. Go to fil- & gt; New image
  3. click image from the folder
  4. Select the folder in which you ’ D Like to compress and protect
  5. Name the .dmg file, select its location and the nursing standard (AES 128 or 256)

Note. Please do not use the compressed ZIP -R -er -er -to -pass password folders. I saw examples of this online. This uses the standard Zipcrypto encryption standard, which can be decrypted in a matter of minutes using any of the various free tools. This is not safe.

We all know how to update to the latest version of MacOS manually in the settings, but we can use the terminal to perform this faster and with a small added advantage.

Type:

softwareupdate -l

This lists all available updates for your Mac (excludes App Store applications). You can download and install a specific file using the following command:

softwareupdate -i “ [title]

you can also download and install all updates in one SWOP, using:

softwareupdate -I -I

inter and interm. Sudo Softwareupdate -Schedule on

The final interval in the first team is the number of days between checks. For example, if you change up to 3, it will check the availability of updates every 3 days. The second team is mostly telling our car: “Hey, in fact, follow the graphics that I gave you. ”

If you are not worried about the new version of the MacOS, broken by any tools, we can also install some newly available updates for automatic installation, type:

/libaray/preferences/com.apple.softwareupdate autoLoAd -BOOL TRUED

This next command will allow you to install MacOS updates that require restarting.

sufalault write /libarary/preferences/com.apple.commerce autoupdatertreequired il vrue

Class = “WP-Block-HeDing” ID = “H-Clear-DNS-Cache”> Clear DNS Cache

When you load the website, MacOS sets it IP address in location. This backstage database allows Safari and other browsers to resolve domain names faster, missing the need for a full search for DNS every visit. MacOS from time to time automatically from time to time rinses the DNS cache, but you can manually force up to update when eliminating problems with the connection or after changing DNS settings.

к вручную промыть кэш DNS, введите следующие команды:

  1. sudo illall-hillall -hup-hup mdnsrespon-l-list “>

Leave a Reply