TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/PrinceOfCookies/CookieOS/llms.txt
Use this file to discover all available pages before exploring further.
list and ls commands replace the default CC:Tweaked directory listing with an enhanced version that shows the size of every file and directory inline, lays entries out horizontally across the terminal width, and exposes flags for total-size reporting and attribute inspection. Both commands accept the same arguments and produce the same output; they differ only in their internal implementation.
Basic usage
- Directories are shown in green on an Advanced Computer, or light-gray on a Standard Computer.
- Files are shown in white on both computer types.
- Each entry includes its size in parentheses: e.g.
startup (1.23 KB),loading.lua (456 B). - Read-only entries are wrapped with a
·prefix and suffix (middle dot,\xB7): e.g.·rom· (12.00 KB). - Hidden files — those whose names begin with
.— are not shown by default. Enable them with thelist.show_hiddensetting (see the note below).
Flags
| Flag | Description |
|---|---|
-s | Display the total recursive size of all files in the current directory |
-i | Display fs.attributes2 attributes for the current directory |
-h | Display help text |
<directory> -i | Display fs.attributes2 attributes for a specific directory |
Examples
list vs ls
The two commands are functionally identical from the user’s perspective. Internally:list(programReplacements/list.lua) contains its own localgetDirectorySizeandformatSizehelpers and also loads any aliases found inside subdirectories of/programReplacements/.ls(programReplacements/ls.lua) delegates tocosUtils.getFilesAndDirs()andcosUtils.formatSize()from the globalcosUtilsAPI instead of using local copies.
cc.shell.completion so that directory names are completed automatically when you press Tab.
Hidden files
Hidden files (names starting with
.) are not listed by default. To show them, set the list.show_hidden setting: