Understand and Use Essential Tools
What this topic covers
Use the shell to manage files, edit text, and control permissions and links. Work with SSH, redirection, grep, archives, and system documentation to complete common administration tasks.
What is the difference between the > and >> redirection operators in bash?
The > operator overwrites the target file with command output, while >> appends to its end. Use 2> to send only error messages to a file. For example, ls /etc > list.txt replaces list.txt each time, but ls /etc >> list.txt adds to it.