mac basic

-------------------------------------------------------------
Modify shortcut keys
-------------------------------------------------------------
Set Ctrl+C/V to copy/paste in Mac

From the Windows world to the Mac world, the most uncomfortable thing is that the shortcut key for "copy/paste" in Mac is Command+C/V.
Moreover, the Command key and the C/V key are too close to each other and can only be operated with the thumb and index finger, which is also unaccustomed.
In addition, when the remote desktop is connected to Windows, you can only use Ctrl+C/V to copy/paste,
Switching between the two shortcuts can also be confusing.

Finally found a solution today on the superuser site (Remap Copy and Paste shortcuts
on a Mac in the second answer), set it up like this:

1. 进行System Preference > Keyboard > Keyboard Shortcuts

2. Select Application Shortcuts on the left and add the following shortcut keys:
R copy code
Copy ^C
Undo ^Z
Undo Typing ^Z
Cut ^X
Paste ^ V
Select All ^A
Save ^S

-------------------------------------------------------------
show hidden files
-------------------------------------------------------------
Step 1: Open the Terminal application.
Step 2: Enter the following command:
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
Step 3: Press the "Return" button to confirm.
Now you will see those hidden files and folders in the Finder window.
If you want to hide the original hidden files and folders again, replace the above command with
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder

-------------------------------------------------------------
Environment variable configuration
-------------------------------------------------------------
Modify the file
/etc/profile Global (public) configuration, which is read when logging in, regardless of the user.
/etc/paths (usually adding system-level environment variables to this file) Global (public) configuration, this file will be read when the bash shell executes, no matter what the method is.
~/.bash_profile
~/.bash_login
~/.profile ~/.bashrc

View variable values
#echo $PATH

Modify PATH
export PATH="/opt/STM/STLinux-2.3/devkit/sh4/bin:$PATH"

Make the configuration take effect immediately
#source /etc/profile

#JDK setting
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH

-------------------------------------------------------------
Installer
-------------------------------------------------------------
Right-click the application, click "Show Package Contents", enter and enter the MacOS folder, then you will see a file with the same name as the application.

Normally if the application is not missing anything, this file should be a so called "unix executable file",
But if the icon is a blank piece of paper, there will be a situation where the program cannot be opened.

Solution:
Open the terminal (terminal), enter chmod 755 (space) + the file address, and then press Enter.

About the file address: it is not convenient to enter it manually, in fact, just drag the file to the terminal after the space,
The terminal will automatically read the file address, and the program can be opened after pressing Enter!

chmod is an authorization command, which is to give permissions to files, folders, etc. 755 is that the owner has all permissions, the same group of users and others can be readable and executable

-------------------------------------------------------------
hot key
-------------------------------------------------------------
F11 show desktop
ctrl+up show all windows
cmd+ backspace delete files

-------------------------------------------------------------
chrome save mhtml
-------------------------------------------------------------
address bar input
chrome://flags/
Search for mhtml and open it


export PATH="/Applications/CMake.app/Contents/bin":"$PATH"
export PATH="/Applications/Graphviz.app/Contents/MacOS":"$PATH"









Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324710048&siteId=291194637