Linux: command not found
来源:互联网 发布:侯捷 c stl源码解析 编辑:程序博客网 时间:2024/05/22 02:04
fdisk-- command not found。
ifconfig-- command not found.
查看当前PATH配置:
[yanxia.dong@eslruntime07 ~]$ echo $PATH/opt/synopsys/K-2015.12-SP1/SLS/linux/pc/bin:/opt/synopsys/K-2015.12-SP1/SLS/linux/InnoGUI/Innovator/Bin:/opt/synopsys/K-2015.12-SP1/SLS/linux/tools/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin
查看ifconfig和fdisk的路径:
[yanxia.dong@eslruntime07 ~]$ whereis ifconfigifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz[yanxia.dong@eslruntime07 ~]$ whereis fdiskfdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz
所在路径: /sbin/ifconfig
/sbin/fdisk
找到原因,/sbin的目录路径(系统用户目录)不在root的$PATH变量中造成的。
[yanxia.dong@eslruntime07 ~]$ cd ~[yanxia.dong@eslruntime07 ~]$ ls -a. .gconf Public.. .gconfd .pulse2015 .gitconfig .pulse-cookiea7_minicode .gitk .qtA7_Platform git.txt .recently-used.xbel.abrt git.txt~ .redhatarm_test_code_simc .gnome2 .repoconfig.bash_logout .gnote .repo_.gitconfig.json.bash_profile .gnupg rsa.bashrc GPIO_import_user_post.tcl sim_appbuild .gstreamer-0.10 sim_app_oldbuild_package_old .gtk-bookmarks sim_module_old.cache .gvfs sim_module.tar.gz.ccache .history .ssh.commit_template .ICEauthority .swt.config .imsettings.log .synopsyscore.28156 .installjammerinfo Tar.cshrc .java .thumbnails.dbus .kde .trace32Desktop load.txt vdkDocuments load.txt~ .vimDownloads .local .viminfo[yanxia.dong@eslruntime07 ~]$ vi .bash_profile
在出现的文本编辑器中,找到PATH=$PATH:$HOME/bin。
在该行后面加上“:/sbin“(不含引号),如下行:
PATH=$PATH:$HOME/bin:/sbin
按ESC,输入:wq(有冒号的)
保存并退出,重新启动。
0 0
- LINUX command not found
- Linux: command not found
- linux command not found问题解决
- Linux:-bash: ***: command not found,
- Linux command not found 解决办法
- Linux:-bash: ***: command not found
- Linux:-bash: ***: command not found
- Linux:-bash: ***: command not found
- Linux ifconfig command not found
- Linux一些command not found
- Linux:-bash: ***: command not found
- linux bash command not found
- linux jps: command not found
- linux ping: command not found
- linux ping: command not found
- Linux问题解决:bash,shutdown command not found
- Linux中"command not found" 解决办法
- arm-linux-ranlib:command not found
- bss,data,text,rodata,堆,栈,常量段
- 发送邮件,加附件
- 深入浅出Mybatis-插件原理
- ACM-problem P
- java学习笔记(三)
- Linux: command not found
- Android 6.0 运行时权限处理
- iOS调试之 crash log分析
- POJ 3624 Charm Bracelet(01背包)
- Spring注解@Component、@Repository、@Service、@Controller区别
- python2.7: how to wirite chinese to file
- 网络协议系列之一:HTTP(1)
- Java Design Pattern
- Max sum 求相邻数最大和