I figure there has to be a way of making ls only display non-directories, but the man page doesn't make it obvious
I've been trying to find the difference between using the dir
and ls
commands in terminal. I know ls
is the traditional UNIX method of viewing the files in a directory, and that dir
is the windows command prompt equivalent, but both commands work in terminal.
If I type in dir
, it displays the files and folders in the directory, and if I type ls
, it does the same, except with content highlighting. Both commands accept options (i.e. ls -a
and dir -a
both return all files and folders and hidden files.
So does anyone know what the difference is and why both dir
and ls
are used?
What is the equivalent option for the ls
command to activate pagination as in DOS the dir /p
does?
What do the different colours in Ubuntu's ls
command mean? For example, when I type the ls
command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting.
What do those colours mean, and there is any manual about all the colours?
For a task of mine I need to list all the files in a tree (a directory, all its subdirs, all subdirs of those, etc.).
I'd prefer to see them in Nautilus or Krusader, but a command-line solution is interesting as well (in this case I will need files full names, sizes and modification times to be listed).