5 Useful terminal strategies for Mac users

The default com.apple.finder app show all files -bull true

Then, for these changes to take effect, restart the driver:

Kill Finder

You can also combine these two commands with a few ampersands:

Default com.apple.finder Apple Show All Files – Enter Bull True & Kill Finder

(For simplicity’s sake, I’ll do this for all other commands in this list so that a service needs to be restarted))

To hide your own folder or file, you can run:

chflags Hidden De / Desktop / MySecrates && Kill Finder

পথে Replace ~ / desktop / myscrets in your own secret folder or file path. (বোঝ refers to your home folder, also available in / home /[yourusername].) To make hidden files and folders invisible again, run the original command with a blank space.

Customize the dock

Doc is an important part of the MacOS interface: you store your most used shortcuts there, use them to hop between windows, and hide the minimal applications you need right now. And you’ll find some useful tweets under Max’s Settings> Dock menu, but you can further customize it with a few terminal commands.

For example, add a blank spacer to help organize your applications into groups? Invoice:

The default is com.apple. Dock static-apps-array-add ‘”tile-type” = “spacer-tile”;}’ && kill dock

Or, if you probably want to keep the dock to a minimum, you can hide apps that aren’t currently running:

Enter the default com.apple.Dock static-only-quiet truth && kilal dock

If you use Command + H to “hide” regular applications, you can even blur their icons in the dock, so you know they’re hidden:

Default com.apple.Dock Shoid – Bull True && Kilal Dock

Lastly, if you want to show and hide the dock automatically, you’ve probably noticed that the animation has a one second delay – that is, when you hover the mouse over your screen, the dock slides will take about a second. To remove this delay, run:

Enter default com.apple.Dock AutoHide-Delay -Flot 0 && Killal Dock

Alternatively, you can change that 0 to a higher number to increase the delay. To return to the default auto-hidden settings, run:

The default is com.apple. Dock autohyde-delay and delete & kilal dock

Twink the way you take screenshots on your Mac

Taking a screenshot of a Mac is very simple: just press Command + Shift + 4 to grab a window or part of the screen. Unfortunately, you have little control over how screenshots are saved, at least from the onscreen menu. You can, however, customize things from the terminal.

If you want to change where screenshots are stored, for example, you can run:

Enter default com.apple.screencapture Location Pictures / Pictures && Kilal System User Server

Replace ~ / images with the folder you want to use. If you want to restore the default behavior, replace that path with the path / desktop instead.

Next, you can move the drop shadows around the screenshots:

Enter the default com.apple.screencapture Disable-Shadow-Bull True & Kial SystemWizard Server

You can revert this command to FALSE instead of the truth.

Also, you can change the file types of those screenshots – which by default to PNG with anything else:

Enter the default com.apple.sccreencapture type JPG && Kilal system UIS

If you prefer, you can replace PDF to JPG with a few file types.

Finally, you can change the default name of the screenshot files to:

Enter the default com.apple.screencapture name “micipatcher” && kilal system user server

You can replace MyCapture With whatever file name you want. With these few commands, you’ll be able to take screenshots of exactly how your Mac is without additional programs.

The clock Star wars (Yes really)

Long ago, far away in a terminal, some enterprising people completely rebuilt A new hope It is still available on terminals at ASCII and can run on current versions of MacOS:

NC Towel.Blinkonlights.NL23

See the story play out in text form. Enjoy

More great wired stories

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *