ls
- list the files in the current directory
- ls *.c
- list the files which end ".c"
- ls mydir/
- list the files in directory mydir
- ls -a
- list ALL files, even ones which begin with a dot, which are normally omitted
- ls -s
- list files, with their sizes
- ls -l
- list files, giving full details about each file
- ls -al mydir/
- list all files in directory mydir (including those beginning with a dot), giving full details about each file
No comments:
Post a Comment