<commit_before># ls

> List directory contents

- List all files, even hidden

`ls -a`

- Sorting by size

`ls -s`

- List all files with their rights, groups, owner

`ls -ls`

- List all files with a prefix/suffix

`ls {{prefix}}*` or `ls *{{suffix}}`

- Sort files by time

`-t` for last modified
`-U` for date of creation
`-r` reverses the list
`ls -tr`

- List all filenames (one per line) without extra stuff like sizes and dates

`ls -A1`<commit_msg>ls: group similar examples together<commit_after># ls

> List directory contents

- List all files, even hidden

`ls -a`

- List all file names (no extra info)

`ls -A1`

- List all files with their rights, groups, owner

`ls -ls`

- List all files with a prefix/suffix

`ls {{prefix}}*` or `ls *{{suffix}}`

- Sort the results size

`ls -s   # by size`
`ls -t   # by last modified date`
`ls -U   # by creation date`

- Reverse the order of the results

`ls -r`
{'fraction_non_alphanumeric': 0.12104689203925845, 'fraction_numerical': 0.0021810250817884407, 'mean_word_length': 3.135135135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '595189', 'n_tokens_mistral': 332, 'n_tokens_neox': 324, 'n_words': 144}