Unix common command profile (5)

xiaoxiao2021-03-06  39

? View Process, executive in Background

=======================================

Perform format JOBS

• End or terminate Process in Background

=======================================

Perform format kill% n

(n for the Background Job number that uses the "jobs" command)

EXAMPLE:

% kill% terminates the first Job in Background

% kill% 2 Terminate the second Job in Background

28) Shell Varialbe

==============

? View the set value of Shell Variable

===============================

Perform format set See all Shell Variable settings

% set

Perform format Echo $ Variable-name Display the specified shell variable setting value

% Echo $ PRINTER

SP1

Set Shell Variable

=====================

Perform format set var = value

EXAMPLE:

% Set Term = VT100

Set Shell Variable "Term" is the type of VT100 Terminal

• Delete Shell Variable

=====================

Perform format unset var

EXAMPLE:

% unset printer

Delete the set value of shell variable "printer"

Environment Variable

=====================

? View Environment Variable Settings

=====================================00 == Perform format Stenv View all Environment Variable settings

EXAMPLE:% SetENV

Perform format Echo $ Name Displays the specified Environment Variable "Name" set value

EXAMPLE:

% Echo $ PRINTER

Display the set value of the Environment Variable "Printer" list machine name

Set Environment Variable

===========================

Perform format Stenv Name Word

EXAMPLE:

% SetENV Printer SP1

Set the Environment Variable "Printer" list machine name is SP1

• Delete Environment Variable

===========================

Perform format unsetenv name

EXAMPLE:

% unstenv printer

Delete Environment Variable "Printer" list set setting value

29) Alias

=====

? View alias that defines the command

==========================

Perform format Alias ​​View all commands you currently define and the corresponding Alias ​​name

Perform format Alias ​​Name View command defined by the specified Alias ​​name

EXAMPLE:

% Alias ​​Dir (see the command defined by alias DIR)

ls -atl

? Define the alias

==================

Perform format Alias ​​Name 'Command Line'

EXAMPLE:

% Alias ​​Dir 'ls -l'

Define the command "LS - L" or name to DIR

? Delete the defined alias

====================

Perform format UNME

EXAMPLE:

% UNALIAS DIR (Delete Ankey is DIR Definition)

% unalias * (delete all aliases set)

转载请注明原文地址:https://www.9cbs.com/read-69039.html

New Post(0)