" will overwrite the original content of the target and delete the original content; 2. ">>" will append content after the original content of the target and delete the original content. No modifications will be made."/> " will overwrite the original content of the target and delete the original content; 2. ">>" will append content after the original content of the target and delete the original content. No modifications will be made.">
Home >Operation and Maintenance >Linux Operation and Maintenance >The difference between linux >> and >
##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"
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!