The command to list the contents of a folder/directory in Unix and Unix-like systems.

learn more… | top users | synonyms

0
votes
4answers
233 views

How can I do `ls` on a dotfile?

ls on a dotfile My directory contains: $ ls -A .dotfile20091021 file20091020 file20091021 I want to list ALL files containing 20091021 in their name. If I run: $ ls -A *20091021* ...
2
votes
2answers
1k views

How to change the default --color preference for "ls' on Windows?

I'm using ls (from Msys) on Windows. By default, ls doesn't colour-code directories and archives, but that's something I want. I'm tired of typing "ls -C" and "ls --color". Is there any way apart from ...
0
votes
6answers
4k views

Linux: list contents of sub directories with given name?

I'm using linux to analyze a windows directory structure. The structure is: /Documents and settings /username1 /My Documents ... /username2 /My Documents ... ... What command ...
4
votes
6answers
3k views

Listing everything else than *{.tex, .aux} by ls

How can you ls everything else the the files *{.tex, .aux}? I run unsuccessfully ls -I".tex"
9
votes
0answers
9k views

what is the @ after the permissions for in ls -l on a mac? [duplicate]

Possible Duplicate: ls -la symbolics… what does that last symbol mean? Consider the following output from ls -l on OS X 10.5.8 drwxr-xr-x 3 user staff 102 Aug 26 20:21 ...
447
votes
7answers
287k views

How can I sort the output of 'ls' by last modified date?

How can I sort the output of ls by last modified date?