Unified commands

Unified commands are available everywhere!

Unified commands are a fixed set of commands that are available in every shell, and are usually not tied to any specific function or component of an application. For example, unified commands like exit, fork, alias, and presets provide useful functions and scripting commands to make your shells more flexible and usable.

Most of the unified commands are hidden, and you can show them using the -hidden switch in the help command. You can learn more about hidden commands here.

Consult the unified commands table below to get the full list of unified commands below:

Command
Usage
Description
Flags

addprefix

[-set=value] [-check] [-verbose] <text> <prefix>

Adds prefix to the string

Hidden

addsuffix

[-set=value] [-check] [-verbose] <text> <suffix>

Adds suffix to the string

Hidden

alias

add <shell> <alias> <cmd>

Adds aliases to commands

None

rem <shell> <alias>

bgcolor

[-set=value] [-plain] [-truevt] [-verbose] <specifier>

Returns a background color sequence

Hidden

chkprefix

[-set=value] [-verbose] <text> <prefix>

Checks the prefix in the string

Hidden

chksuffix

[-set=value] [-verbose] <text> <suffix>

Checks the suffix in the string

Hidden

choice

[-set=value] [-o|-t|-m] [-single|-multiple] <answers> <input> [answertitle1] [answertitle2] ...

Makes user choices

None

cls

Clears the screen

None

consoledimensions

[-set=value]

Returns console dimensions

Hidden

containsallchars

[-set=value] [-verbose] <text> <charseq>

Checks whether the string contains all of characters

Hidden

containsallstrs

[-set=value] [-verbose] <text> <strseq> ...

Checks whether the string contains all of substrings

Hidden

containsanychars

[-set=value] [-verbose] <text> <charseq>

Checks whether the string contains any of characters

Hidden

containsanystrs

[-set=value] [-verbose] <text> <strseq> ...

Checks whether the string contains any of substrings

Hidden

contains

[-ignorecase] [-verbose] <text> <substr>

Checks whether the string contains a substring

Hidden

degrees

[-verbose] <radians:int>

Converts angle in degrees to radians

None

decodebase64

<encoded>

Decodes the text from the BASE64 representation

Hidden

dpi

[-verbose] <pixels:int> <lengthinches:int>

Gets the DPI from pixels

None

pixels

[-verbose] <width:int> <height:int>

Gets the total amount of pixels

None

echo

[-set=value] [-noparse] <text>

Writes text into the console

6

encodebase64

<string>

Encodes the text to a BASE64 representation

Hidden

endswithallchars

[-set=value] [-verbose] <text> <charseq>

Checks whether a string ends with all of characters

Hidden

endswithallstrs

[-set=value] [-verbose] <text> <strseq>

Checks whether a string ends with all of strings

Hidden

endswithanychars

[-set=value] [-verbose] <text> <charseq>

Checks whether a string ends with any of characters

Hidden

endswithanystrs

[-set=value] [-verbose] <text> <strseq>

Checks whether a string ends with any of strings

Hidden

endswith

[-ignorecase] [-verbose] <text> <substr>

Checks whether a string ends with a substring

Hidden

equals

[-ignorecase] [-verbose] <text> <targetstr>

Checks whether a string is equal to another string

Hidden

exec

[-forked] <process> [args]

Executes an external process

None

exit

Exits the shell if running on subshell

None

fgcolor

[-set=value] [-plain] [-truevt] [-verbose] <specifier>

Returns a foreground color sequence

Hidden

findcmds

<search>

Finds the available commands in the current shell type

None

firstnames

[-set=value] [-t] [-male|-female|-both] [term] [nameprefix] [namesuffix]

First name finder

14

genfirstnames

[-set=value] [-male|-female|-both] <firstnamescount:int> [nameprefix] [namesuffix]

Generates first names

14

genlastnames

[-set=value] <surnamescount:int> [surnameprefix] [surnamesuffix]

Generates last names

14

gennames

[-set=value] [-t] [-male|-female|-both] <namescount:int> [nameprefix] [namesuffix] [surnameprefix] [surnamesuffix]

Name and surname generator

14

fork

Forks the MESH shell to create another instance

None

help

[-general] [-alias] [-unified] [-extra] [-all] [-simplified] [-hidden] [-count] [-markdown] [command]

Help page

Wrappable

history

[-set=value]

Returns a list of recent commands

Hidden

if

<MESHExpression> <command>

Executes commands once the MESH expressions are satisfied

None

input

[-set=value] <question>

Allows user to enter input

None

inputpass

[-set=value] <question>

Allows user to enter input as password

None

lastnames

[-set=value] [term] [surnameprefix] [surnamesuffix]

Surname finder

14

lintscript

[-set=value] <script>

Checks a UESH script for syntax errors

None

loadhistories

Loads shell histories

None

lowercase

[-whole|-first] [-verbose] <text>

Lowercases a string

Hidden

lsvars

Lists available UESH variables

6

now

[-set=value] [-date|-time|-full] [-utc]

Shows date and time

RedirectionSupported

pipe

[-set=value] [-quoted[=value]] <sourceCommand> <targetCommand>

Pipes the command output to another command as parameters

None

presets

Opens the shell preset library

None

radians

[-verbose] <degrees:int>

Converts angle in radians to degrees

None

remprefix

[-verbose] <text> <prefix>

Removes a prefix from a string

Hidden

remsuffix

[-verbose] <text> <suffix>

Removes a suffix from a string

Hidden

repeat

<times:int> [command]

Repeats the last action or the specified command

None

charwidth

[-set=value] [-verbose] <char>

Gets the character width (how many cells are needed)

Hidden

strwidth

[-set=value] [-verbose] <text>

Gets the string width (how many cells are needed)

Hidden

wrapsentences

[-set=value] [-charwise] [-verbose] <text> <width:int>

Wraps a long string to a group of sentences

Hidden

palindrome

[-set=value] [-ignorecase] [-verbose] <text>

Checks whether a string is a palindrome

Hidden

numeric

[-set=value] [-verbose] <text>

Checks whether a string is numeric

Hidden

printf

[-set=value] <text> [parameters] ...

Prints a string with format support

Hidden

replace

[-set=value] [-regex] [-verbose] <text> <toreplace> <replacewith>

Replaces a substring in a string with another substring

Hidden

replaceall

[-set=value] [-verbose] <text> <replacewith> <toreplace> ...

Replaces all substrings in a string with another substring

Hidden

replaceallrange

[-set=value] [-verbose] <text> <toreplace> <strings> ...

Replaces all substrings in a string with a range of substrings

Hidden

replacechar

[-set=value] [-verbose] <text> <charIdx:int> <toreplace>

Replaces a character in a string with another character

Hidden

replacelastocc

[-set=value] [-verbose] <text> <toreplace> <replacewith>

Replaces last occurrence of a substring in a string with another substring

Hidden

replaceocc

[-set=value] [-verbose] <text> <toreplace> <replacewith> <occurrencenum:int>

Replaces a specified occurrence of a substring in a string with another substring

Hidden

reverse

[-set=value] [-verbose] <text>

Reverses a sequence of characters in a string

Hidden

shift

[-set=value] [-verbose] <text> <shift:int>

Shifts characters in a string

Hidden

split

[-set=value] [-verbose] <text> [delimiter]

Splits a string with a delimiter

Hidden

splitnewlines

[-set=value] [-verbose] <text>

Splits a string with a new line

Hidden

splitdq

[-set=value] [-verbose] <text> [delimiter]

Splits a string with a delimiter (double quotes support)

Hidden

truncate

[-set=value] [-noellipsis] [-verbose] <text> <threshold:int>

Truncates a long string

Hidden

escapestr

[-set=value] [-verbose] <text>

Escapes a sequence of special characters in a string

Hidden

unescapestr

[-set=value] [-verbose] <text>

Unescapes a sequence of special characters in a string

Hidden

tobraille

[-set=value] [-quiet] <text>

Converts a string to a Braille sequence

Hidden

tofiglet

[-set=value] [-quiet] <text> [font] [width:int]

Converts a string to a rendered Figlet text

Hidden

figletmetrics

[-set=value] [-detailed] [-verbose] <text> [font] [width:int]

Shows figlet metrics

Hidden

reversertl

[-set=value] [-verbose] <text>

Reverses a sequence of characters for RTL

Hidden

randomword

[-set=value] [-quiet]

Returns a random word

Hidden

randomwordcond

[-set=value] [-quiet] [maxLength:int] [startsWith] [endsWith] [exactLength:int]

Returns a random word (conditional)

Hidden

findprofanity

[-set=value] [-quiet] <text> [profanitytype]

Finds profanity in a string

Hidden

filterprofanity

[-set=value] [-quiet] <text> [profanitytype]

Filters profanity in a string

Hidden

normalizespaces

[-set=value] [-simple|-analytical] [-verbose] <text>

Normalizes the spaces in a string

Hidden

savehistories

Saves shell histories

None

select

[-set=value] <answers> <input> [answertitle1] [answertitle2] ...

Provides a selection choice

None

set

[-set=value] <value>

Sets a variable to a value in a script

None

setrange

[-set=value] <value> [value2] [value3] ...

Creates a variable array with the provided values

None

sleep

<ms>

Sleeps for specified milliseconds

None

startswithallchars

[-set=value] [-verbose] <text> <charseq>

Checks whether a string starts with all of characters

Hidden

startswithallstrs

[-set=value] [-verbose] <text> <strseq>

Checks whether a string starts with all of strings

Hidden

startswithanychars

[-set=value] [-verbose] <text> <charseq>

Checks whether a string starts with any of characters

Hidden

startswithanystrs

[-set=value] [-verbose] <text> <strseq>

Checks whether a string starts with any of strings

Hidden

startswith

[-ignorecase] [-verbose] <text> <substr>

Checks whether a string starts with a substring

Hidden

titlecase

[-verbose] <text>

Titlecases a string

Hidden

unset

[-justwipe] <$variable>

Removes a variable from the MESH variable list

None

uppercase

[-whole|-first] [-verbose] <text>

Uppercases a string

Hidden

wrap

<command>

Wraps the console output

None

Last updated