The zip command is the standard way to compress files. If you want to compress an entire folder, you must use the -r (recursive) flag to include all subdirectories and files. zip archive-name.zip filename.txt

zip archive-name.zip file1.php file2.html Zip an entire directory: zip -r archive-name.zip foldername/ Zip everything in the current folder: zip -r backup.zip . 3. Extracting a .zip File

Before you can run any commands, you need to access your server using an SSH client like (macOS/Linux) or PuTTY (Windows). Command: ssh username@server_ip_address Example: ssh admin@192.168.1.1 2. Creating a .zip Archive