D
D
DjimiDjimi2018-09-07 21:13:12
linux
DjimiDjimi, 2018-09-07 21:13:12

What is the difference between > and >> on linux systems?

Basically the question has been asked. What is the difference between > and >> on linux systems? Basically when using redirect output to a file. For example
uname -a > ~/file.log
and
uname -a >> ~/file.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Teslaman, 2018-09-07
@DjimiDjimi

> creates a new file on each call (overwriting).
>> When called, appends to the file without overwriting it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question