ls
List files in a directory
Usage: ls options [list-of-files-or-directories]
Standard Input: Not used
Standard Output: Used to display results
Note
If no directory is specified, ls lists your current directory.
SEE ALSO
For more information, see page 180 |
Useful options:
-a means show all files, hidden, nonhidden, and dot-dot (..).
-b means show any control characters in filenames.
-c means if long format, show date and time inode was last changed.
-C means list output in columns.
-d means show any directory names rather than the contents of those directories.
-F means show the file type by adding slash (/) to directories, asterisk (*) to executables, ...
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.