Mac users know that every time the computer is turned on or restarted, there will be a very special boot tone. If you want to temporarily prohibit the start-up tone, one way is to always hold down the keyboard mute button, of course you can also use the following method of using terminal commands:By Spotlight Search and open the [terminal] program, then enter the
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
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
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.Export android_sdk_root= "/USERS/WANGKAI/DOCUMENTS/ADT-BUNDLE-MAC-X86_64-20130219/SDK"I saved these 4 references in my command line 6, to save the full selection: Command+s or not at ease, select the Notepad file-save save after saving no prompt to directly turn off. 7, at this point
the original unchanged working copy file (restores most of the local modifications). Revert:2 usage: revert PATH ... 3 Note: The book command will not access the network and will release the conflicting conditions. But it will not recover 4 of the deleted directories16. Code Base URL Change1 svn switch (SW): Updates the working copy to a different URL. 2 usage: 1, switch URL [path] 3 2, switch–relocate from to [path ...] 4 5 1, update your working copy, map to a new URL, its behavior is simil
Today, a small study of the Mac terminal commands, mainly for the convenience of debugging programs, Xcode do not come ah ...Make a note here. Prevent lossPWD Current Working directoryCD (without parameters) into rootCD (folder) access to foldersCd.. Parent Directorycd ~ Back to RootCD-Returns the last visited directoryRM File name DeleteCat file name (|less) to
Link Address: http://www.cnblogs.com/wangrui-techbolg/archive/2012/12/29/2839047.htmlSince the MAC is already installed in the Java environment, it is convenient to run the Java command directly from the class.Compile a Java file: javac/users/username/desktop/helloworld.java (after running will get a Helloworld.class file, store directory in Desktop)Run: First to CD to Helloworld.class directory, then: Java HelloWorld (HelloWorld is the class name wit
Since the MAC is already installed in the Java environment, it is convenient to run the Java command directly from the class.Compile a Java file: javac/users/username/desktop/helloworld.java (after running will get a Helloworld.class file, store directory in Desktop)Run: First to CD to Helloworld.class directory, then: Java HelloWorld (HelloWorld is the class name without suffix).Add editsRecently look at the design pattern, the inside of the code is
Check which directory is currently in PWDJump to which directory, remember CD is the meaning of change directoryJump Directory CD Directory nameJump to home directory CD ~Skip to the top level directory CD.Jump root directory CD/Returns the directory CD for the last actionNew directory mkdir directory nameSee which folders are in the current directory LSRemove directory rmdir directory nameGet root Permissions sudo Mac comes with
Displays the name of the terminal or pseudo terminal
Tty
Stty
Display or reset control key definitions
Stty-a
Du
Querying disk usage
Du-k SubDir
Df
Displays the total and free space of the file system
Df/tmp
W
Displays the total information for the current system activity
W
Wen/kekemars
Step1. Enter in Terminal: Export path= "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/x11/bin" then the command can be used temporarily, Step2. open-e ~/.bash_profile Open the. bash_profile file in a text editor: Step3. Change the PATH environment variable setting, add this line, export path= "/usr/bin:/bin:/ Usr/sbin:/sbin:/usr/local/bin:/usr/x11/bin "It's no problem to save it again.Workaround for Mac
MAC Terminal statementNumber of words Read 111 comments 3 likes 3 PWD Current Working directoryCD (without parameters) into rootCD (path name) into the folderCd.. Parent Directorycd ~ Back to RootCD-Returns the last visited directoryRM File name DeleteCat file name (|less) to view files under TerminalLS lists all files in the directoryCP file name destination directory copy files to target directory~ stan
Command name
Function description
Application examples
Cat
Show or connect files
Cat filename
Od
Display the contents of a non-text file
od-c filename
Cp
Copy a file or directory
CP file1 File2
Rm
Delete a file or directory
RM filename
Mv
Change the file name or directory
MV File1 File2
Find
Finding files using matching expressions
simplify some of the longer commands.
When using this directive, the user must use single quotation marks to "cause the original command to be used to prevent special characters from causing an error.
The function of the instruction is limited to the operation of the login. To be able to use these command aliases every time you log in, you can store the alias command in Bash's initialization file "~/.bash_profile".
6. View the command alias's origina
How does a Mac command line terminal Create a file? It's really easy to create a large-capacity blank file in a Mac OS X system. This article small Lego for you to introduce two kinds of file creation tutorial, the first is to use the MAC command line terminal to create the
terminal when it is started.
In Terminal input: cd ~
Vim./bash_profile
This file is modified if the Android development environment has been configured. We add 2 lines
Alias Mysql=/usr/local/mysql/bin/mysql
Alias Mysqladmin=/usr/local/mysql/bin/mysqladmin
Save exit, restart Terminal or open a new window
Alias directive: Setting command aliases
Alias:usage:alias
the terminal when it is started. In Terminal input: cd ~ Vim./bash_profile This file is modified if the Android development environment has been configured. We add 2 lines Alias Mysql=/usr/local/mysql/bin/mysql Alias Mysqladmin=/usr/local/mysql/bin/mysqladmin Save exit, restart Terminal or open a new window Alias directive: Setting command aliases Alias:usage:a
Recently learning Apple's certified MAC OS X support Essentials tutorial, see Command Line section has a lot of practical knowledge, below Select a part of translation + notes, organized into this article.
You can drive cars all day without knowing how to fix them, but if you want to be a maintainer, you need to know how things work. The same thing happens on Mac OS X; You can always use your
the mouse and you are already copied. There's no need to press the COMMAND+C command."2. Screen separation"This is my favorite iTerm2 function, separated into multiple screens, as long as your computer's screen is large enough to want to divide the number of screens can be. You can do command-line operations at the same time, rather than just one screen, because one command or network download is blocked, and you cannot execute other commands. If you
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.