免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: crystalos
打印 上一主题 下一主题

Unix基础-学习笔记 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2004-11-04 16:02 |只看该作者

Unix基础-学习笔记

S9 Interaction and job Control
Placing a foreground job into the background first thing u must do is suspend the job with a Control-Z, freeing your terminal. Then, u can issue the Unix command: bg
Bringing a background job to the foreground
# fg  %2  will bring job 2 into the foreground. If no job ID is given, fg will assume u are referring to the current (suspended) job.
Starting a suspended job
Find the job ID of the suspended job with the jobs command, and then use bg or fg.

论坛徽章:
0
12 [报告]
发表于 2004-11-04 16:03 |只看该作者

Unix基础-学习笔记

S10 The Execution Environment
Concept: The exact behavior of commands issued in the shell depends upon the execution environment provided by the shell.
To view all the environment variables, use: printenv
To view a particular environment variable, use: echo $TERM
The creation of the execution environment.

When u log in, a sequence of events establishes the execution environment. It depends on the particular flavor of Unix, and also depends upon the default shell for your account.

For HP-UX operating system(other may differ):
The gritty process: it provides the login: prompt that u see on the terminal screen. It reads your username, and invokes login program.
The login program: trial and error verity to find your information in /etc/passwd, then to invoke your default shell. If doesn’t has default shell, login starts the Bourne shell (/bin/sh).

Shell startup: System login scripts
On HP-UX, the file /etc/.profile provides initialization parameters for ksh and sh, while the file /etc/csh.login is used for csh.
Shell startup: User login scripts
After the system login scripts are read, the shell reads user login scripts.
Important environment variables:
TERM,PATH,USER,HOME,MAIL,EDITOR,HOST
Setting environment and shell variables
The exact mechanism for it depends upon the type of shell u’re using.
sh, or ksh: VAR=value;export VAR
eg. EDITOR=emacs;export EDITOR  (注意:中间不要空格)
csh: setenv VARIABLE value
eg. Setenv EDITOR emacs

论坛徽章:
0
13 [报告]
发表于 2004-11-04 16:05 |只看该作者

Unix基础-学习笔记

总算是全搞定了~~
松了一口气~~

论坛徽章:
0
14 [报告]
发表于 2004-11-04 16:12 |只看该作者

Unix基础-学习笔记

自己顶一下先~~

论坛徽章:
0
15 [报告]
发表于 2004-11-04 16:39 |只看该作者

Unix基础-学习笔记

把书上的东西挪到这真够你累的

论坛徽章:
0
16 [报告]
发表于 2004-11-05 08:52 |只看该作者

Unix基础-学习笔记

hoho~~
先看,再记,然后再整理,最后发出来,自己的印象会越来越深刻~~

论坛徽章:
0
17 [报告]
发表于 2004-11-05 08:54 |只看该作者

Unix基础-学习笔记

哪本书?有电子版的吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP