Tuesday, June 17, 2008

ls

Use ls to see what files you have. Your files are kept in something called a directory.

   % ls
foo letter2
foobar letter3
letter1 maple-assignment1
%

Note that you have six files. There are some useful variants of the ls command:

   % ls l*
letter1 letter2 letter3
%

Note what happened: all the files whose name begins with "l" are listed. The asterisk (*) is the " wildcard" character. It matches any string.

No comments: