Command Prompt Conventions
Command prompt conventions used with View for ClusterStor
Host Name and Account in Command Prompts
The host name in a command prompt indicates where the command must be run. The account that must run the command is also indicated in the prompt.
- The root or super-user account always has the # character at the end of the prompt.
- Any non-root account is indicated with account@hostname>. A user account that is neither root nor crayadm is referred to as user.
| smw# | Run the command on the SMW as root. |
| sdb# | Run the command on the SDB node as root. |
| boot# | Run the command on the boot node as root. |
| login# | Run the command on any login node as root. |
| hostname# | Run the command on the View for ClusterStor system as root. |
| user@hostname> | Run the command on the specified system as any non-root user. |
[node]$ | Run the command on the specified ClusterStor node as the admin user. |
[node]# | Run the command on the specified ClusterStor node as root. |
Directory Path in Command Prompt
Example prompts do not include the directory path, because long paths can reduce the clarity of examples. Most of the time, the command can be executed from any directory. When it matters which directory the command is invoked within, the cd command is used to change into the directory, and the directory is referenced with a period (.) to indicate the current directory.For example, here are actual prompts as they appear on the system:
smw:~ # cd /etc smw:/etc# cd /var/tmp smw:/var/tmp# ls ./file smw:/var/tmp# su - crayadm crayadm@smw:~> cd /usr/bin crayadm@smw:/usr/bin> ./command
And here are the same prompts as they appear in this publication:
smw# cd /etc smw# cd /var/tmp smw# ls ./file smw# su - crayadm crayadm@smw> cd /usr/bin crayadm@smw> ./command