##linux The difference between >> and >
>> and> They all belong to output redirection, and can output content to the specified file.
1, The difference between >> and >:
> will cover the target of the original content. When the file exists, the original file will be deleted first, then the file will be re-created, and then the content will be written to the file; otherwise, the file will be created directly.
>> will append content after the original content of the target. When the file exists, the content is appended directly to the end of the file without deleting the original file; otherwise, the file is created directly.
Recommended: "
1inux System Tutorial"
Linux is a set of Unix-like operating systems that are free to use and freely disseminated. It is a system based on POSIX and Unix. A multi-user, multi-tasking, multi-threading and multi-CPU operating system. It can run major Unix software tools, applications and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits the network-centric design philosophy of Unix and is a multi-user network operating system with stable performance.
Linux advantages:
1. Linux is composed of many microkernels, and its source code is completely open source;
2. Linux inherits the characteristics of Unix and has a very powerful network Function, it supports all Internet protocols, including TCP/IPv4, TCP/IPv6 and link layer topology programs, etc., and can use the network characteristics of Unix to develop new protocol stacks;
3, Linux system The tool chain is complete, and a suitable development environment can be configured with simple operations, which can simplify the development process, reduce obstacles to simulation tools in development, and make the system highly portable;
The above is the detailed content of The difference between linux >> and >. For more information, please follow other related articles on the PHP Chinese website!