Linux Basics

27 / 107

Copy files of a particular extension

We can also copy all files of a particular extension to a directory by replacing source-name with *.extension.

  1. Type cd ~ command to go to your home directory

  2. Create a directory z/y/x

  3. Copy all the files with extension .txt inside the directory x

Note - Make sure that the files myemptyfile.txt, myfirstfile.txt and myfirstfile_copy.txt created in the previous exercises still exist.

Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...