linux reload directory code example Example 1: linux zip a directory zip -r filename.zip /path/to/folder1 Example 2: copy folder linux cp -R dir1 dir2