Environmental Commands


The environment of your terminal is based on a number of factors, such as what shell you are running, and what customizations you have performed. In-depth customization of your shell is quite complex, and entire books are devoted to the subject. Table A.9 lists a few of the common ways to adjust your working environment.

Table A.9. Environmental Commands

COMMAND

GENERAL USAGE

DESCRIPTION

alias

alias NAME=VALUE

Constructs an alias used to execute custom commands. (When no parameters are specified, current aliases are displayed.)

For example:

 alias ll='ls -l' 

echo

echo TEXT

Displays the line of text entered as a parameter. (Commonly used in shell scripts.)

env

env

Displays exported environment variables.

export

export VARIABLE

Exports the specified variable for use in subsequent subshells or command environments.

set

set

Displays environment variables and shell functions.

unset

unset VARIABLE

Removes an environment variable from memory.




    NovellR Open Enterprise Server Administrator's Handbook SUSE LINUX Edition
    Novell Open Enterprise Server Administrators Handbook, SUSE LINUX Edition
    ISBN: 067232749X
    EAN: 2147483647
    Year: 2005
    Pages: 178

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net