Search code examples
fileunixlsmanpage

Using the man command in Unix, I want to list file names with file size etc.


By using the man command I want to list the names of the files I have already created with extra information such as filesize, date of modification etc.

I know I have to use the man command possibly something like:

man ls | documents

But this would not seem to work. If anyone would know how to do this that would be great? Any help would be much appreciated.


Solution

  • You use man to read the contents of the manual, not list files.

    Use ls to list your files.

    Use ls -l to list files with extra information.

    Use ls -la to list all files (including hidden) with extra information.