Home >Operation and Maintenance >Linux Operation and Maintenance >What does >> mean in linux
What does >> mean in Linux?
>> means appending the output content into the target file. If the file does not exist, the file is created; if the file exists, the new content is appended to the end of that file, and the original content in the file is not affected.
It is different from >:
> is directed output to a file. If the file does not exist, create the file; if the file exists, clear it; generally we back up When cleaning log files, this is the method: back up the log first, and then use `>` to clear the log file (the file size becomes 0 bytes);
Recommendation: linux basic tutorial
Linux is a free-to-use and freely disseminated Unix-like operating system. It is a multi-user, multi-task, multi-thread and multi-CPU operating system based on POSIX and UNIX. 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.
The above is the detailed content of What does >> mean in linux. For more information, please follow other related articles on the PHP Chinese website!