First, open the Terminal execution commandvim ~/.bash_profileEnter the following command in. bash_profilealias subl="‘/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl‘"Wq after saving, go back to the command line and execute the following command to take effect:source ~/.bash_profileHere we assume that the command line opens with Sublimetext. Bash_profile, then execute as follows:subl ~/.bash_profile接下来 我们就可以在终端 使用 subl 目标文件 语句来打开文件了。Use Mac
Finder Bar Display Access pathOperation Steps:Open the terminal (Application-utility) and enter the following two commands:Defaults write Com.apple.finder _fxshowposixpathintitle-bool TRUE;Killall FinderYou see, the full path address comes out.How do I restore the default state?Open the terminal (Application-utility) and enter the following two commands:Defaults delete Com.apple.finder _fxshowposixpathintitle;Killall FinderLibrary Directory DisplayThe library directory in the
Mac OS x hides parts of the file for security and stability, but sometimes we have to modify/view these files, which macgg the following two ways.
Using System commands
Open Terminal (Applications folder, utilities folder, terminal), and enter the following command:
Defaults write Com.apple.finder appleshowallfiles truekillall Finder. Change TRUE to FALSE to turn off show hidden files.
Use of third-part
First of all, it is really too busy recently, a long time no blog, and today just have time to write about the recent in the game of some discoveries;In other words, based on the COCOS2DX engine + script to write games, the feeling is that can be incremental updates and instant compilation, and so on, saving a lot of time; okay, no more nonsense, go to the point;Here I take cocos2d-x-2.2.2 as an example Today I will say how to use cocos2d-x3.2 in Cocos-console to bulk encrypt LUA scripts-into lu
/tomcat-juli.jarTomcat started.At this point the Tomcat server is turned on, verified, and entered in the browser: localhost:8080 if the following interface appears, the installation is successful.If you need to turn off shutdown.shSay I encountered in the installation of the pit, just start the installation of the search for someone else's blog, follow their steps to operate, but at the terminal always appear no such file or directory such as the err
setting method of automatic arrangement file icon of Apple Mac computer
1, open the folder that needs to be sorted out, because all is free drag and drop, the file messy is almost miserable, Virgo minute want to Apple Ben.
2, not urgent, click the nut the same button, select the arrangement you want, OK, fix
3, here again to tell you a simple met
trouble. In fact, this is not to blame windows. \r\nThe history of use can be traced back to the distant 19th century. The typewriter, which was invented at that time, was a solid cylinder + a chrysanthemum-like font. The paper is firmly fastened to the surface of the cylinder. When we press a letter, the mechanical device "fly" to the paper, while the ribbon before the cylinder rises, hard to print, so the paper appears on a word. After printing, the mechanism automatically allows the cylinder
Replacing a row of records in a property file with a shell scriptAssume a subordinate file demo.propertiesUser.name=testuser.password=123456...............................Requirements: First, you need to replace the value values of User.Name and User.password with the user name and password that you actually need through the shell script.will be implemented in the following ways:Sed-i "s#^user.name=.* #user
Previously in the Windows operating system, accustomed to using TORTOISESVN to export new or modified files ("fairly practical" how to get TortoiseSVN to export new or modified files), recently replaced the Mac Pro notebook computer, for a while did not find a similar tortoisesvn Easy to use client tools. Well, use PHP to write an export gadget:
1, tool file name: svn.php, its contents are as follows:
. If my hard disk breaks down one day, at least the most important things can be downloaded again, without any worries. In addition, on different computers, I can get what I want at any time. The charm of cloud computing ......Sugarsync is the same as Dropbox. When you edit a file or change the directory file structure, all changes will be automatically backed up to the network. Sugarsync's storage space is
You know, sometimes some small tricks can greatly increase our efficiency.Under the development of the Mac, with the most or terminal, my terminal environment is iterm2+ohmyzsh; before I get to the point, I'll introduce you to a few tips:The first one:Open Findle, then locate my project directory, and then I open the terminal of the current directory with the installed Go2shell. As follows:To tell the truth, it is convenient, it is better than opening
"Hidden" files in Unix-like systems and Linux systems are all in dots. That starts with the file name. The same is true in Mac OS. This type of file is not displayed in the default Finder and in various applications. One advantage of this is that many times those "hidden" files may contain important configuration of an application, important data, and so on, if t
Users familiar with Mac know that in OS X, the Finder-stored file will always open with a specified default application, such as a picture-type file that is opened by default in preview. However, because PC6 often need to use the Picture Editing Tool PS Open the picture type of file, each time you right-click a picture
Tag: Enter the zip BSP to unzip the select PC to resolve the installation commandDownload a RAR file, there is a password, you understand.But on the Mac, with Unrar decompression, only the empty files can be extracted, with Izip decompression, directly parked there do not move.Had to search the Internet. Found a way.Installation of the command-line version of Unrar:brew install Unrar with brewThen in the di
Under Mac Many SVN management tools cannot upload. A files by default. From the Internet, the command line can be used to solve this problem.Open the terminal and the CD enters the folder where the. A file needs to be uploaded. Make sure LS can see. a fileThen use the command, such as: SVN add libzbar.aAppears after use is completeA (BIN) libzbar.aAdd success, with the SVN graphical management tool can be s
I downloaded the latest version from phpMyAdmin's official website, unzipped it to/library/webserver/documents, and renamed the folder phpMyAdmin.Then enter localhost/phpmyadmin/in the browser, fill in the user name password but prompt [2002] No such file or directory.On the internet to find a lap, it seems that the location of the mysql.sock is wrong.First, open the terminal and find the location of Mysql.sock.sudo Find /-name Mysql.sockThe results a
The VI editor is used here to modifyOpen Terminal (application-utility), run:sudo vi/etc/hosts, you will be prompted to enter your password at this timeAfter opening the Hosts file, press the I key to enter insert mode (can be understood as the editing mode, as shown, there will be a "insert" hint, you can insert the meaning of the edit), and then according to your needs to edit the file, after editing, pre
1. Open the Root accountOpen System Preferences and go to the Users and Groups panel, remember to open the small lock in the lower left corner of the panel and select "Login Options" in the panel. On the right side of the panel you will see "Network account Server", click on the "Join ..." button next to it, then click "Open Directory Utility" in the pop-up window. A new window will pop up, open the small lock in the lower left corner, then click "Edit" on the menu bar – "Enable root user" to se
In the Mac system repository cache (caches) folder, there are almost all the cached files that we leave behind when we use the program. Most programs automatically save cached files so that the cache accumulates more and affects speed and space. If you do not need to use any of the programs, then you can completely empty the program's cached files, the following method,
1, first click on the desktop with the mouse, and then press Command+shift+g to t
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.