Here is a text file containing human genetics data:
http://svn.software-carpentry.org/swc/data/1000gp.vcf
If you had forgotten where you downloaded the file, how would you locate the path of all files with that name on the computer (using the shell)?
Answer
The find command used to find the files.To locate the path of given file we can use the command ,
$ find / -name "1000gp.vcf"
Here the system would search for any file named 1000gp.vcf
on the root and all sub-directories from the root.
If we are giving the command, $ find -name "1000gp.vcf"
the system would search for any file named 1000gp.vcf
in the current directory and any sub-directory only.
No comments:
Post a Comment