MAC OS X Terminal command Open feature

Source: Internet
Author: User

1. Display the repository in the system directory
Method One:
Show
In terminal, enter the following command:
Chflags Nohidden ~/library/

Hide
In terminal, enter the following command:
Chflags Hidden ~/library/

Method Two:
Open Finder, select the Go to Option key in the menu to display the library item (repeat the action every time you open it).

2.Finder Show hidden files
Show hidden files
In terminal, enter the following command:
Defaults write Com.apple.finder Appleshowallfiles-bool true
Killall Finder

Recovering hidden files
In terminal, enter the following command:
Defaults write Com.apple.finder Appleshowallfiles-bool false
Killall Finder

3.Xcode Uninstall
In terminal, enter the following command:
Sudo/library/uninstall-devtools–mode=all

For the actual installed directory, Xcode is installed in the/developer directory by default and can be executed
Sudo/developer/library/uninstall-devtools–mode=all

4. Show full path in Finder title bar
In terminal, enter the following command:
Defaults write Com.apple.finder _fxshowposixpathintitle-bool YES
Killall Finder

5. Remove the shadow from the window screenshot
When you take a screenshot of the window (command-shift-4, space), the resulting picture is automatically added with a circle of shadows around it.
If you don't like the effect of this shade, you can turn it off.
In terminal, enter the following command:
Defaults write Com.apple.screencapture Disable-shadow-bool true
Killall Systemuiserver

6. Force Safari to open a Web page in a new tab
Safari is the default support for tag browsing. However, when we click on a link on the page or click on a link in another application,
Safari is often opened with a new window that causes too many safari windows on the page and is poorly managed. By following this little trick,
We can let safari open the page by default in a new tab.
In terminal, enter the following command:
Defaults write Com.apple.Safari Targetedclickscreatetabs-bool true

7. Change the location of the screenshot image
Mac OS provides a handy screenshot shortcut that allows us to take screenshots of the entire screen, part of the screen, or the application window very quickly. However, this screenshot feature has one disadvantage, that is, you can only save screenshots to the desktop. If we take a lot of pictures, it will make the desktop seem very messy. Is there any way to modify the default location of screenshots? Yes. The method is very simple, as long as you enter the following command in "terminal".
Defaults Write Com.apple.screencapture location
Killall Systemuiserver

When you enter a command, replace the "storage location" with a real folder. For example, if you want to store the screenshots folder in your user directory, enter
Defaults write Com.apple.screencapture location ~/screenshots

MAC OS X Terminal command Open feature

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.