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)$RM file name$RM RM -R-F non-empty file 7.
Mac terminal command for displaying/hiding files in the Mac OS X operating system of apple, there are many ways to set whether hidden files are displayed. The simplest is to enter commands on the Mac terminal. The command for displaying/hiding Mac hidden files is as follows (note the space): the command for displaying Mac hidden files: defaults write com. apple.
system72 Start Management # RunLevel display system run level73 Startup Management # Init [0123456] Change system run level, 7 kinds74 Start Management # chkconfig–-list [service name] View the status of the service75 Start Management # Chkconfig–-level 76 Start Management # chkconfig 77 Process Management # Top dynamic ps-aux static process Tree Pstree View System process78 Process Management # program name Background Run program79 Process Management # FG back the process running in the backg
;write=2;read=4 x value: 0-- No permissions ( can only be performed ( can only write ( can only be written and executed ( Read only ( read-only and execute ( Read and write ( read. Write and execute Seven. Vi edit class 1. Enter after the command mode: (1) insert I open 0 modify C replace S2. After (1) Enter full screen editing mode. 3. Command mode--> edit mode (a/i) Command mode (ESC) :) 4.:w/w newfile save 5. : q/q! Exit VI (or SHIFT+ZZ exit) ;:wq save exit Eight.
Ubuntu Common Terminal commands
NO Classification PS1 command name usage and parameter function annotation
1 file Management # ls ls-a lists all files in the current directory, including hidden files with. headers
File Management # ls ls-l or LL lists the details of the files in the current directory
File Management # pwd pwd View the absolute path of the current directory
File Management # CD CD. Back
terminal full-featured File Manager, here is what you need to install it on Ubuntu by typing the following command: sudo apt-get install MCOnce the installation is complete, simply run the MC command to start it.
Use the arrow keys to select the File and tab key to toggle between panes. Press Alt-1 to see the help screen or press Alt-2 to see the menu.
Refer to the original link : https://jingyan.baidu.com/article/466506583d5a58f549e5f893.htmlB
Configure the Android development environment, change bash_profile This file, finally somehow only the CD command can execute, I guess the Bash_profile file can be modified after not saving the resulting Save command is: source. bash_profileHere's my solution:1, on the command line, enter:Export path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin This guarantees that command-line commands can be used temporarily. Do not close the
screen in VI)10) Run the Filename.out file directly with "./filename.out", that is, after the ". C" file is compiled with the GCC compiler to ". Out", when the ". Out" file is executed, simply precede the filename with "./".Note: GCC (GNU Compiler Collection)VI Delete and modify the file commands (note in edit mode instead of insert mode):x: Deletes the character of the cursor.DD: Deletes the column where the cursor is located.R: Modifies the charact
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
Common ubuntu terminal commands NO classification PS1 command name usage and Parameter Function annotation 1 file management # ls-a list all files in the current directory, including. hidden File Management in the header # ls-l or ll list detailed file information under the current directory file management # pwd view the absolute path of the current directory by file management # cd .. back to the upper-le
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
is located and before it, and moves the cursor to the next character
Alt+t
Swap position of current and previous words
Alt+u
Convert the current word to uppercase
alt+l
Convert the current word to lowercase
Alt+c
Capitalize the current vocabulary into the first character
Ctrl + V
Insert special characters, such as Ctrl+v+tab join TAB key
esc+t
Reverses the position of the cursor and
Common terminal Commands
By: Lingyired in 2011-10-04 17:05:30 (original article, reprinted)
One, the file directory Class 1. Build directory: mkdir directory name 2. Delete Empty directory: RmDir directory name 3. Delete the subdirectory unconditionally: RM-RF directory name 4. Change the current directory: CD directory name (go to User's home directory: cd ~; go to the previous level directory: CD-) 5. Vi
Ubuntu view port usage, using the netstat command:
To view connected service ports (established)
Netstat-a
View all service ports (listen,established)
Netstat-ap
View the specified port, which can be combined with the grep command:
Netstat-ap | grep 8080
You can also use the lsof command:
lsof-i:8888
To close a program that uses this port, use the Kill + corresponding PID
kill-9 PID Number
Ubuntu Terminal
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 without suffix).Add editsRecently look at the de
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 java. So I started compiling Java code with 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.