/usr/local/bin和/usr/bin的区别
时间: 2023-05-11 15:05:33 浏览: 379
/usr/local/bin和/usr/bin都是存放可执行文件的目录,但是它们的区别在于/usr/local/bin是用来存放本地安装的软件的,而/usr/bin则是用来存放系统自带的软件的。通常情况下,用户自己安装的软件都会被安装到/usr/local/bin目录下,而系统自带的软件则会被安装到/usr/bin目录下。
相关问题
[atguigu@node11 flume]$ echo $PATH /home/hadoop/zookeeper/bin:/usr/local/flume/bin:/usr/local/hbase/bin:/home/hadoop/zookeeper/bin:/usr/local/flume/bin:/usr/local/hbase/bin:/home/hadoop/zookeeper/bin:/usr/local/flume/bin:/usr/local/hbase/bin:/usr/java/jdk1.8.0_361/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/module/jdk1.8.0_361/bin:/opt/module/hadoop-3.1.3/bin:/opt/module/hadoop-3.1.3/sbin:/opt/module/sbt:/usr/local/flume/bin:/usr/local/hbase/bin:/home/atguigu/.local/bin:/home/atguigu/bin
从您提供的输出来看,您的Flume安装路径为"/usr/local/flume/bin",并且在环境变量中已经正确配置了Flume的安装路径。因此,Flume的安装路径应该是正确的。
您可以尝试在Flume的安装目录下执行"./bin/flume-ng version"命令,查看是否能够正确输出Flume的版本信息。如果还是无法输出版本信息,可能是您的Flume存在其他问题,可以查看Flume的日志文件,通常位于"logs/flume.log",查看是否有相关的错误信息。
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/arm/4.3.2/bin
根据提供的引用内容,可以看出PATH的值是"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/arm/4.3.2/bin"。
这个路径包含了一些系统命令和应用程序的路径,可以让系统找到并执行它们。比如/usr/bin路径下存放了很多常用的命令,比如ls、mv、cp等。同样,/usr/local/bin路径下也包含了一些用户自行安装的命令和应用程序。其他的路径也类似。
所以,这个PATH的值告诉系统在哪些路径下去查找可执行文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [hive报错no hbase in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:Exception in thread “main“ ...](https://blog.csdn.net/m0_59483606/article/details/127395718)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [在配置SSH免密登录时报错:/usr/bin/ssh-copy-id: ERROR: failed to open ID file ‘/root/.pub’: 没有...](https://download.csdn.net/download/weixin_38518885/14039030)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [no javac in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)](https://blog.csdn.net/m0_55155505/article/details/123103074)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文