对于访问权限的定" name="description" />

HP-UX系统基础3

发表于:2007-06-08来源:作者:点击数: 标签:
HP-UX系统基础3 (user3.%,rw-) (%.class,r--) (%.%,---) funfile Note: ACLs are NOT supported with JFS filesystems MI LY: 宋体; mso-ascii-font-family: " roman??="" new="" ?times="" mso-hansi-font-family:="" roman?;="" times="">对于访问权限的定
HP-UX系统基础3

(user3.%,rw-) (%.class,r--) (%.%,---)  funfile

Note:  ACLs are NOT supported with JFS filesystems

MILY: 宋体; mso-ascii-font-family: " roman??="" new="" ?times="" mso-hansi-font-family:="" roman?;="" times="">对于访问权限的定义,从根本上讲,有四种范围级别:

(u.g,rwx)    特定的一个用户,特定的组

(u.%,rwx)   特定的一个用户,任意一个组

(%.g,rwx)   任意的一个用户,特定的一个组

(%.%,rwx)   任意的一个用户,任何一个组

Shell的基本知识

Aliasing(别名化)

Examples:

$alias  dir=ls

$alias  more=more

$alias  mstat=/home/tricia/projects/micron/status

$alias  laser=”lp  -dlaer”

$laser  fileX

request id is laser -234(1  file)

$alias  displays aliaes curntly defined

$alias more displays value of alias more

more=more

文件名不齐

ESC +ESC,这时POSIX  shell 会补齐文件名剩下的部分.

Command History

$history  -2  list the last two commands

15ANT: normal" roman??="" new="" times="">            cd

16    more .profile

$history  3  5 list command number 3 through 5

3 date

4 pwd

5 ls

$history  3  5 list command numbers 3 through 5

3 date

4 pwd

5 ls

$

$r  4(r  p[命令首个字母])  run command number 4

pwd

/home/kelley

Recalling Commands(回调命令)

Uses the history mechanis m

Must have the EDITOR environment variable set

EDITOR=vi

export EDITOR

-AT $,press Esc and use normal vi commands to scroll through previous commands

-k scolls backward through the command history.

-j scrolls forward through the command history.

-nG takes you to command number n

-Press Return to execute the command

Command Line Editing(命令行编辑)

Provides the ability to modify text entered on current or previous command lines

Press Esc to enter command mode.

Recall desired command by either.

-Pressing K until it appears

Typing the command number ,the G

To position the cursor

-Use l,or space key to move right

-Use h,or backspace to move left

Do Not Use the Arrow Keys!

To modify text

-Use x to delete a character

-Use i or a to insert or append characters

-Press Ese to stop adding character

Press return to execute the modified command

The User Environment

Your environment describes your session to the programs you run

Example:

$env

HOME=/home/gerry

PWD=/home/gerry/develop/basics

EDITOR=vi

TERM=70092

PATH=/usr/bin:/usr/contrib/bin:/usr/local/bin:\

常见环境变量的含义:

TERM,COLUMNSLINES        描述所使用的终端

HOME                           主目录的路径名

PATH                             搜索命令地点的列表

LOGNAME                        登陆用的用户名

envHISTILE                     专用的POSIX shell变量.

DISPLAY                          专用的X Window变量

这些变量中有一些由系统来设定,其他的在/etc/profile.profile中设定.

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

原文转自:http://www.ltesting.net

...