Repository navigation
Built‐in Commands
Geekstrange edited this page Aug 31, 2026
·
1 revision
dpshell provides 50+ built-in commands organized by category.
| Command | Description |
|---|---|
cd |
Change directory (supports cd ? and cd ?? interactive modes) |
pwd |
Print working directory |
pushd |
Push directory onto stack |
popd |
Pop directory from stack |
dirs |
Display directory stack |
| Command | Description |
|---|---|
export |
Set environment variables |
unset |
Remove variables |
readonly |
Mark variables as read-only |
local |
Declare function-local variables |
declare / typeset
|
Declare variables with attributes |
let |
Evaluate arithmetic expressions |
set |
Set/unset shell options and positional parameters |
| Command | Description |
|---|---|
echo |
Print arguments to stdout |
printf |
Formatted output |
read |
Read input with multi-variable word splitting |
mapfile / readarray
|
Read lines into an array variable |
| Command | Description |
|---|---|
break |
Exit from a loop |
continue |
Skip to next loop iteration |
return |
Return from a function |
shift |
Shift positional parameters |
exit / logout
|
Exit the shell |
trap |
Set signal handlers |
wait |
Wait for background processes |
| Command | Description |
|---|---|
jobs |
List background/stopped jobs |
fg |
Bring job to foreground |
bg |
Resume job in background |
kill |
Send signals to processes |
suspend |
Suspend the shell |
| Command | Description |
|---|---|
alias / unalias
|
Define/remove command aliases |
history |
Display command history |
source / .
|
Execute commands from a file in the current shell |
eval |
Evaluate a string as a command |
exec |
Replace shell with command |
command |
Run command bypassing functions |
builtin |
Run a builtin bypassing functions |
type |
Show how a command name would be interpreted |
help |
Display help for builtins |
hash |
Manage the command hash table |
enable |
Enable/disable builtins |
| Command | Description |
|---|---|
test / [
|
Evaluate conditional expressions |
true |
Return success (exit 0) |
false |
Return failure (exit 1) |
| Command | Description |
|---|---|
shopt |
Set/unset shell options |
ulimit |
Get/set resource limits |
umask |
Set file creation mask |
times |
Print accumulated user and system times |
caller |
Return the context of the current subroutine call |
fc |
Fix command — list/edit/re-execute history entries |
getopts |
Parse positional parameters |
complete / compgen / compopt
|
Programmable completion control |
bind |
Display/modify key bindings |
| Command | Description |
|---|---|
: |
No-op (always returns 0) |