Outputs the result of ">" to the file on the right. If the file does not exist, it will be created.
$ echo 'Hello World' > ./aaa.txt
$ cp aaa.txt aaa1.txt
$ rm aaa.txt
$ cat aaa1.txt
Execution result,,,
Hello World
I use sudo because some files may not be viewable without administrator privileges.
$ sudo find aaa1.txt
Execution result,,,
aaa1.txt
You may search for "control + f", which is similar.
$ grep He aaa1.txt
Execution result,,,
Hello World
Recommended Posts