In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the reason for prompting bash:command not found under linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
If the newly installed system, run some very normal commands such as: shutdown,fdisk, blatantly prompt: bash:command not found. that
The first thing to consider is whether these environment variables are already included in root's $PATH.
Mainly these four: / bin,/usr/ bin,/sbin,/usr/sbin.
Four main things to store:
. / bin:
Bin is the abbreviation of binary to put some necessary execution files of the system, such as cat, cp, chmod df, dmesg, gzip, kill, ls, mkdir, more, mount, rm, su, tar and so on.
/ usr/bin:
It mainly places some essential execution files of application software tools, such as C++, Gmail +, gcc, chdrv, diff, dig, du, eject, elm, free, gnome*, gzip, htpasswd, kfm, ktop, last, less, locale, M4, make, man, mcopy, ncftp, newaliases, nslookup passwd, quota, smb*, wget and so on.
/ sbin:
It mainly places some essential programs for system management, such as cfdisk, dhcpcd, dump, e2fsck, fdisk, halt, ifconfig, ifup, ifdown, init, insmod, lilo, lsmod, mke2fs, modprobe, quotacheck, reboot, rmmod, runlevel, shutdown and so on.
/ usr/sbin:
Place some essential programs for network management, such as dhcpd, httpd, imap, in.*d, inetd, lpd, named, netconfig, nmbd, samba, sendmail, squid, swap, tcpd, tcpdump, etc.
You can view the PATH in .bash _ profile in the home directory. If it is: PATH=$PATH:$HOME/bin, it needs to be added as follows:
PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin
After installing CentOS5.5 on the virtual machine today, I found that when I ran some normal commands such as: init,shutdown,fdisk, I flagrantly prompted:
Bash: xx command not found .
So, the first thing to consider is whether these environment variables are already included in root's $PATH (maybe I chose "minimum installation" during installation, resulting in some features not being enabled).
There are mainly these four: / bin, / usr/bin, / sbin, / usr/sbin.
This is the end of the content of "what is the reason for reminding bash:command not found under linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.