Special Characters on Linux

The following tables list the special characters that are allowed or not allowed in the user password on Linux:

Linux: Special characters allowed in user password (quotes not required)
Linux: Special characters allowed in user password (quotes required)

Linux: Special characters allowed in user password (quotes not required)

Character

Name

@

At symbol

#

Hash / Pound sign

%

Percent sign

^

Caret

*

Asterisk

-

Hyphen / Minus

_

Underscore

+

Plus sign

=

Equals sign

[

Left square bracket

]

Right square bracket

{

Left curly brace

}

Right curly brace

:

Colon

,

Comma

.

Period / Full stop

/

Forward slash

?

Question mark

~

Tilde

 

Linux: Special characters allowed in user password (quotes required)

Character

Name

!

Exclamation mark

$

Dollar sign

&

Ampersand

(

Left parenthesis

)

Right parenthesis

|

Vertical bar / Pipe

\

Backslash

;

Semicolon

<

Less-than sign. Must be passed in single quotes (') or double quotes (").

>

Greater-than sign. Must be passed in single quotes (') or double quotes (").

`

Back tick / Grave accent. Must be passed in single quotes (') or double quotes (").

'

Apostrophe / Single quote. Must be passed in double quotes (").

"

Quotation mark / Double quote. Must be passed in single quotes (').