hit tracker
prime news list

all information about tech and other

5 Useful Terminal Tricks for Mac Users

5 Useful Terminal Tricks for Mac Users

by default com.apple.finder type AppleShowAllFiles -bool TRUE

Then, for these changes to take effect, restart it by running Finder:

killall Finder

You can also combine these two commands with some hoops:

by default com.apple.finder write AppleShowAllFiles -bool TRUE && killall Finder

(For simplicity, I will do this for the rest of the commands on this list that require you to restart a service.)

To hide your folder or file, you can run:

chflags hidden ~ / Dekstop / MySecrets && killall Finder

… Replacing ~ / Dekstop / MySecrets with the path to your secret folder or file. (~ -K indicates your home folder, which can also be found in / home /[yourusername].) To make hidden files and folders invisible again, run the original command using FALSE instead of TRUE.

Customize the Dock

The dock is an important part of the macOS interface: you store the shortcuts you use the most, use them to jump between windows, and hide minimized apps you don’t need right now. And while you can find useful enhancements in the macOS Settings> Dock menu, you can customize them even more with a few terminal commands.

For example, do you want to add a space to help organize your apps in groups? Run:

enter default com.apple.Dock persistent-apps -array-add ‘{“tile-type” = “spacer-tile”;}’ && killall Dock

Or, if you prefer to keep the dock as minimal as possible, you can hide all apps that aren’t currently running:

defaults write only the static com.apple.Dock -bool TRUE && killall Dock

If you use Command + H to “hide” applications in regular applications, you can queue their icons in the dock to make sure they are hidden:

default write com.apple.Dock showhidden -bool TRUE && killall Dock

Finally, if you like to show and hide the Dock automatically, you’ve probably noticed that there’s a one-second delay in that animation, which means that when you hover the mouse at the bottom of the screen, it will take about a second before the Dock enters. To clear this delay, run:

default com.apple.Dock autohide-delay -float 0 && killall Dock

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

default com.apple.Dock autohide-delay && killall Dock delete

Adjust how your Mac takes screenshots

It’s easy to take a screenshot on a Mac: press Command + Shift + 4 to take a window or part of the screen. Unfortunately, you don’t have much control over how screenshots are saved, at least from the on-screen menus. However, you can customize things in the Terminal.

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

by default they write com.apple.screencapture location ~ / Pictures && killall SystemUIServer

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

You can then remove shadows from screenshots with:

default com.apple.screencapture disable-shadow -bool type TRUE && killall SystemUIServer

You can return this command by running it again instead of TRUE using FALSE.

You can also change the file type of these screenshots (that is, PNG by default) to something else with:

the default com.apple.screencapture type JPG && killall SystemUIServer

You can replace it with some type of JPG file, such as PDF, if you wish.

Finally, you can change the default screenshot name with:

by default com.apple.screencapture type “mycapture” && killall SystemUIServer

You can replace it mycapture with the file name you want. With these few commands, you should be able to get exactly how you want your Mac to display the screen without additional programs.

See Star Wars (Yes, really)

Long ago, in a very remote terminal, some entrepreneurial people recreated it in its entirety New hope ASCIIn. It is currently still available on terminals and you can run it on current versions of macOS:

nc towel.blinkenlights.nl 23

To see the story acted out as text. Enjoy.

More great KABEKO stories

Source link


Leave a Reply

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