ls command

1,583 views
Skip to first unread message

Lori

unread,
Aug 2, 2012, 2:40:31 PM8/2/12
to qiime...@googlegroups.com
Can someone please explain to me how to use the ls command?  I'm following the tutorial at http://www.wernerlab.org/teaching/qiime/overview and on the first page it briefly gives an example of 

ls -lh

I can get that one to work, but I don't know how to view other directories using the ls command.  Can someone please explain this to me, and perhaps give me some other examples?  Thank you!

Will Van Treuren

unread,
Aug 2, 2012, 2:52:09 PM8/2/12
to qiime...@googlegroups.com
Hi Lori,

There are two ways to view the contents of other directories with ls.
You can change directories with cd to the directory of interest and then call ls there.
example: 
cd path/to/directory/you/want/
ls

or

You can call ls path/to/directory/you/want
example: ls path/to/directory/you/want/


If you want more information on ls, you can (in another terminal) type:
man ls

Finally you may find this link useful (courtesy of Yoshiki):

Hope this helps,
Will 

--
 
 
 

Reply all
Reply to author
Forward
0 new messages