the beginning of shell

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
kinfinger
帖子: 198
注册时间: 2009-05-16 14:22

the beginning of shell

#1

帖子 kinfinger » 2010-03-19 19:14

单引号和双引号的区别:
set name=hello
ubutu@ubutu-desktop:~$ echo 'welcome $name'
welcome $name
ubutu@ubutu-desktop:~$ echo "welcome $name"
welcome hello

从中我们可以知道,单引号比双引号更纯粹的,引号里面的任何东西都不解释。双引号则不然。
missing is i missing you...
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: the beginning of shell

#2

帖子 tenzu » 2010-03-19 19:18

开讲堂了?
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: the beginning of shell

#3

帖子 delectate » 2010-03-19 19:19

:em20

basic shell knowledge
头像
xiaomao101
帖子: 474
注册时间: 2006-04-05 18:12
联系:

Re: the beginning of shell

#4

帖子 xiaomao101 » 2010-03-19 20:42

echo $$name
kinfinger
帖子: 198
注册时间: 2009-05-16 14:22

Re: the beginning of shell

#5

帖子 kinfinger » 2010-03-19 21:21

ubutu@ubutu-desktop:~/malloc$ echo $$name
2046name
missing is i missing you...
microlabm300
帖子: 64
注册时间: 2008-12-30 8:14
来自: 河南洛阳

Re: the beginning of shell

#6

帖子 microlabm300 » 2010-03-19 21:26

路过 ,学习 ,也就 勉强看懂,自己 还没到这个层次。
头像
xiaomao101
帖子: 474
注册时间: 2006-04-05 18:12
联系:

Re: the beginning of shell

#7

帖子 xiaomao101 » 2010-03-19 21:43

kinfinger 写了:ubutu@ubutu-desktop:~/malloc$ echo $$name
2046name
$$显示当前进程的pid,你可以建立一个脚本,然后运行,在ps看看他的pid(脚本设延迟,要不立马就退出了)
kinfinger
帖子: 198
注册时间: 2009-05-16 14:22

Re: the beginning of shell

#8

帖子 kinfinger » 2010-03-20 13:13

:em01 谢谢了,学习
missing is i missing you...
回复