My Cmdl Cheatsheet

fd

Search the current directory for all directories whose names contain the letter ’t'

$ fd -d 1 -t d '.*t.*'
DataLab
PythonLab
RustLab
  • -d 1 means the max depth is 1, which is equivalent to the current directory.
  • -t d means to only include entries of directory type.

Search against file full path

$ fd -p -i '.*pythonlab.*\.py$'
PythonLab/Scripts/lab.py

Search by file size

$ fd -l -S +800K '.*\.py$'
-rw-rw-r-- 2 chsu chsu 841K Nov  6  2025 ./AILab/Env/lib/python3.14/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py
-rw-rw-r-- 2 chsu chsu 841K Jul  7 00:15 ./DuckDBLab/env/lib/python3.14/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py
  • -S +/-<size> can specify a file size greater or smaller than <size>.
  • -l shows detailed information about the matching files.

Jupyter Lab

Start Jupyter Lab, listening on port 9523 and allowing traffic from all networks.

jupyter lab --ip=0.0.0.0 --port=9523

Vifm

Basic file operations

  • cw to rename (change word) the file
  • cW to rename the base name of the file
  • dd to delete/cut the file
  • t to toggle selection of the file
  • :filter <regex> to filter out/hide files from the file list
    • :filter! <regex> to keep the files according to the regex

Hide/show hidden files

  • za to toggle hiding/showing hidden files

Preview files

  • w to toggle preview of the current file

Use marks as follows

  • m to mark/label the position
  • ' to go to the marked position

Split/hide windows as follows

  • :only to only show the active window pane
  • vs to vertically split the window
  • sp to horizontally split the window
Built with Hugo
Theme Stack designed by Jimmy