📄 linux 命令及可执行程序路径的设置 linuxsir_org.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0039)http://www.linuxsir.org/main/?q=node/26 -->
<HTML lang=zh-hans xml:lang="zh-hans"
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Linux 命令及可执行程序路径的设置 | LinuxSir.Org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=all>@import url( misc/drupal.css );
</STYLE>
<STYLE type=text/css media=all>@import url( modules/taxonomy_context/taxonomy_context.css );
</STYLE>
<LINK media=screen
href="Linux 命令及可执行程序路径的设置 LinuxSir_Org.files/menuExpandable3.css" type=text/css
rel=stylesheet>
<SCRIPT src="Linux 命令及可执行程序路径的设置 LinuxSir_Org.files/menuExpandable3.js"
type=text/javascript></SCRIPT>
<LINK href="Linux 命令及可执行程序路径的设置 LinuxSir_Org.files/common.css" type=text/css
rel=stylesheet>
<STYLE type=text/css media=all>@import url( themes/chameleon/marvin/style.css );
</STYLE>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=header><A title=Home href="http://www.linuxsir.org/main/"><IMG alt=Home
src="Linux 命令及可执行程序路径的设置 LinuxSir_Org.files/logo.jpg"></A></DIV>
<DIV class=navlinks>
<DIV class=primary><A href="http://www.linuxsir.org/main/?q"><FONT
color=white>首页</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/34"><FONT
color=white>事件</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/"><FONT
color=white>文档</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/"><FONT
color=white>资源</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=search"><FONT color=white>搜索</FONT></A> |
<A href="http://www.linuxsir.org/bbs"><FONT color=white>论坛</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/38"><FONT
color=white>贡献者</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=node/3"><FONT color=white>关于</FONT></A> |
<A href="http://www.linuxsir.org/main/?q=user"><FONT
color=white>注册/登录</FONT></A></DIV></DIV>
<TABLE id=content>
<TBODY>
<TR>
<TD id=sidebar-left>
<DIV class="block block-block" id=block-block-1>
<H2 class=title>子站索引</H2>
<DIV class=content>
<UL>
<LI><A href="http://fedora.linuxsir.org/" target?_blank?>Fedora中文</A>
<LI><A href="http://debian.linuxsir.org/" target?_blank?>Debian中文</A>
<LI><A href="http://lfs.linuxsir.org/" target?_blank?>LFS 中文</A>
<LI><A href="http://slack.linuxsir.org/">Slackware</A>
<LI><A href="http://gentoo.linuxsir.org/">Gentoo中文</A>
<LI><A href="http://arch.linuxsir.org/">Arch 中文</A> </LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-3>
<H2 class=title>重要资讯</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/36">本站公告</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/34">新闻事件</A>
<LI><A href="http://www.linuxsir.org/bbs" target=_blank>本站论坛</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/38">贡 献 者</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-7>
<H2 class=title>项目索引</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.fcitx.org/" target=_blank>小企鹅输入法</A>
<LI><A href="http://lumaqq.linuxsir.org/" target=_blank>LumaQQ</A>
<LI><A href="http://openq.linuxsir.org/" target=_blank>OpenQ</A>
<LI><A href="http://www.relaxbsd.org/" target=_blank>RelaxBSD</A>
</LI></UL></DIV></DIV>
<DIV class="block block-user" id=block-user-1>
<H2 class=title>站点导航</H2>
<DIV class=content>
<DIV class=menu>
<UL>
<LI class=leaf><A title=注册/登录
href="http://www.linuxsir.org/main/?q=user">注册/登录</A>
<LI class=collapsed><A
href="http://www.linuxsir.org/main/?q=aggregator">新闻聚合</A>
</LI></UL></DIV></DIV></DIV>
<DIV class="block block-aggregator" id=block-aggregator-feed-2>
<H2 class=title>LinuxSir.Org 论坛</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267339&goto=newpost">开始LFS,第一贴</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267338&goto=newpost">唔,今天心情好,贴个图:)</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267337&goto=newpost">Thruth请进~关于BCM
43xx 无线网卡支持</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267336&goto=newpost">--with-pic什么意思和作用?</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267335&goto=newpost">请问suse下如何调整硬盘分区的大小?</A>
</LI></UL></DIV>
<DIV class=more-link><A title=查看此feed的最新消息
href="http://www.linuxsir.org/main/?q=aggregator/sources/2">更多</A></DIV></DIV></DIV>
<DIV class="block block-user" id=block-user-2>
<H2 class=title>最新注册</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI>norton007
<LI>yanghaiquan
<LI>zuoricky
<LI>leon531
<LI>rainbor</LI></UL></DIV></DIV></DIV>
<DIV class="block block-user" id=block-user-3>
<H2 class=title>当前在线</H2>
<DIV class=content>1 用户 和 76 游客 在线
<DIV class=item-list>
<H3>在线用户</H3>
<UL>
<LI>北南南北</LI></UL></DIV></DIV></DIV></TD>
<TD id=main>
<DIV class=breadcrumb><A href="http://www.linuxsir.org/main/?q=">首页</A> »
<A href="http://www.linuxsir.org/main/?q=taxonomy/term/1">Linux</A></DIV>
<H2>Linux 命令及可执行程序路径的设置</H2><!-- begin content -->
<DIV class=node>
<DIV class=content>
<P>Fedora Core 4.0 FAQ ,同时也能用于Linux其它发行版</P>
<P>请在 当前用户下的.bashrc 中加一行:<BR>
<DIV class=codeblock><CODE>export
PATH=".:/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"</CODE></DIV>
<P></P>
<P>然后<BR>#source .bashrc</P>
<P>有些命令即便能调用,也不会出现任何信息,或者要输入root密码的,说明要以超级权限运行的;</P>
<P>比如<BR>
<DIV class=codeblock><CODE>[beinan@localhost ~]$ fdisk
-l<BR>[beinan@localhost ~]$ su<BR>Password:<BR>[root@localhost beinan]#
fdisk -l<BR>Disk /dev/hda: 80.0 GB, 80026361856 bytes<BR>255 heads, 63
sectors/track, 9729 cylinders<BR>Units = cylinders of 16065 * 512 =
8225280 bytes<BR>Device Boot Start End Blocks Id System<BR>/dev/hda1 * 1
765 6144831 7 HPFS/NTFS<BR>/dev/hda2 766 2805 16386300 c W95 FAT32
(LBA)<BR>/dev/hda3 2806 7751 39728745 5 Extended<BR>/dev/hda5 2806 3825
8193118+ 83 Linux<BR>/dev/hda6 3826 5100 10241406 83 Linux<BR>/dev/hda7
5101 5198 787153+ 82 Linux swap / Solaris<BR>/dev/hda8 5199 6657 11719386
83 Linux<BR>/dev/hda9 6658 7751 8787523+ 83 Linux<BR>[root@localhost
beinan]#</CODE></DIV><BR><BR><BR><FONT size=4><B>相关文档</B></FONT>
<P></P>
<P><A href="http://www.linuxsir.org/main/?q=node/151">《快速编辑 Shell
命令行》</A><BR><A href="http://www.linuxsir.org/main/?q=node/135">《Linux
Shell简介》</A><BR><A href="http://www.linuxsir.org/main/?q=node/26">《Linux
命令及可执行程序路径的设置》</A><BR><A
href="http://www.linuxsir.org/main/?q=node/193">《关于Linux
文件系统中路径的理解》</A></P></DIV>
<DIV class=links>By 北南南北 at 2005/08/13 - 12:00 | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/1">Linux</A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/25">基础知识</A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/52">命令/SHELL/PERL</A>
| <A title=共享你有关本文的思想和意见。
href="http://www.linuxsir.org/main/?q=comment/reply/26#comment">参与评论</A> |
3172 阅读</DIV></DIV><A id=comment></A>
<FORM action=?q=comment method=post>
<DIV><INPUT type=hidden value=26 name=edit[nid]> </DIV></FORM><!-- end content -->
<DIV id=footer>
<CENTER><A href="http://www.linuxsir.org/"><IMG
src="Linux 命令及可执行程序路径的设置 LinuxSir_Org.files/logo.jpg"></A> <BR><A
href="http://www.miibeian.gov.cn/"><FONT color=blue
size=3><B>闽ICP备06025536号</B></FONT></A><BR>
<SCRIPT language=JavaScript
src="Linux 命令及可执行程序路径的设置 LinuxSir_Org.files/cyberpolice.htm"></SCRIPT>
<BR><A href="http://www.linuxsir.org/main/?q=node/78"><FONT color=blue
size=3><B>© 2002-2006 LinuxSir.Org</B></FONT></A><BR></CENTER></DIV></TD>
<TD id=sidebar-right>
<DIV class="block block-block" id=block-block-2>
<H2 class=title>基础知识</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/23">安装配置</A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/">基础入门</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/22/">硬件解决</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/21">软件管理</A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/">重要资源</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-4>
<H2 class=title>软件应用</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/30">网络工具</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/32">图形图像</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/31">音乐视频</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/49">字体中文</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/33">软件其它</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-5>
<H2 class=title>网络服务器</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/27">文件服务器<A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/28">Web服务器</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/29">邮件服务器</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/37">数据库应用</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/50">服务器其它</A>
</LI></UL></DIV></DIV>
<DIV class="block block-comment" id=block-comment-0>
<H2 class=title>最新评论</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI><A
href="http://www.linuxsir.org/main/?q=node/188#comment-633">debian基础系统</A><BR>2
min 32 sec 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-632">安装过程中指定hostname</A><BR>1
hour 1 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/226#comment-631">哈哈</A><BR>15
hours 43 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/140#comment-630">http://www.linuxsir.org/main/?q=node/140#comment-630</A><BR>20
hours 22 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/10#comment-628">压缩:</A><BR>1
day 23 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/178#comment-627">不行</A><BR>2
days 4 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/158#comment-626">有个重要的问题,在windows里面进入的时候,</A><BR>2
days 19 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/42#comment-625">太感谢了</A><BR>3
days 3 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-624">错了</A><BR>3
days 14 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-623">hosts在windows里面只是为了解析域名用的</A><BR>3
days 14 hours
前</LI></UL></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -