Working with the cli environment (tree) – Dell Acceleration Appliances for Databases User Manual

Page 153

Advertising
background image

WORKING WITH THE CLI ENVIRONMENT (TREE)

The CLI can store settings, aliases, and other configuration into its preferences file. By default this
file is stored in

~/.fikon/tree.xml

.

You interact with the tree in a way that is similar to working with a file system. Fikon's tree is a
nested set of environments (directories). Each environment has variables in it, and each
environment can contain child environments.

Task

Example

Description

List the contents of the current

environment.

ls

Shows the variables that are bound in

the current environment.

Make a child environment.

mkdir child

Creates a new child environment

nested inside the current one.

Change into a child environment.

cd child

"Enters" the child environment, setting

the current working environment

Change to a parent environment.

cd ..

Changes the working environment to

the parent

Change to the root environment.

cd /

Goes to the top of the tree

Remove a child environment.

rmdir child

Create a variable.

varname=value

Sets a value into the environment

Remove a variable.

rm varname

Removes a variable from the

environment

Save the entire tree.

save

Saves the entire Fikon tree into your

preferences file, which is at

~/fikon/tree.xml by default.

Save the tree, showing its contents

on the console.

save -c

Saves the tree, and shows you what is

being saved.

Save your CLI environment tree to

an scp destination.

save --output-scp

user@host:my_env.xml

Stores your Fikon environment (setup)

to an scp destination, prompting you

for a password.

Reload the tree file.

load

Reloads the tree file from the default

location

Reload the tree from a file.

load treeFile.xml

Reloads the tree from the specified

file.

153

Advertising