Skip to content

File Operations

f + {scope} + {operation} + {type}

Where {type} is f (file) or d (directory).

OperationDescription
rmRemove (delete)
mvMove to a different location
cpCopy to a different location
rnRename in place
Operationcwd (c)repo (r)global (g)
Remove filefcrmffrrmffgrmf
Remove directoryfcrmdfrrmdfgrmd
Move filefcmvffrmvffgmvf
Move directoryfcmvdfrmvdfgmvd
Copy filefccpffrcpffgcpf
Copy directoryfccpdfrcpdfgcpd
Rename filefcrnffrrnffgrnf
Rename directoryfcrndfrrndfgrnd

File operations also support extension suffixes for file types (not directories):

Terminal window
fcrmfmd # remove markdown file in cwd
frcpfjs # copy JavaScript file in repo
fgmvfts # move TypeScript file globally
fcrnfsh # rename shell script in cwd

See Extension-Filtered Commands for the full list of supported extensions.

3 scopes × 8 operations (4 operations × 2 types) = 24 file operation commands

Plus 3 scopes × 10 extensions × 4 file operations = 120 extension-filtered operation commands (included in the extension total).