|
| 1 | +# Accessing Files |
| 2 | + |
| 3 | +> `cd <DIRECTORY>` |
| 4 | +> Change the working directory (in REPL) |
| 5 | +> 🠊 `<DIRECTORY>` Directory to navigate into (supports "..") |
| 6 | +
|
| 7 | +> `ls [DIRECTORY]` |
| 8 | +> List files in a directory |
| 9 | +> 🠊 `[DIRECTORY]` Directory to list files in (default: the current working directory) |
| 10 | +
|
| 11 | +> `cat <FILE>` |
| 12 | +> Print the contents of a file |
| 13 | +> 🠊 `<FILE>` File to print |
| 14 | +
|
| 15 | +> `head [OPTIONS] <FILE>` |
| 16 | +> Print the first lines of a file |
| 17 | +> 🠊 `<FILE>` File to print |
| 18 | +> 🠊 `-n, --lines <LINES>` Number of lines to print [default: 10] |
| 19 | +
|
| 20 | +> `tail [OPTIONS] <FILE>` |
| 21 | +> Print the last lines of a file |
| 22 | +> 🠊 `<FILE>` File to print |
| 23 | +> 🠊 `-n, --lines <LINES>` Number of lines to print [default: 10] |
| 24 | +
|
| 25 | +> `stat <FILE_OR_DIRECTORY>` |
| 26 | +> Show information about a file, a directory or the Filen drive |
| 27 | +> 🠊 `<FILE_OR_DIRECTORY>` File or directory to show information about ("/" for the Filen drive) |
| 28 | +
|
| 29 | +> `mkdir <DIRECTORY>` |
| 30 | +> Create a new directory |
| 31 | +> 🠊 `<DIRECTORY>` Directory to create |
| 32 | +
|
| 33 | +> `rm [OPTIONS] <FILE_OR_DIRECTORY>` |
| 34 | +> Remove a file or directory |
| 35 | +> 🠊 `<FILE_OR_DIRECTORY>` File or directory to remove |
| 36 | +> 🠊 `-p, --permanent` Permanently delete the file or directory (default: move to trash) |
| 37 | +
|
| 38 | +> `mv <SOURCE> <DESTINATION>` |
| 39 | +> Move a file or directory |
| 40 | +> 🠊 `<SOURCE>` Source file or directory |
| 41 | +> 🠊 `<DESTINATION>` Destination parent directory |
| 42 | +
|
| 43 | +> `cp <SOURCE> <DESTINATION>` |
| 44 | +> Copy a file or directory |
| 45 | +> 🠊 `<SOURCE>` Source file or directory |
| 46 | +> 🠊 `<DESTINATION>` Destination parent directory |
| 47 | +
|
| 48 | +> `favorite <FILE_OR_DIRECTORY>` |
| 49 | +> Favorite a file or directory |
| 50 | +> 🠊 `<FILE_OR_DIRECTORY>` File or directory to favorite |
| 51 | +
|
| 52 | +> `unfavorite <FILE_OR_DIRECTORY>` |
| 53 | +> Unfavorite a file or directory |
| 54 | +> 🠊 `<FILE_OR_DIRECTORY>` File or directory to unfavorite |
| 55 | +
|
| 56 | +> `list-trash` |
| 57 | +> List trashed items with option to restore or permanently delete them |
| 58 | +
|
| 59 | +> `empty-trash` |
| 60 | +> Permanently delete all trashed items |
0 commit comments