This article takes CentOS as an example, other Linux please refer to the corresponding method.1. Server-side Install gitYum Install git2. Add a user with no shell logon rights to the server and replace username with the user you want to addUseradd-s/
Tag: Represents log min Read admin net src file symbolFirst, install the command:1) log in as root. Execute: sudo su-command2) Execute installation command: Apt-get install SubversionSecond, create the project directory1)
Change all of the. php files under the store to the owner of FTPD[Email protected] ~]# chgrp ftpd/store/*.php[Email protected] ~]# chown ftpd/store/*.php=========================== Add vsftp Account start===================================View Linux
Multi-line Comments:1. Enter command-line mode, press CTRL + V to enter Visual block mode, then press J, or K to select multiple lines to mark the lines that need comment2. Press the capital letter I, then insert the comment, for example//3. Press
In Linux, the main editor is VI or VIM, this article around vim to do a simple explanation: Linux default self-contained VI (VIM) editor, its package is: [[email protected] ~]# rpm-qf ' which VI ' vim-minimal-7.2.411-1.8.el6.x86_64 [[email protected]
Installation details for MRTG under Linux (CentOS)MRTG is very powerful, he can control your server for a move, and web-style presented to you, to tell you the network, CPU, memory, hard plate and other uses, but the configuration of this software
Linux Package ManagementThere are 3 general mechanisms for package management: Source code mode, RPM, YUMPackage form and Storage path:1 binary ProgramMain storage
Global substitutionFormat:":%s/to replace character/replace with new character/g":%s/old/new/gSpecify line substitutionFormat: ": Starting line, terminating line s/to replace character/replace with new character/g": 1,5 s/old/new/g
Multi-file
1. Open multiple WindowsCommands to open multiple windows: Horizontal cutting window: new+ window name (after saving is file name) :split+ window name, or abbreviated as: sp+ window name portrait cutting window Name: vsplit+ window name, also can
(1) Press ESC, then 123GG jumps to 123 lines (2) Input: line number jump to the line you want! ###############################Add, delete comments:Note: Ctrl + V enters column-editing mode, moves the cursor down or up, marks the beginning of the
Header:%s/^/your_word/End of Line:%s/$/your_word/Key operation:Note: Ctrl + V enters column edit mode, moves the cursor down or up, marks the beginning of the line that needs comment, then presses the uppercase I, then inserts the comment, such as "#
1, problem descriptionAfter the comment line in the block. VIMRC::$ VI.. /.. /.. /.vimrc# set Cursorline # set cursorcolumn# "Hi cursorline cterm=none ctermbg=257#" Hi cursorcolumn cterm=NONE ctermbg=257The following error always occurs when editing
1. Shell Features:To view the command history using the historical command:[Email protected] ~]# historythe user's history record is located in the user's home directory . Bash_history File:[Email protected] ~]# vim ~/.bash_history Quick Actions
Usage of shortcut keys in Linux1.1 Common shortcut keysCTRL + A moves the cursor to the beginning of the lineCTRL + E moves the cursor to the end of the lineCTRL + C undo the current Operation =cancelCTRL + D logout command (the current row has no
1. Multi-line Comment: 1. First press ESC to enter command line mode, press CTRL + V to enter the column (also known as block) mode; 2. Use the upper and lower keys at the beginning of the line to select multiple lines needing comments; 3. Press
(articles are extracted from other places and summarized, if there is infringement, please contact the Administrator)
Vim Editor---Bulk comments and anti-annotations
When writing code using VIM, it is often necessary to use bulk
Python's syntax is very concise, so programs written in Python are readable and easy to understand. This chapter describes the basic syntax and concepts of Python.python file Types1, source code. Python's source code extension ends with a py, can be
Python is an interpreted language in which programs do not need to be compiled, translated into machine language at run time, translated once per execution, and therefore less efficientPython installation will bring a idle (such as 2-1), that is,
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.