this shell by pressing ^Z\l The terminal name of this shell (e.g. "TTYP4")\ n line break\ r return character\s the name of the shell (such as "bash")\ t 24-hour time (e.g. "23:01:01")\ t 12-hour time (e.g. "11:01:01")\@ 12-hour time with AM/PM\u User Name\v bash version (e.g. 2.04)\v Bash version (including patch level)?/td>\w current working directory (e.g. "/home/drobbins")\w "base name (basename)" For the current working directory (such as "Drobbi
Entering shortcut commands in the terminal can improve productivity while keeping a few commands in mindHow to do:First edit in the ~/directory. Bash_profile This hidden file, if you want to directly double-click this file to open the editor, please enter it in the terminalMac Show hidden files command defaults write Com.apple.finder appleshowallfiles-bool trueAt this point you find the. bash_profile file in the ~/directory and open this fileAfter ope
First, delete the file1 Opening the terminal application2 Input command: sudo (space) RM (space)-R (Space)-F (space) (note that there are spaces behind-f), also note that all lowercase.3 Drag the file or folder you want to delete into the terminal window with mouse, and many can also be dragged together.4 then enter in the terminal.5 Enter the current administrat
On Windows, you can do this by opening the terminal by entering "Cmd/cmder" with the "Win+r" key.You need to make some settings on your Mac: Open "System Preferences", open "keyboard", open "shortcut keys", find "Spotlight", click "Show Spotlight Search" on the right, and modify the shortcut to: "command+ R ", set up after saving, and then" Command+r "after the" term ", the
PlainCopyprint?
Export path=${path}:${java_home}:${android_sdk_root}:${android_sdk_root}/platform-tools:${android_sdk_root}/ Tools:${java_home}:${java_home}/bin
Export path="/usr/local/bin:/usr/local/sbin:~/bin: $PATH"
The above is the system, if you want to configure something, such as the Android development environment in the SDK to add the directory, do not configure the words will not be added.[CPP]View PlainCopyprint?
Export android_sdk_root="/USERS/WANGKAI/DOCU
1.ls2. CD desktop/3. Touch A.C4. Open A.C5. CC A.C6../a.outDictate, roughly the first thing you have to do is open the Mac terminal and then:1. Show all subdirectories below the current directory2. Go to the desktop3. Create a A.C file4. Open the A.C file (and then you write your own code in the. c file that you need to run, and then save the file to close it)5. Compiling the A.C file6. Print the compiled g
Today's download of JBoss, extracted after the discovery of standalone.sh, can not be executed in the terminal, so Google a bit, originally because of the JDK version of the problem caused JBoss to stop in the debug state (it seems to say).The JDK version of the MAC system needs to be switched to 1.6.0.The way to switch is to execute a script that was deleted from Google saved in: http://www.cnblogs.com/cod
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 line: Ctrl + K7. Move the Word unit: Option +
As the saying goes, "to do something better, you must first sharpen the tool." That's right. For O M, you need to use a terminal to remotely manage servers every day. This terminal is the O M tool:
Mac native terminal is easy to use. Although there are some deficiencies, iterm2 is still found...
The following l
No matter which language you want to learn, there are almost no exceptions starting with hello and world. Today I am no exception.
Write this articleArticleThe purpose is to use xcode or vs to writeCodeAlmost all are compiled, linked, and run using graphical tools. For a long time, I have no idea what these graphic tools have helped us, and I have no idea what to do after some system environment setup problems.
Mac is a graphical Operating Syste
Modify the MySQL encoding format under mac terminal -- cannot find the my-default.cnf and my. cnf, cannot find mydefault. cnf
First, make sure that MySQL is correctly installed.
1-configure the environment variable path first
1.1 open the terminal and enter: cd ~
Will enter ~ Folder,
1.2 then enter: touch. bash_profile
After you press enter to execute,
1.3 enter:
user
Write username PTS/1
Mesg
Allow or deny receiving of messages
MESG N
Korn shell command
command name
function Description
Examples of Use
History
List several recently executed commands and numbers
History
R
Repeatedly executes a command that has been recently executed
R-2
Alias
To define an alias for a command
Alias Del=rm-i
U
user
Write username PTS/1
Mesg
Allow or deny receiving of messages
MESG N
Korn shell command
command name
function Description
Examples of Use
History
List several recently executed commands and numbers
History
R
Repeatedly executes a command that has been recently executed
R-2
Alias
To define an alias for a command
Alias Del=rm-i
U
PTS/1
Mesg
Allow or deny receiving of messages
MESG N
Korn shell command
command name
function Description
Examples of Use
History
List several recently executed commands and numbers
History
R
Repeatedly executes a command that has been recently executed
R-2
Alias
To define an alias for a command
Alias Del=rm-i
Unalias
To cancel the de
The password entered by ssh user @ localhost on the mac terminal cannot be properly logged in. After returning today, the system suddenly becomes very strange, in the past, ssh user @ localhost was used in the mac terminal to enter a password to connect to the remote SSH server. The following error is always prompted d
Under Ubuntu, throughsudo apt-get install treeYou can use the tree command to display a list of file directories:How to use it under Mac OS x system?In Terminal input:CD $homeEnter the localhost directory, and then enter:Vim. BASHRCThe results are shown below (click I on the keyboard to enter the edit state):Add the following code in the edit state:Alias tree="find. -print | Sed-e ' s; [^/]*/;|____;g;s;____
Pro ID Available: http://www.jianshu.com/p/11959977589a
Mac OS X 10.1
Xcode 7.2 (7c68)
OpenCV 2.4.13Mac OS10.11
OpenCV for Linux/macAfter downloading OpenCV, the CD enters the specified directory and uses the unzip command to extractPlease install the Homebrew command in advanceFirst install the CMake tool and then the CD into the unpacked folder$ brew install cmake$ mkdir release$ cd release$ cmake -G "Unix Makefiles" ..$ make$
[Turn]http://blog.csdn.net/jeanphorn/article/details/465506191. Description of the problemIt is believed that many users who have used Linux have used tree commands, which can display the directory structure as clearly as the Windows File Manager. But there is not the system itself, if necessary, Ubuntu can be installed under the following command. sudo apt-get install treeSo in Mac OS X system if you want to use tree This command, you can refer to t
1. Description of the problemIt is believed that many users who have used Linux have used tree commands, which can display the directory structure as clearly as the Windows File Manager. But there is not the system itself, if necessary, Ubuntu can be installed under the following command. sudo apt-get install tree So in Mac OS X system if you want to use tree This command, you can refer to the following solution.2. SolutionFirst, go to the
I 've been using MAC for a long time, but I don't know a lot about it. I find that I am not good at discovering new things, and I do not like to use new things. A Senior sister in the lab downstairs also bought a Mac pro, but she received a 20 thousand scholarship. The elder sister is not very clear about the operations on the command line and will often ask me. Then there will always be issues that I cann
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.