Final answer:
The switches for cp, mv, and rm are commonly used command-line options in Unix-based systems. The '-r' switch is used to copy or move directories and their contents recursively. The '-i' switch is used to prompt for confirmation before deleting files with 'rm'.
Step-by-step explanation:
The switches for cp, mv, and rm are commonly used command-line options in Unix-based systems.
The switch '-r' is used with 'cp' and 'mv' to copy or move directories and their contents recursively. For example, 'cp -r folder1 folder2' will copy all the files and subdirectories from folder1 to folder2.
The switch '-i' is used with 'rm' to prompt for confirmation before deleting each file. For example, 'rm -i file.txt' will ask for confirmation before deleting file.txt.