Title: The ls Command
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

The ls command will list names of files and directories. With options, it can also list information about the files and directories. If passed a directory name, by default it will list the contents of that directory. There are over 30 options. We will only cover a few.

- -l List a line of information including type of file, permissions, number of links, owner, group, size, date created or last modified, name of file.
- -d If passed a directory name, do not expand to list contents.
- -i Include the inode number associated with the directory.
- -F Add a character to each item to show the type of file.
- -p Adds a slash after directory names.
- -R List the contents of directories and and all sub-directories.
- -a Include all hidden files, that is, all files that start with a dot(.).
- -A Same as -a except . and .. are not listed.