What is the correct syntax for copying multiple files with a filename starting as ‘file’ into another file named as ‘directory_one’?
What is the correct syntax for copying multiple files with a filename starting as ‘file’ into another file named as ‘directory_one’? Correct Answer cp file* directory_one
For copying multiple files with a common starting name such as (file, file001, file.txt, fileone.jpg, file-archive.zip) we use (“*”). An asterisk (“*”) is a wildcard – a special character which expands to match other characters. For example, cp file* directory_one will copy all the files whose name will be starting with ‘file’ into ‘directory_one’ file.
মোঃ আরিফুল ইসলাম
Feb 20, 2025