IOS development diary 9-terminal commands, ios diary 9-Terminal
Today, bloggers have some terminal usage requirements and encountered some difficulties. I would like to share with you the hope to make common progress.
OSX uses Unix file systems. All files are mounted under the directory "/". Therefore, the concept of d
modified to run once the script is OK, convenient
1. Running Nano/clean in the terminal
2. Paste the following code into the nano
Rm-rf/system/library/extensions.kextcache
Rm-rf/system/library/extensions.mkext
Chown-r root:wheel/system/library/extensions
Chmod-r 755/system/library/extensions
Diskutil repairpermissions/
Kextcache-k/system/library/extensions/
3. Ctrl +o disk, ctrl+x exit
4. In the
data will only make the computer run more and more slowly. So it comes down to the above we can use the following actions to clean up the "other" on the disk in order to free up memory.
Cleaning method:
Reboot the computer : Restarting is always helpful to the computer, because it immediately deletes the file cache that the system is unable to process.
empty The Trash: Why is the deleted file still stored in the computer?
Remove unused ap
Learn frequently-used Mac commands, assist iOS development, and frequently-used mac commands for ios
Source: Jack_lin (@ Jack_Lin_IOS)
Heavy technology Preface
In the process of iOS development, you pay more attention to the efficiency of iOS development and are proficient in using common
limited, auto-complete function is not strong enough ... So, with the ITERM2, you need a more powerful shell to match.About ShellThe first recommendation is zsh. The reason is called zsh, the meaning is:The last shell of you ' ll ever need!It can be understood that once it is used, there is nothing to ask for. Zsh is much more powerful than bash, and can automatically fill commands, parameters, filenames, processes, usernames, variables, permissions,
, when necessary, this part of inactive memory resources will be released as free for the program. The released part will be allocated to the virtual memory of the disk. (This is why the system speed is affected when the available disk space is less than 10 Gb ).
Therefore, it is normal to have a small amount of free memory and a large amount of inactive memory in the system. As long as the system or program needs it, the system will convert and use it. However, if the free memory and inactive m
Mac commonly used terminal commands to clean up computer knowledge
As a developer, more and more feel for the use of the terminal, is very necessary, I contact this less before, but also occasionally use (University did not learn Unix), now summed up a few, follow-up will a
-rf/system/library/extensions.kextcacheRm-rf/system/library/extensions.mkextChown-r root:wheel/system/library/extensionsChmod-r 755/system/library/extensionsDiskutil repairpermissions/Kextcache-k/system/library/extensions/3. Ctrl +o disk, ctrl+x exit4. Once the driver is moved, run it once in the terminal Sh/clean————————————————————————————————————Little TricksUse the Tab key to auto-complement commandsFor
in terminal2. Paste the following code into the nanoRm-rf/system/library/extensions.kextcacheRm-rf/system/library/extensions.mkextChown-r root:wheel/system/library/extensionsChmod-r 755/system/library/extensionsDiskutil repairpermissions/Kextcache-k/system/library/extensions/3. Ctrl +o disk, ctrl+x exit4. Once the driver is moved, run it once in the terminal Sh/clean————————————————————————————————————Litt
have been using the Mac OS comes with the terminal, although some inconvenient, but overall is acceptable, is to have the idea of changing a terminal, and then happened to see a terminal weapon iTerm2, found that really very powerful, but also very easy to use, according to the online configuration of the theme or some
Mac _ terminal command
Mac OS uses Unix file systemsThe root directory is/
Driver location/System/Library/Extensions
User folder location/Users/User Name
Desktop location/Users/user name/Desktop
The file wildcard is asterisk *
Note: In the unixsystem, A. txt is not the same as a.txt.
How to enter the command line operation mode
Open the Application> utility>
After 2 years and started using Mac OS system, a lot of shortcuts and common commands have been forgotten, the use of really inconvenient, inefficient, especially under the terminal, so for terminal and looked for a bit and organized as follows, hope to later students also useful:
control + aMove the cursor to
Mac OS Terminal several shortcut keysThe combination of several keys in Mac system can make the operation of terminal more flexible and convenient.1. Move the cursor to the beginning of the line: Ctrl + A2. Move the cursor to the end of the line: Ctrl + E3. Clear the Screen: Ctrl + L4. Search for previously used
First of all we downloaded the iTem2 this software, more powerful than the Mac comes with the terminal. Direct official website http://iterm2.com/download and install.ConfigurationSet ITEM2 as the default terminal:(menu bar) ITerm2 make ITerm2 Default termThen open the preferences preference, check keys, tick hotkey under Show/hide ITerm2 with a system-wide hotke
The combination of several keys in Mac system can make the operation of terminal more flexible and convenient.1. Move the cursor to the beginning of the line: Ctrl + A2. Move the cursor to the end of the line: Ctrl + E3. Clear the Screen: Ctrl + L4. Search for previously used commands: Ctrl + R5. Clear the current line: Ctrl + U6, clear to the end of the current
, copying files and directories under the directory);/home/lnmp0.4/indicates the directory to be uploaded, [email protected] means to log on to the remote server using the root user www.vpser.net,:/root/ LNMP0.4/represents the directory location that is saved on the remote server.5. Several parameters that may be useful:-V is the same as-V in most Linux commands to show progress. Can be used to view connections, certifications, or configuration errors
line:
$ cd /Users/xiaoa/test
11. Enter the $ bash command in Bash to start a subbash program and exit the subprogram with the $ exit command.
12. Command combination and priority execution
Enclose the command with a single quotation mark (that is, the key on the left side of the number key 1 above the keyboard, not a single quotation mark): Begin command
Or $ (command) to first execute a command, and then use the returned content as the input of other comm
the next command, then press → to output these commands, very convenient.Settings are as follows:1. Clone the repository to the local ~/.oh-my-zsh/custom/plugins pathgit clone git://github.com/zsh-users/zsh-autosuggestions $ZSH _custom/plugins/zsh-autosuggestions2. Open the. zshrc file with vim, find the plugin settings command, default is plugins= (git), we'll change it toplugins= (zsh-autosuggestions git)3. Reopen the
disable it.mkdir/system/library/extensions/disabled Creating a disabled directoryMv/system/library/extensions/applehda.kext/system/library/extensions/disabled move PastNano/system/library/extensions/natit.kext/appleazaliaaudio.kext/info.plistAfter editing, use Ctrl +o to save, ctrl+x exitSh/clean Execute cleanup Script, Operation completeSuccessful, but also put the modified driver back up##############################################################
commandSh script file nameFor example, after the driver is modified, all required operations are saved as a script. After the driver is modified, you only need to run the script once.1. Run nano/clean in the terminal2. paste the following code into nano.Rm-rf/System/Library/Extensions. kextcacheRm-rf/System/Library/Extensions. mkextChown-R root: wheel/System/Library/ExtensionsChmod-R 755/System/Library/ExtensionsDiskutil repairpermissions/Kextcache-k
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.