当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 轻轻地问一下,源前面的#是什么意思?一个?两个?没有?
帖子发表于 : 2009-01-15 15:44 

注册: 2008-12-05 11:48
帖子: 11
送出感谢: 0 次
接收感谢: 0 次
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid universe
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
# Line commented out by installer because it failed to verify:
# deb http://mirror.rootguide.org/ubuntu/ intrepid main restricted universe multiverse
# deb-src http://mirror.rootguide.org/ubuntu/ intrepid main restricted universe multiverse
# deb http://mirror.rootguide.org/ubuntu/ intrepid-updates main restricted universe multiverse
# deb-src http://mirror.rootguide.org/ubuntu/ intrepid-updates main restricted universe multiverse
# deb http://mirror.rootguide.org/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://mirror.rootguide.org/ubuntu/ intrepid-backports main restricted universe multiverse
# deb http://mirror.rootguide.org/ubuntu/ intrepid-security main restricted universe multiverse
# deb-src http://mirror.rootguide.org/ubuntu/ intrepid-security main restricted universe multiverse
# deb http://mirror.rootguide.org/ubuntu/ intrepid-proposed main multiverse restricted universe
# deb-src http://mirror.rootguide.org/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse #地區性伺服器 (Lazybuntu 新增)
deb-src http://cn.archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse #地區性伺服器 (Lazybuntu 新增)
deb http://security.ubuntu.com/ubuntu/ intrepid-security main universe restricted multiverse #安全性更新伺服器 (Lazybuntu 新增)
deb-src http://security.ubuntu.com/ubuntu/ intrepid-security main universe restricted multiverse #安全性更新伺服器 (Lazybuntu 新增)
# deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 轻轻地问一下,源前面的#是什么意思?一个?两个?没有?
帖子发表于 : 2009-01-15 15:50 
头像

注册: 2007-02-02 18:14
帖子: 30702
系统: debian sid
送出感谢: 1
接收感谢: 34
呵呵,注释啊 :em20


_________________
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 轻轻地问一下,源前面的#是什么意思?一个?两个?没有?
帖子发表于 : 2009-01-15 19:48 

注册: 2008-01-24 9:52
帖子: 34
送出感谢: 0 次
接收感谢: 0 次
就是不用这个源,把这个源当作注释


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 轻轻地问一下,源前面的#是什么意思?一个?两个?没有?
帖子发表于 : 2009-01-15 20:40 

注册: 2008-06-04 11:24
帖子: 232
送出感谢: 0 次
接收感谢: 0 次
“#”的实际作用就是屏蔽了后面这一行。LINUX许多软件的配置文件里都有用到,在开头写个“#”就相当于一个开关,把这后面一行屏蔽,既“注释掉了”

“注释”的概念从编程里来,编程的时候为了利于别人和自己能看懂程序和方便日后的维护,需要在很多地方添加解释,为了和真正的程序语句分别开,在开头加个“#”。编译程序看到“#”号就知道其后是注释,就忽略过去了。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译