Complete reference for all MXSH built-in commands.
Display comprehensive help information including all available commands, shell prefixes, and environment variable operations.
Usage:
help
h
?
/?Output:
- List of all built-in commands with descriptions
- Shell prefix syntax
- Environment variable command reference
- Link to documentation
Example:
helpInitialize MXSH by creating the configuration directory structure and setting up your OpenAI API key.
Usage:
initBehavior:
- Creates
.mxshdirectory in your home folder - Prompts for OpenAI API key
- Encrypts and stores the API key
- Sets up default configuration
First-Time Setup:
mxsh initYou'll be prompted:
Enter your OpenAI API key:
Notes:
- Run this command before using AI-powered features
- The API key is encrypted using machine-specific data
- Rerun
initto update your API key
Display information about the current user and operating system.
Usage:
whoamiOutput:
- Current username
- Operating system name and version
Example:
whoamiOutput:
User: john
OS: Linux
Interactive model selection interface for choosing which OpenAI model MXSH uses for command analysis.
Usage:
modelsAvailable Models:
- GPT-5.2 Pro
- GPT-5.2
- GPT-5
- GPT-5 Mini (Auto Resizer disabled)
- GPT-5 Nano (Auto Resizer disabled)
- GPT-4.1
Selection Process:
- Displays current model
- Lists available options
- Prompts for selection
- Saves choice to configuration
Example:
modelsOutput:
Current model: GPT-5
Available models:
1. GPT-5.2 Pro
2. GPT-5.2
3. GPT-5
4. GPT-5 Mini
5. GPT-5 Nano
6. GPT-4.1
Select a model (1-6):
Configure the default shell used for command execution.
Usage:
shellsBehavior:
- Displays current default shell
- Lists available shells for your platform
- Prompts for selection
- Saves configuration
Platform-Specific Options:
Windows:
- PowerShell
- CMD
- Bash (if WSL installed)
Linux:
- Bash
- Zsh
- Fish
- Sh
macOS:
- Zsh
- Bash
Example:
shellsOutput:
Current shell: Bash
Available shells:
1. Bash
2. Zsh
3. PowerShell
Select a shell (1-3):
Display the top 10 processes sorted by CPU usage.
Usage:
cpuOutput:
- Process name
- CPU usage percentage
- Memory usage
- Process ID (PID)
Example:
cpuOutput:
Top 10 processes by CPU usage:
1. chrome (23456) - CPU: 45.2% - Mem: 1.2 GB
2. node (34567) - CPU: 23.1% - Mem: 512 MB
3. code (45678) - CPU: 12.8% - Mem: 890 MB
...
Notes:
- Information refreshes based on current system state
- Useful for identifying resource-intensive processes
Change the current working directory with enhanced features.
Usage:
cd [path]
cd # Navigate to home directory
cd - # Return to previous directorySupported Path Formats:
- Absolute paths:
/usr/local/bin - Relative paths:
../other-folder - Tilde expansion:
~/projects - Previous directory:
-
Examples:
Navigate to home:
cd
cd ~Relative navigation:
cd ../parent-folder
cd ./subfolderPrevious directory:
cd /tmp
cd ~/projects
cd - # Returns to /tmpNotes:
- The
-option maintains a history of the last directory - Tilde expansion works on all platforms
- Invalid paths display an error message
Manage encrypted environment variables.
Usage:
env # List all variables
env save <name> # Save a new variable
env remove <name> # Remove a variable
env export <name|*> # Export to encrypted file
env import <file> # Import from encrypted fileList all saved environment variable names.
Example:
envOutput:
Stored environment variables:
- DATABASE_URL
- API_TOKEN
- SECRET_KEY
Save a new encrypted environment variable.
Usage:
env save VARIABLE_NAMEBehavior:
- Prompts for the variable value
- Encrypts the value
- Stores in MXSH configuration
Example:
env save DATABASE_URLPrompt:
Enter value for DATABASE_URL:
[input hidden]
Variable saved successfully.
Delete a stored environment variable.
Usage:
env remove VARIABLE_NAMEExample:
env remove OLD_TOKENOutput:
Variable OLD_TOKEN removed successfully.
Export encrypted variables to a .mxenv file.
Usage:
env export VARIABLE_NAME # Export single variable
env export * # Export all variablesExample:
env export DATABASE_URLOutput:
Variable DATABASE_URL exported to DATABASE_URL.mxenv
Export all:
env export *Output:
All variables exported to environment.mxenv
Notes:
- Export files use the same encryption as internal storage
- Files can be imported on other machines with the correct password
- Useful for backup or sharing configurations
Import encrypted variables from a .mxenv file.
Usage:
env import <filename>Example:
env import backup.mxenvPrompt:
Enter password for encrypted file:
[input hidden]
3 variables imported successfully.
Notes:
- Password must match the one used during export
- Existing variables with the same name are overwritten
- Import validation ensures file integrity
Display project contributors and acknowledgments.
Usage:
credit
creditsOutput:
- Project contributors
- Acknowledgments
- License information
Example:
creditClear the terminal screen and redisplay the MXSH message of the day (MOTD).
Usage:
clear
newBehavior:
- Clears the terminal display
- Shows MXSH banner
- Displays system information
- Resets to a clean prompt
Example:
clearExit the MXSH shell and return to the parent shell.
Usage:
exit
quit
q
:qExample:
exitOutput:
Goodbye!
Notes:
- All variants perform the same function
:qprovided for Vim users- Unsaved work in the current shell session will be lost
Execute commands in specific shells regardless of your default configuration.
Execute command in PowerShell.
Usage:
$: <powershell-command>Example:
$: Get-Process
$: Get-ChildItem -RecurseExecute command in Bash.
Usage:
#: <bash-command>Example:
#: ls -la
#: grep -r "pattern" .Execute command in Windows Command Prompt.
Usage:
>: <cmd-command>Example:
>: dir /w
>: ipconfig /allBypass AI-powered security analysis for the command.
Usage:
<command> --skip-ai-checkExample:
rm -rf temp/ --skip-ai-checkWarning:
- Disables primary security mechanism
- Command executes without risk assessment
- Use only for trusted operations
- You will be prompted for confirmation
Bypass DNS-based security validation for download commands.
Usage:
<curl|wget-command> --skip-dns-checkExample:
curl http://internal-server/script.sh --skip-dns-checkWarning:
- Allows downloads from potentially malicious sources
- Bypasses domain reputation checking
- Use only for trusted private or internal resources
- You will be prompted for confirmation
The following commands execute immediately without AI analysis when used with only option flags:
Directory Operations:
ls,dir: List directory contents
System Information:
pwd: Print working directoryhostname: System hostnamewhoami: Current userdate,time: Date and time information
File Reading:
cat: Display file contentshead: Display file beginningtail: Display file endtype: Display file (Windows)
Utilities:
echo: Print textwc: Word counttree: Directory structure
Version Control:
git: All git commands (fully whitelisted)
Notes:
- Whitelisted commands with file/directory arguments undergo security analysis
- Only option flags (starting with
-) bypass analysis - Presence of dangerous patterns (pipes, redirects) triggers analysis