Mac Terminal command:1.root Permissions$sudo Su-2. Navigate to the specified folder location$CD/users/Computer Name/desktop (navigate to Desktop)3. Create a new Folder$mkdir folder name4. Program installation$PIP Install program nameOr$brew Install program name5. Create a virtual environment$pip Install Virtualenv$VIRTUALENV Environment NameOr$python-m VENV environment name6. Delete files (in this directory
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
On mac, how does one enable MySQL and xamppmysql that come with XAMPP on a terminal?
Note: 1. This article cannot be reproduced without the consent of the blogger!
2. All terminal statements are displayed in different branches to avoid mistakes;
Start directly and describe the possible errors in each step.
1. Install xampp, open the
After using the Windows command-line tool's tab auto-completion path feature, it is not customary to knock commands on Mac terminal. In fact, Mac terminal also has this function.Enter Nano. INPUTRC on the command lineEnter the edit interface of the. INPUTRC, and type the following statement:Set completion-ignore-case o
Tomcat, as a free server word-of-mouth is too good, this would like to install a research and research, helpless computer is a Mac system, search on the internet a number of installation methods are always wrong, until met this blog, http://www.cnblogs.com/qingyuan/p/4145175.html.Step 1: Find the Tomcat website Portal: http://tomcat.apache.org/download-90.cgiFind the download area zip format and tar.gz format are OK, I chose tar.gz2: After decompressi
Note: 1, this article without Bo Master consent, not reproduced!2, all the terminal statements are displayed on the branch, so as not to see the wrong;Start directly, the process of each step may appear errors are described.1. Install the XAMPP, then open the terminal, enter:Mysql-u root-pSuccessfully entered, wipe, you have good luck, you do not have to look at the back.2. If command not found is prompted,
students can leave a message, to help other students. ThxOk. So far, the problem is that the endpoint has disappeared, but it has been prompted that [the process is finished] cannot be manipulated.Then we looked up the information and found a solution, that is, the general->shell, which is set up in the terminal, preferences, select the command (full path). Path is:/bin/bashAnd then open it again, the terminal
directive: SSH [email protected]Case: wangmingdemacbook-pro:~ xxxxxxxxxx$ ssh [email protected]The authenticity of host ' xxxx.net (xxx.xxx.xxx.xxx) ' can ' t be established.RSA key fingerprint is 13:82:21:f3:47:ac:15:44:f5:d0:c4:65:a0:5c:cc:06.Is you sure want to continue connecting (yes/no)? YesWarning:permanently added ' xxxx.net (xxx.xxx.xxx.xxx) ' (RSA) to the list of known hosts.[email protected] ' s password:The following operation instructions are the same as the putty.Use
If my directory jni has a list.sh fileI directly nxgametekimacbook-air:jni luonan$./list.sh. /.. /classesHint Permission deniedAnd thenchmod +x *.shAnd then the execution is OK.Nxgametekimacbook-air:jni luonan$ chmod +x *.sh./list.sh. /.. /classesNxgametekimacbook-air:jni luonan$./list.sh. /.. /classesThis is the problem I encountered when I built the classes file on the build Android project. The "IOS" Mac termin
2 pieces of articles are referenced:View python location which pythonFirst back up 1, sudo cp/usr/bin/python/usr/bin/python_cp Delete 2, sudo rm/usr/bin/python //The default setting is python3.5,Create a link (I'm just going to find the parser path for my installed Python, and then stitch my own path to execute the following command OK) 3, sudo ln-s/usr/bin/python3. 5/usr/bin/python url:78017558The 1.MAC system comes with a python environment in:Pytho
Connecting to an FTP server using a MAC terminal
Format: FTP [hostname| ip-address]
FTP 127.0.0.1#服务器询问你用户名和口令, you can enter the followingDownload files
The download file usually uses the get and mget two commands.Get
Format: Get [Remote-file] [Local-file]Transfers a single file from the remote host to the local host.
Mget
Format: mget [Remote-files]Transfer multiple files from the remote host to the
Tags: dir directory esc body ACK BSP Primary directory page common commandsBecause very little command line, old despised, so today record a common command line:CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory separator./Current Directory.. /go to the top level directoryLS Displays the current directory so the filemkdir Creating a new directoryRmDir Delete Empty directory, note is empty directoryV
Tags: enter nan Delete folder cpp create cat RAR tool Create Filesudo rm-r-F Delete FolderPWD Displays the current directoryLs-a Show all hidden files or foldersCat Display file contentsTouch Create FileRM Delete FilePWD 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
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
Tags: install mysql technology share login oca Word cal prompt command targetInstall MySQL on Mac again to enter the MySQL command on the terminal, but command not found, the workaroundOpen terminal to enter the following command:/usr/local/mysql/bin/mysql-u root-pWhere Root is the user name. The following command appears: Enter password:123456This will allow you
First the Mac comes with the terminal is not support Lrzsz, need to download install ITERM2,:Http://www.iterm2.cn/download1. Installing Lrzszinstall lrzs2. Install script to Mac specified directory, address: Https://github.com/mmastrac/iterm2-zmodemSave iterm2-send-zmodem.sh and iterm2-recv-zmodem.sh to the/usr/local/bin/path of your
The first thing to know is what kind of shell you use for Mac OS x, using commandsEcho $SHELLIf the output is: CSH or TCSH, then you are using C Shell.If the output is: bash,sh,zsh, then your use may be a variant of the Bourne shell.Before Mac OS X 10.2, the default is C Shell.The default is Bourne Shell after Mac OS X 10.3.
Open
Looking for a long while finally found how the Mac under the terminal to show the tree command, as the person from the Linux to turn around, has not adapted to the Mac Finder, or like to view the file under the command line.Command:' s; [^/]*/;|____;g;s;____|; |; GThen manually alias it and add it in your. Bash_profile or. ZSHRC:Tree="Find." -print | Sed-e ' s; [
// color your terminal.
Lscolors =... // Specify the specific project for coloring.
3) add more colors to get more color reminders, keep the previously added rows, and append them to the backend.
export TERM="xterm-color"PS1=‘\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ ‘
After setting, you can see that the username and command line have colors:
All the above steps are available for the test.
All the above information
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.