< Home

alias (local user view)

Function

The alias command sets a user display name.

The undo alias command deletes the specified user display name.

Format

alias alias

undo alias

Parameters

Parameter Description Value
alias Specifies the user display name. The value is a case-sensitive string of 1 to 31 characters. Spaces and special characters, such as exclamation points (!), at signs (@), number signs (#), dollar signs ($), and percents (%), are supported.

Views

Local user view

Default Level

2: Configuration level

Usage Guidelines

The display name identifies a user but cannot be used for authentication. For example, domain accounts (login names) are used to implement authentication on users within an enterprise. To identify each user, you can configure the real name of each user as the display name.

Users can share the same display name.

Example

# Set the display name of user test to Tom.

<sysname> system-view
[sysname] user-manage user test
[sysname-localuser-test] alias Tom
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >