Question: linux how to copy a file to root directory?
Answer: The 'cp' command works by specifying a source followed by the destination. For example, say we want to copy the /tmp/test file to /root, this would be done as follows. This will copy the source file at /tmp/test to the directory /root/test.