Linux CLI - File and Directory Operations
You want to copy only files (not directories) from
source to dest. Which command achieves this?source to dest. Which command achieves this?cp -r copies directories recursively, cp source/* dest/ copies top-level files but omits directories and hidden files, cp -a copies everything preserving attributes.find source -type f -exec cp {} dest/ \; finds only files and copies them individually.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions