How to execute system commands in php, and how to execute system commands in php
This article describes how to execute system commands in php. Share it with you for your reference. The specific analysis is as follows:
Execute system commands in php, such as LS
I hope this article will help you with php programming
Reading Notes-Common commands for online log analysis and Common commands for log analysis
From large-scale distributed website architecture design and practice 4.1 online Log Analysis
1. Basic commands
Operation
Command
Description
View File Content
Cat-n access. log
-N: display the row number
Display files by PAGE
More
2. Common Linux operation commands (1) and linux operation commands
BASH: It is the GNU Bourne Again Shell, which is the default Shell on the GNU operating system.
Bourne Shell: Shell developed by Bell lab.
Korn Shell: It is the development of the Bourne Shell and is compatible with the Bourne Shell in most aspects.
C Shell: It is SUN Shell's BSD version.
Command Format:
Command name option parameter 1 par
Notes on common SVN commands and common svn commands1. checkout the file to the local directory.Svn checkout path (path is the directory on the server)Example: svn checkout svn: // 192.168.1.1/pro/domainAbbreviation: svn co2. Add new files to the version LibrarySvn add fileExample: svn add test. php (add test. php)Svn add *. php (add all php files in the current directory)3. Submit the modified file to the version library.Svn commit-m "LogMessage" [-N
Common Git commands and git commands
This article is in the study of the summary, welcome to reprint but please note the Source: http://blog.csdn.net/pistolove/article/details/47315569
Recently, I have been studying common git commands and basic operations. The following describes some websites and common git commands
The linux cd command is one of the two commands with the highest usage in Linux. The other is ls, of course ), I have never known the tips for seeing a linux cd command two days ago.
Cd-# Go Back To The Last directory. I didn't know this technique. It seems to be useful and I have omitted a lot of input.
Cd! $ # Input the parameters of the previous command.
Cd # return to the home directory
Cd ~ # Return to the home directory
The following is a cohere
Introduction to awk commands and awk commands
Awk is a powerful text analysis tool. Compared with grep search and sed editing, awk is particularly powerful in data analysis and report generation. To put it simply, awk refers to reading files row by row. Each line is sliced with spaces as the default separator, and the cut part is analyzed and processed.
Awk has three different versions: awk, nawk, and gawk
Common Linux commands and common Linux commands
If some commands are not commonly used, you can't remember them. Every time you use them, you need to query them. Here we record some commands:
(1) tar
Decompress:
Tar-xvzf filename.tar.gz unzip filename.tar.gz to the current folder-C you can specify the decompressed dire
Linux screen commands and screen commands
I. background
The system administrator often needs to remotely log on to the Linux server through SSH or telent, and often runs tasks that take a long time to complete, such as system backup and ftp transmission. Generally, we open a remote terminal window for each of these tasks because they have been executed for too long. You must wait until they are completed. D
Basic but practical: Summary of common LNMP commands and common lnmp commands
1. modify directory permissions[Root @ localhost ~] # Chmod 777/home/user Note: only set the permission of the/home/user directory to rwxrwxrwx.[Root @ localhost ~] # Chmod-R 777/home/user Note: Set the permissions of the entire/home/user directory and its files and subdirectories to rwxrwxrwx.2. delete a fileDelete a folder insta
Summary of Common commands in Ubuntu and summary of Common commands in ubuntu
Summary: The commands in this article are incomplete. It is only necessary for LZ to record the frequently used commands in Linux.
History display command history
Ctrl + R Enter command auto-completion Mode
Tree file: displays all files
into slices for ease of Management/Etc/profild // set the global valid variable, permanently validExport dfsf = dfsf // It takes effect only after cancellationSource/etc/profile // repeat the profile to take effect immediately. It is not recommendedLocal variable :~ /. Bash_profile ,~ /. Bashrc ~ /. Bash_logout is only valid for the current userProfile class:1. Set Environment Variables2. Run some commands to be executed during user logon.Bashrc clas
1.which commandWhen entering a Linux command, the shell actually executes the same name command in which directory, we are not known, can be verified using which.2.whereis commandA command similar to which, Whereis is used to retrieve the file associated with a given command.3.apropos commandUse the apropos command to retrieve commands using the keyword. Apropos will use the keyword provided to retrieve the command summary section of all command book
administrators
9
Files related to Kernel
② whatis [command name] or apropros [profile name] is available when viewing brief information about a command(3) Application examples:① help information for the LS command: #man ls② View the Help information for profile services: $man Services (note that you only need to configure the file name, no absolute path is required/etc/services)4.2 get help with Shell built-in commands:(
redirectionStandard input: Code 0, using Standard output: Code 1, using > or >>Standard error Output: Code 2, using 2> or 2>>1>: Output the correct data to the specified file or device in an overriding way1>>: Output the correct data to the specified file or device in an additive way2>: outputting the wrong data to the specified file or device in an overridden manner2>>: The incorrect data is output to the specified file or device in an additive way4. The judgment basis of the command execution
File management commands for Linux commands CP, MV, RMCP, copy command: Copying files or directoriesGrammar:CP [OPTION] ... [-T] SOURCE DESTCP [OPTION] ... SOURCE ... DIRECTORYCP [OPTION] ...-t DIRECTORY SOURCE ... CP SRC DEST:SRC is a file: If Dest does not exist: Creates a new target file and copies the SRC to the target file; if dest exists: If Dest is a file: Use src content to overwrite the dest file;
1. Format description"[email protected] Simon" $"[Email protected] ~" $Both of these methods represent the same. Simon is the specified user, localhost is the computer name, if not set to localhost by default. Simon, ~ refers to the directory where you are currently located.Terminal: Command interpreter, simulation shell2, the user's switchsu[options] [user]such as: Su-rootThe example uses the SU command to change a normal user to the root user and use the option "-" to carry the root environmen
software is difficult to uninstall, but also to prevent the application of other software, you can use this, but a bit risky.Apt-get AutoClean Apt will back up the installed or unloaded software on the hard drive, so if you need space, you can let this command to delete the software you have deletedApt-get Clean This command will also remove the backup of the installed software, but this will not affect the use of the software.Apt-get upgrade--Update all installed packagesApt-get dist-upgrade--
configuration file)dpkg--force-all--purge PackageName Some software is difficult to uninstall, but also to prevent the application of other software, you can use this, but a bit risky.Apt-get AutoClean Apt will back up the installed or unloaded software on the hard drive, so if you need space, you can let this command to delete the software you have deletedApt-get Clean This command will also remove the backup of the installed software, but this will not affect the use of the software.Apt-get u
Shell Special Symbols
* Any of any characters
? Any one character
# comment Characters
\ de-Semantic characters
| Pipe character
$ variable prefix,!$ combination, regular inside means end of line
; Multiple commands written to one line, separated by semicolons
~ User home directory, followed by regular expression to indicate match
put the command behind the command and throw it backstage.
> >> 2> 2>> >
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.