In general, only high-end users will often use the terminal application. This does not mean that the command line is very difficult to learn, sometimes the command line can easily and quickly solve the problem. Believing that all Mac users have tried the command line, today brings you 9 very useful command-line operations. Some command lines need to be installed in Xcode to be practical, and Xcode is availa
In react Native, after we use brew to install NVM, and after the project is created, the next time you use Xcode7 to open the project, you find that the run failed. The reason is that NVM is not available for the following reasons:Cause: Make sure to set it up in your bash or zsh profile after the brew is installed, otherwise when you restart the terminal, you will notice that node, NPM environment variables are invalidated.1. Open
students, THX)OK, so far, the problem is that the end of the flicker disappears, but will always prompt the [process is finished] cannot operate.Then we looked up the information and found a solution, that is, the open mode of general-purpose->shell. Select the command (full path). Path is:/bin/bashAnd then open it again, the terminal is finally normal.PS. This article solves the method only to conquer the problem of oneself. Because the time problem
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 +
1. Use Caffeinate to prevent your Mac from running screen saver and sleepCaffeinate can prevent your Mac from going to sleep, and screen saver won't activate. We'd better use-t to add a specific time to the command. For example, the following command can make the Mac not sleep in an hour. Caffeinate-t 36002. Using Pkgutil to extract pkg filesIf you want to view a
One, what is UltraEditI think it's a programmer, and the code knows what Urledit is. We are going to use Linux and have a very famous editor gedit in Linux, which allows us to enter gedit XXX in the terminal. You can edit the software by entering the visual window.Gedit can also be used on Macs, but gedit. There's a better software UltraEdit on Mac, but how do we use gedit as a command to edit any file?Seco
The host name + username of Mac Terminal will appear very long, affect the overall aesthetics, you can switch to the root userModify the. bashrc file for formatting.1. Switch the root user in the terminalSu-root2. Modify ps1= ' \h:\w \u\$ ' in the/ETC/BASHRC file, where \h represents the hostname, \u represents the user name# system-wide. bashrc file forInteractive Bash (1) shells.if[-Z"$PS 1" ]; Thenreturn
Recently re-installed the system, and then reconfigure the terminal to make it more consistent with user habits.The effect is as follows:has syntax highlighting, command line tab completion, automatic prompt, display git warehouse status and other functions.InstallationFirst of all we downloaded the iTem2 this software, more powerful than the Mac comes with the terminal
Recommend a useful terminal tool for everyoneGo2shell:https://itunes.apple.com/cn/app/go2shell/id445770608?mt=12I found a lot of them before I had this tool. Open terminal commands in the current directory it's not good to accidentally discover this go2shell is very useful,Download install drag-and-drop to the toolbar, and then in which directory you need to open the Direct dot toolbar above the Go2shell ic
We know that the command line terminal under Linux has color echo function, the LS command to view the directory or file, the terminal will be different colors; using the vim command line editor to open a script or other source code is displayed in syntax highlighting mode. But the terminal under Mac OS x always displa
[Mac] Terminal interactive input line editing reviewThe Python Editor supports input line editing and historical backtracking with the GNU Readline Library, which supports Emacs-style and VI-style editing.Line edit Emacs Style shortcut key edit
[C-A (Control + A)Move the cursor to the beginning of the line
C-EMove to end of line
C-BMove one character to the left
C-FMove one to the right
Recently in the study of using Appium to do iOS automation, so began to touch the Mac system. Record a few common commands for homebrew under the Mac's Terminal
Install (requires Ruby, but usually comes with a band):ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Search:brew searchXXX 在安装之前可以先查询一下,是否有这个软件
Query: brew infoXXX mainly to see the specific information, such a
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 view files under TerminalLS lists all files i
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 view files under TerminalLS lists all files in the directoryCP file name destination directory copy files to target directory~ stands for root such as: ~/document/cpp2/Mkdiv new Folderg++ source file name compile source files, generate a.out./file name run for
This article introduces the MAC terminal display calendar Information command, provides a number of examples to illustrate the use of these two commands and the application of each parameter scenarios.
Mac system built-in commands for displaying calendars are CALs and ncal, which make it easy to view calendar information directly on the
Windows system under the Xshell can be very convenient to login to the server upload download files, although the Mac does not Xshell, but we have a universal terminal Ah, Mac terminal is the self with SSH.
1, SSH Login server
Ssh-p Port number username@ server IP
⚠️ Note: here-P (port) is lowercase p
2, upload fil
MAC ADB configuration1. Locate the local path of the Android SDK,ADB command under Platform-tool, credited as xxxxMy path is (/applications/eclipse/android-sdk-mac_x86/platform-tools)2. Open Terminal inputTouch. Bash_profileOpen-e. Bash_profile Point Enter3. Add a pathThe. Bash_profile opens and we add the path here,If there is already content in the open document, we just add it later; XXXX (note that the
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>
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 commands, for example:
$ echo `ls -a`
$ ec
Completely solve the problem of terminal Path Display in mac first look at your prompt display mode, open Terminal, enter www.2cto.com Bash code echo $ PS1 then it will display similar \ h: \ W \ u \ $ is a piece of information, which is used to define the display mode of the prompt. The details are listed below. Bash code cd ~ Open-e. bash_profile will open Text
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.