2 minute read.Last Modified 2021-06-15 10:02 EDT
The SCALE shell is a convenient means to run command lines tools, configure different system settings, or find log files or debut information. The shell opens with the root user logged in.
The Set font size slider adjusts the size of text displayed in the shell. Click RESTORE DEFAULT to reset the shell font and size.
Shell command history is available for the current session. Use the Up and Down arrow keys to scroll through previously entered commands. Edit the command if desired, then press Enter to re-enter the command. Browsing away from the Shell screen clears the command history.
Home, End, and Delete keys are supported. Tab completion is also available. Type a few letters and press Tab to complete a command name or filename in the current directory. Right-clicking in the terminal window displays a reminder about using Command+c and Command+v or Ctrl+Insert and Shift+Insert for copy and paste operations in the shell.
exit leaves the session.
Click Reconnect to start a new session.
Clicking other web interface menus closes the shell session and stops commands running in the shell. zsh is the default shell, but this is changed by editing the root user in Credentials > Local Users and choosing a different option in the Shell drop down. Most Linux command line utilities are available in the shell.
Tmux provides the ability to detach shell sessions and then reattach to them later. Commands continue to run in a detached session.
Using the experimental SCALE command line interface (CLI) to directly configure different SCALE features.
This feature is experimental and still in active development. No bug reports or feature requests are being accepted at this time.
To switch to the experimental CLI, enter
Basic commands are:
..- up one level
exit- exit the CLI
ls- list the available directories and commands
help- list the built-in commands
The CLI features an auto-suggest mechanism for commands. Begin typing a command and the CLI shows a list of all matching commands.
The CLI is intended to be an alternative method to configuring TrueNAS features. Because of the variety of available features and configuration, CLI-specific instructions are included in their respective section of the UI documentation.