与Linux终端相比,double和single large有什么区别? [英] What is the difference between double and single bigger than in linux terminal

查看:77
本文介绍了与Linux终端相比,double和single large有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux中,>"和">>"之间有什么区别,我知道这与重定向有关,但不确定到底有什么区别

what is the difference between " > " and ">>" in linux i know it has to do with redirection but not sure what is exactly the difference

示例: ls> a.txt ls >> a.txt

example: ls > a.txt ls >> a.txt

推荐答案

您将在手册实际上,>用于将stdout重定向到文件,该文件将重写整个文件. >>用于将stdout输出追加到最后一行.

Actualy, > is for stdout redirection to file, which is rewrite entire file. >> is for append stdout output to the last line.

这篇关于与Linux终端相比,double和single large有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆