> Im in terminal mode in Ubuntu. wc NC002.gbk > dnaCount.txt will this write the words,lines, bytes into a text file ca

Im in terminal mode in Ubuntu. wc NC002.gbk > dnaCount.txt will this write the words,lines, bytes into a text file ca

Posted at: 2014-12-18 
You can use the cd command, but if the file you are counting is not in the directory where you want to put the count, you can include the directory name in the command. For example:

wc NC002.gbk > dna/dnaCount.txt

It will put the output of wc (word count) into the file dnaCount.txt