What does >> mean in linux

angryTom
Release: 2019-11-07 13:55:06
Original
10627 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template