CFM(1)
π΅ CFM(1) β cactus file manager π΅
β¨ NAME β¨
cfm β cactus file manager. π΅
πΈ SYNOPSIS πΈ
cfm [DIR]
π¦ DESCRIPTION π¦
Okay so cfm is a simple, clean, fast TUI file manager. That's literally the whole vibe, bestie. π
π OPTIONS π
DIRβ the directory to opencfmin, or the working directory if you don't specify one. Easy.
π CONFIGURATION π
For build-time setup, copy config.def.h to config.h and modify it as needed. By default, cfm will attempt to read the EDITOR, SHELL, and OPENER environment variables. If it's preferable for cfm to use a different value for any of these, it can be specified by prepending CFM_ to any of the variables. π οΈ
cfm will also check for the CFM_TMP environment variable for a location for its temp directory. If the variable is not set and CFM_TMP was not set in config.h, it will attempt to use /tmp/cfmtmp.
β οΈ If the temporary directory cannot be created, then cfm will disable cut/paste and deletions will be permanent (no undo). No take-backs, bestie. π
If the CD_ON_CLOSE option is not enabled at compile-time (default off), cfm will also check for the presence of the CFM_CD_ON_CLOSE environment variable, which should contain the path to a file into which it can save its current working directory when quit with Q.
π§ USAGE π§
Note: arrow keys work the same as hjkl.
j,kβ move up/down.PgUp,PgDnβ move up/down by one full screen.h,lβ move left/right.ggβ move to top.Gβ move to bottom.~β move to user home directory./β move to system root directory.lβ open file usingEDITOR, or change into directory.oβ open file or directory withOPENER.RETβ works likeoifENTER_OPENSis enabled, else works likel..β toggles visibility of dotfiles.eβ open file or directory inEDITOR.rβ reload directory.Sβ spawn a shell (defined bySHELL) in a directory.Tβ create a new file, openingEDITORto enter a filename.Mβ create a new directory, openingEDITORto enter a directory name.Rβ rename a file by openingEDITORto edit the filename.
Note: forT,M, andR, the allowed characters default to POSIX "fully portable filename" standards with the addition of spaces:[A-Za-z0-9 ._-]. Spaces can be disabled by settingALLOW_SPACESto0inconfig.h.
ddβ delete current selection (does not touch marked files). This will copy the file/directory into theCFM_TMPdirectory and can be undone withu. If theCFM_TMPdirectory does not exist, deletions will be permanent.alt+ddβ permanently delete current selection (does not touch marked files) without backing up for undo likedddoes. This is useful for large directories where a copy will take a long time.m,Spaceβ toggle mark for deletion.Dβ delete all marked files (does not touch unmarked files).uβ undo the last deletion operation (does not work ifcfmwas unable to create or access its trash directory, in which case deletion is permanent).Xβ cut the selected file or directory (can be pasted again withp). Not available if the tmp directory is not available.yyβ copy the selected file or directory (can be pasted again withp).pβ paste the previously cut or copied file or directory; shared between all views.TABβ switches to the next view.- The
`key β switches to the previous view. 1-0β switches to view N, up to the number specified byVIEW_COUNT(2 by default).q,ESCβ quitcfm.Qβ quitcfm, saving its working directory to the file specified inCD_ON_CLOSE, if enabled, or theCFM_CD_ON_CLOSEenvironment variable if not.
β SCRIPTING β
If stdin or stdout are not attached to a TTY, cfm will read commands from stdin and quit at EOF, skipping all drawing. Any errors are fatal and will be printed to stderr.
π¨ Note that in non-interactive mode, cfm will NOT backup files when deleting. All deletions will be permanent. Periodt.
π AUTHOR π
Will Eccles <will@eccles.dev>. For more information, see https://github.com/willeccles/cfm.
π That's the whole page, bestie β manualCFM(1), dated2020 January 29. Now go slay your files! π΅β¨
π¦ where this page comes from
- nixos 26.05: cfm 0.6.6
- nixpkgs unstable: cfm 0.6.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms