Meta Commands

Basic system and terminal management commands.

Command Alternative Description Example
CLS /C Clear the terminal screen CLS
LC - List all available commands LC
WD <name> Watch Directory - Change to a specific directory WD Documents
LD - List files and directories in current location LD
DD - Dodge (navigate away from) current directory DD
CD - Change drive or directory CD C:\Projects\
EXIT /E Exit the dir2 terminal EXIT

State Commands

Commands for managing the current file state and executing files.

Command Alternative Description Example
SELECT filename FROM directory - Sets specified file as current STATE SELECT script.py FROM C:\Projects\
VIEW STATE VS View the currently selected file in STATE VIEW STATE
DROP STATE DS Drops the current STATE (deselect file) DROP STATE
META STATE MS View metadata of the current STATE file META STATE
RUN STATE RS Execute the file present in current STATE RUN STATE

Favorites Commands

Commands for managing your favorite files and quick access.

Command Description Example
FAV VIEW View all favorites as a numbered list FAV VIEW
FAV RM <index> Remove favorite at specified index FAV RM 3
FAV SET STATE Add current STATE file to favorites FAV SET STATE
RUN FAV <index> Execute favorite file at specified index RUN FAV 1

Search Commands

Commands for finding files and searching the web.

File Search

Command Alternative Description Example
FIND EXACT <query> FE <query> Perform system-wide file search, returns directory list FIND EXACT config.json

Web Search

Command Alternative Description Example
SEARCH GOOGLE <query> S G <query> Perform web search using Google SEARCH GOOGLE rust tutorial
SEARCH DDG <query> S D <query> Perform web search using DuckDuckGo SEARCH DDG privacy tools
SEARCH CHATGPT <query> S C <query> Perform query to ChatGPT SEARCH CHATGPT explain recursion
SEARCH PERPLEXITY <query> S P <query> Perform query to Perplexity AI SEARCH PERPLEXITY latest AI news

Quick Reference

Common command patterns and quick syntax reference.

Essential Commands

Start with these core commands to get familiar with dir2:

LD

List Directory - Shows all files and folders in current directory

SELECT filename FROM path

Select File - Load a file into current state for operations

VIEW STATE

View Current State - Shows currently selected file (short: VS)

RUN STATE

Execute File - Runs the currently selected file (short: RS)

FAV SET STATE

Add to Favorites - Save current file for quick access

FAV VIEW

View Favorites - List all saved favorites with index numbers

RUN FAV 1

Run Favorite - Execute favorite file by index number

FIND EXACT filename

Find File - Search entire system for a file (short: FE)

SEARCH GOOGLE query

Web Search - Search Google from dir2 (short: S G)

Command Categories Summary

⚙️

Meta Commands

CLS, LC, WD, LD, DD, CD, EXIT - System management

📁

State Commands

SELECT, VIEW STATE, RUN STATE - File state management

Favorites

FAV VIEW, FAV SET STATE, RUN FAV - Quick access system

🔍

Search

FIND EXACT, Web search commands - File and web searching

Syntax Rules

Remember:
  • All commands are case-insensitive
  • Use LC to list all available commands
  • SELECT requires filename and directory path
  • Favorites are managed by index numbers
  • Web searches open in your default browser

Common Patterns

Practical workflows showing how commands work together:

Pattern 1: Quick File Execution

SELECT app.exe FROM C:\Tools\

Select Application - Load executable into state

RUN STATE

Execute Immediately - Run the selected application

Pattern 2: Save to Favorites

SELECT backup.py FROM C:\Scripts\

Select Script - Choose a frequently used script

FAV SET STATE

Add to Favorites - Save for quick access later

FAV VIEW

View Favorites - See all saved favorites with index numbers

Pattern 3: Find and Execute

FIND EXACT deploy.bat

Find File - Search entire system for the file

SELECT deploy.bat FROM C:\Found\Path\

Select from Found Location - Load the discovered file

RUN STATE

Execute - Run the found and selected file

Pattern 4: Web Research

SEARCH GOOGLE "rust file management"

Google Search - Research topics in your browser

SEARCH CHATGPT "explain SQL syntax"

ChatGPT Query - Ask AI for explanations and help

Alternative Commands

Full Command Short Form Description
CLS /C Clear screen
EXIT /E Exit terminal
VIEW STATE VS View current state
DROP STATE DS Drop current state
META STATE MS View file metadata
RUN STATE RS Run current state
FIND EXACT FE Find exact file
SEARCH GOOGLE S G Google search
SEARCH DDG S D DuckDuckGo search
SEARCH CHATGPT S C ChatGPT query
SEARCH PERPLEXITY S P Perplexity query