1. Download Sphinx Source Packagehttp://sphinxsearch.com/downloads/current/Copy link address in Xshell terminal use: wget http://sphinxsearch.com/files/sphinx-2.3.1-beta.tar.gz Note: It is generally downloaded to the/USR/LOCAL/SRC directory (I
First, the service side settingsI am using virtual machine to simulate the virtual environment, the server, the client's operating system RHEL6.11, first determine whether to install NFS packet rpm-qa|grep nfs-utils command to view.If not installed,
Clear Clear ScreenVI Edit an existing file, create a new file and edit itLS view folders and files under the current pathLs-l//ll More informationCD switch path single CD default back to root pathPWD View current pathRM-RFV Delete command-rfv-r
The difference and function of various documents:1, for. so filesThe. So file is a dynamic link library for the user layer that is used for dynamic linking of the user layer, and the kernel-state code is also not directly accessible.2. For. ko files.
1. Restart LinuxRestart: Reboot, init 6, Shutdown-r nowShutdown: Init 0, Poweroff2. Press the arrow key when the following screen appears at the moment of reboot. and select the first one. and press E, the following interface appears.3. This
WHOAMI View Current Usersudo adduser user name add userSU User name Switch usersudo adduser lilei Create userGroups Lilei viewing user groups to which users belongsudo usermod-g root lilei gives root privilegessudo deluser lilei--remove-homeLs-l
Shutdown command to safely shut down the system. It is dangerous for some users to turn Linux off using a direct power-off. Because Linux, unlike Windows, runs many processes in the background, forcing a shutdown can cause data loss to the process,
Fifth chapter--text editor vimI. VIM common operation 1.Vim Introduction: Vim is a powerful full-screen text editor, the most commonly used text editor on Linux/unix, it is to create, edit, display text files. Vim has no menu, only commands.
The OD (octal dump) and XD (hexdump) commands can display files or streams in decimal, octal, hexadecimal, and ASCII code, they are useful for accessing or visually checking characters in files that cannot be directly displayed on the
Linux Shell PWD displays the current path
If test. cpp exists
G ++ test. cpp-o Test
./Test
To find the current execution in TestProgramPath
You can use the readlink function in test. cpp.
For details, see the following example:
# Include #
Linux (UBUNTU) is installed on a virtual machine in windows. Copying the (File) folder from Linux to Windows may cause garbled characters, but it seems that
The compressed file .zipw.tar. rar generated under linuxis unzipped when the file name
Find is a commonly used Linux Command, but we generally look for it not only, but also further operations. At this time, the role of exec becomes apparent.
Example:
Find./-name "*. txt"-exec LS-L "{}"/;
Find the TXT file of the current
You can enable the process monitoring statistics function when you find that the server has encountered an exception recently.
The information is written to/var/account/pacct and/var/account/Acct.
The description is as follows:
1 startup:
Linux Shell PWD displays the current path
If test. cpp exists
G ++ test. cpp-o Test
./Test
To find the path of the current execution program in Test
You can use the readlink function in test. cpp.
For details, see the following example:
#
Export: Set custom variables to system environment variables (valid in current shell)
Function Description:Set or display environment variables.
Syntax:Export
[-FNP] [variable name] = [variable setting value]
Note:When executing a program in shell,
1
Command replacement is similar to redirection, but the difference is that command replacement uses the output of one command as the parameter of another command. Common command formats:
Command1 'command2'
The output of command2 is used as the
The following is the complete code for installing Apache in Linux. The system is redhat5.5.Download httpd-2.2.6.tar.bz2 and put httpd-2.2.6.tar.bz2 under/soft.[Root @ localhost ~] # Cd/soft[Root @ localhost soft] # tar jxvf httpd-2.2.6.tar.bz2 //
File lock is one of the most common inter-process synchronization mechanisms in Linux. Compared with sysv semaphores, file locks are easier to use (the trouble of sysv semaphores lies in its key Acquisition Mechanism ).Apue provides a detailed
The drive of a general character device is transformed into a misc device. The MISC device is not as troublesome as a character device. In the future, try to replace the scull. c driver with a misc device.
#include
#include #include #include
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service