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
After installing the mobile terminal found ping command, the route and other commands can not be used, prompt command not found.Workaround: Install the support packageShell-cmds Package: Contains Killall,mktemp, Renice, Time,which commandNetwork-cmds Package: Contains Arp,ipconfig,netstat,route,traceroute commandInetutils Package: Contains FTP,INETD,PING,RLOGIN,TELNET,TFTP commandAdv-cmds Package: Contains
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
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
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
1. Command line daily shortcut keys.CTRL + U-------------------------------The content before the cursor is clippedCTRL + K-------------------------------cut the cursor to the end of the lineCTRL + Y-------------------------------pasteCTRL + E-------------------------------move the cursor to the end of the lineCTRL + A-------------------------------move the cursor to the beginning of the lineALT + F-------------------------------jump down a spaceALT + B-------------------------------Jump back to
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 terminal
update test.php (update, sync with version library). If the prompt expires at the time of submission, it is because of the conflict, you need to update, modify the file, then clear the SVN resolved, and then commit the commit.Shorthand: SVN up6. View file or directory status1 SVN status Path (the state of the files and subdirectories under the directory, not shown in the normal state)"?: not in the control of SVN; M: Content modified; C: conflict; A: scheduled to join repository; K: Locked2 svn
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
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
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 termin
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.