
the description of the course
sorry i couldn t add captions
1. Show hidden files and folders
macOs creates hidden files and folders for a variety of reasons.
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder
2. Copy files from one folder to another
Option dragging and dropping files to copy them from one place to another is so boring .
like Ditto ~/Desktop/codes ~/Desktop/codes2
use '-v' after ditto to see each files’s name as its copied
3. Download files without your browser
If you've got the URL of a file you need to download, but don't want to download it in Safari, Chrome, or Firefox, Terminal can help.
curl -O
to download it
we can try macOS high sierra http://support.apple.com/downloads/DL1946/en_US/macosupd10.13.2.dmg
4. Disable drop shadows on a screenshot
When you use Command-Shift-4 the spacebar to take a screen grab of a window on your Mac a drop shadow is added to the window. If you'd rather not have it, use this command to take a screen grab without drop shadow.
$ defaults write com.apple.screencapture disable-shadow -bool TRUE
killall SystemUIServer
if you want to make it back you will write FALSE
5. Keep your Mac awake
Over-riding the sleep settings in Energy preferences takes just one command.
caffeinate
Type Ctrl-C to end the command or time limit like this
caffeinate -u -t [number of seconds]
6. Make your Mac automatically restart after a crash
When your Mac freezes or crashes, often the only resolution is to hold down the power button and wait for it to restart. Use this command to make it restart automatically when it senses a crash.
sudo systemsetup -setrestartfreeze on
7. Hide non-active apps in your Dock
Dock too crowded, use this to make it show only active apps.
defaults write com.apple.dock static-only -bool TRUE
killall Dock
8. Dull hidden apps in the Dock
You can go even further and make the Dock dim apps that aren't visible on screen.
defaults write com.apple.Dock showhidden -bool TRUE
killall Dock
9. Make holding down a key repeat characters
Here's one we really like. When you hold down a key on your Mac's keyboard, it either displays a pop up of additional characters or does nothing. Here's how to make it repeat the character you tapped, just like it used to do.
defaults write -g ApplePressAndHoldEnabled -bool FALSE
To undo the command, use the same command but replace 'FALSE' with 'TRUE'
10. Play Tetris, Pong, Snake and other games
Emacs, the text editor that comes pre-installed with macOS and that can be run from terminal, has a number of Easter eggs in the form of games.
To display them, type Emacs then hit enter, then Fn and F10then t then g
You'll see the available games listed and can now use the cursor keys to select them.
11.Hide files and folders from view in the Finder
chflags hidden [path of folder you want to hide]
12. Write ASCII art banners
Type: banner -w 200 hi
13. Enable an iOS-like power chime when connected to power
Use this to make your Mac chime like an iPhone when you plug in the charger.
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app
14. Check for macOS updates more often
To change the frequency with which your Mac checks for macOS updates from weekly to daily,
type:
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
15.View any file's contents
If you're ever sent a file that won't open on your Mac, perhaps because you don't have an app capable of opening it, or because it's corrupt, you can view its contents in Terminal. For lots of files, like audio and video, the text you see won't mean much. For others, there may be just enough for you to parse what you need.
Type: cat [the file path]
Tip: instead of manually typing the path to the file, you can drag it on to the Terminal window and drop it after the command
16. Change the default screenshot location
You can change the place where screengrabs are saved
by typing:
defaults write com.apple.screencapture location (type the document you want)
Then hit Enter and then:
killall SystemUIServer
And hit Enter again.
17. Stop apps from saving to iCloud by default
Some macOS apps like TextEdit and iWork apps save to iCloud by default. You can change that by using:
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
To revert to iCloud, use the same command with the flag set to 'true'
18. Watch an ASCII version of Star Wars
This one's just for fun, but what fun! There's an ASCII version of Star Wars running on a Telnet server in The Netherlands.
To watch it, use:
telnet towel.blinkenlights.nl
To stop it, type Ctrl-] and then 'quit'
19. Make the Dock slide more quickly using Terminal on the Mac
If you use Show and Hide Dock, you'll notice that when you drag the mouse pointer onto the bottom of the screen, or whichever edge you keep the Dock, there's a delay before the Dock slides into view. You can eliminate that delay with these commands:
defaults write com.apple.dock autohide-delay -float 0
killall Dock
The '0' represents the delay before the Dock slides into view, so if you want to reduce it, but not eliminate it altogether, replace the '0' with another value, measured in seconds.
To revert to the default, type:
defaults delete com.apple.dock autohide-delay
killall Dock
You can also change the speed at which the Dock slides. Again, it's done by modifying a delay. So, to make it instant, type:
defaults write com.apple.dock autohide-time-modifier -float 0
killall Dock
To double the speed, replace the '0' with '0.5' and to keep it the way it was, use '1.'
20. Get rid of Dashboard
Let's face it, who uses Dashboard anymore? For most of us, the only clue to its continued existence is its appearance in Mission Control. If you'd like it gone completely,
use this command:
defaults write com.apple.dashboard mcx-disabled -boolean false
killall Dock
To bring it back, use the same command, but replace TRUE with FALSE.
1. Show hidden files and folders
macOs creates hidden files and folders for a variety of reasons.
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder
2. Copy files from one folder to another
Option dragging and dropping files to copy them from one place to another is so boring .
like Ditto ~/Desktop/codes ~/Desktop/codes2
use '-v' after ditto to see each files’s name as its copied
3. Download files without your browser
If you've got the URL of a file you need to download, but don't want to download it in Safari, Chrome, or Firefox, Terminal can help.
curl -O
to download it
we can try macOS high sierra http://support.apple.com/downloads/DL1946/en_US/macosupd10.13.2.dmg
4. Disable drop shadows on a screenshot
When you use Command-Shift-4 the spacebar to take a screen grab of a window on your Mac a drop shadow is added to the window. If you'd rather not have it, use this command to take a screen grab without drop shadow.
$ defaults write com.apple.screencapture disable-shadow -bool TRUE
killall SystemUIServer
if you want to make it back you will write FALSE
5. Keep your Mac awake
Over-riding the sleep settings in Energy preferences takes just one command.
caffeinate
Type Ctrl-C to end the command or time limit like this
caffeinate -u -t [number of seconds]
6. Make your Mac automatically restart after a crash
When your Mac freezes or crashes, often the only resolution is to hold down the power button and wait for it to restart. Use this command to make it restart automatically when it senses a crash.
sudo systemsetup -setrestartfreeze on
7. Hide non-active apps in your Dock
Dock too crowded, use this to make it show only active apps.
defaults write com.apple.dock static-only -bool TRUE
killall Dock
8. Dull hidden apps in the Dock
You can go even further and make the Dock dim apps that aren't visible on screen.
defaults write com.apple.Dock showhidden -bool TRUE
killall Dock
9. Make holding down a key repeat characters
Here's one we really like. When you hold down a key on your Mac's keyboard, it either displays a pop up of additional characters or does nothing. Here's how to make it repeat the character you tapped, just like it used to do.
defaults write -g ApplePressAndHoldEnabled -bool FALSE
To undo the command, use the same command but replace 'FALSE' with 'TRUE'
10. Play Tetris, Pong, Snake and other games
Emacs, the text editor that comes pre-installed with macOS and that can be run from terminal, has a number of Easter eggs in the form of games.
To display them, type Emacs then hit enter, then Fn and F10then t then g
You'll see the available games listed and can now use the cursor keys to select them.
11.Hide files and folders from view in the Finder
chflags hidden [path of folder you want to hide]
12. Write ASCII art banners
Type: banner -w 200 hi
13. Enable an iOS-like power chime when connected to power
Use this to make your Mac chime like an iPhone when you plug in the charger.
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app
14. Check for macOS updates more often
To change the frequency with which your Mac checks for macOS updates from weekly to daily,
type:
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
15.View any file's contents
If you're ever sent a file that won't open on your Mac, perhaps because you don't have an app capable of opening it, or because it's corrupt, you can view its contents in Terminal. For lots of files, like audio and video, the text you see won't mean much. For others, there may be just enough for you to parse what you need.
Type: cat [the file path]
Tip: instead of manually typing the path to the file, you can drag it on to the Terminal window and drop it after the command
16. Change the default screenshot location
You can change the place where screengrabs are saved
by typing:
defaults write com.apple.screencapture location (type the document you want)
Then hit Enter and then:
killall SystemUIServer
And hit Enter again.
17. Stop apps from saving to iCloud by default
Some macOS apps like TextEdit and iWork apps save to iCloud by default. You can change that by using:
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
To revert to iCloud, use the same command with the flag set to 'true'
18. Watch an ASCII version of Star Wars
This one's just for fun, but what fun! There's an ASCII version of Star Wars running on a Telnet server in The Netherlands.
To watch it, use:
telnet towel.blinkenlights.nl
To stop it, type Ctrl-] and then 'quit'
19. Make the Dock slide more quickly using Terminal on the Mac
If you use Show and Hide Dock, you'll notice that when you drag the mouse pointer onto the bottom of the screen, or whichever edge you keep the Dock, there's a delay before the Dock slides into view. You can eliminate that delay with these commands:
defaults write com.apple.dock autohide-delay -float 0
killall Dock
The '0' represents the delay before the Dock slides into view, so if you want to reduce it, but not eliminate it altogether, replace the '0' with another value, measured in seconds.
To revert to the default, type:
defaults delete com.apple.dock autohide-delay
killall Dock
You can also change the speed at which the Dock slides. Again, it's done by modifying a delay. So, to make it instant, type:
defaults write com.apple.dock autohide-time-modifier -float 0
killall Dock
To double the speed, replace the '0' with '0.5' and to keep it the way it was, use '1.'
20. Get rid of Dashboard
Let's face it, who uses Dashboard anymore? For most of us, the only clue to its continued existence is its appearance in Mission Control. If you'd like it gone completely,
use this command:
defaults write com.apple.dashboard mcx-disabled -boolean false
killall Dock
To bring it back, use the same command, but replace TRUE with FALSE.
in this lecture we will be able to get windows on mac
any thing on hardware ask me on udemy or yahoo mail we are a family.
you will be able to know about your mac.
ask me . the next lecture i will answer you .
if you havent money you can ask me on mail moh.ismail700@yahoo.com
i have many devices but more of it is from apple like mac , ipad and 3 iphones
all of this is from a real experiment