Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello guys I'm quite new to Kali Linux and just got to install python3 and other things however, I'm noticing an issue with my terminal where I am unable to or the terminal is unable to recognize any commands that have an underscore with them for example
Code:
easy_install
or
Code:
bdist_wheel
or any other command that consists of an underscore
This is the 2020 version; I've tried it both as sudo or in root mode, it just keeps displaying
Hello guys I'm quite new to Kali Linux and just got to install python3 and other things however, I'm noticing an issue with my terminal where I am unable to or the terminal is unable to recognize any commands that have an underscore with them for example
Code:
easy_install
or
Code:
bdist_wheel
or any other command that consists of an underscore This is the 2020 version; I've tried it both as sudo or in root mode, it just keeps displaying can someone please help I'd really appreciate it
Did you read the Kali sticky-post in this forum? Or Kali's website?? Kali is for advanced Linux users, and even then it's for security and pentesting...NOT for daily use, and not to be installed on a 'real' machine. Their own website tells you to install it in a virtual machine, and they don't recommend it for anything outside of it's narrow purpose. Why are you using Kali??
It's fairly obvious you are NOT an experienced Linux user...because if you were, you'd know that you have to put a path in front of commands, such as "/home/user/command_name", or "./command_name", before they'll work.
Did you read the Kali sticky-post in this forum? Or Kali's website?? Kali is for advanced Linux users, and even then it's for security and pentesting...NOT for daily use, and not to be installed on a 'real' machine. Their own website tells you to install it in a virtual machine, and they don't recommend it for anything outside of it's narrow purpose. Why are you using Kali??
It's fairly obvious you are NOT an experienced Linux user...because if you were, you'd know that you have to put a path in front of commands, such as "/home/user/command_name", or "./command_name", before they'll work.
Stop using Kali, and use something else.
Lol first of calm your , I’m not an experienced Linux user? No I’m on the newbie forums; I don’t have it actually booted on my device but rather on a VM, just like everyone else. The reason as to why I have kali Linux is non of your concern and actually has nothing to do with the answer to the question.
I’ve tried what you’ve said below, and it still doesn’t work; thanks for the utterly useless reply.
Last edited by rtmistler; 04-10-2020 at 07:57 PM.
Reason: Removed profanity
You should try to get more experience with an easier distro before you dive into Kali. TB0ne may have sounded harsh to you, but he is correct. In the future, please post more detail with your questions. Are you trying to run a script, a program or something else. The command and path you are using.
It's not the underscore that prevents you from running these commands There are several conditions that must be fulfilled: The commands exist on your machine, they are in your execution path, they are executable, and they match your CPU architecture. There are probably other subtle problems, see e.g. https://stackoverflow.com/questions/...is-ci#44862371
First question: Do these commands exist? How do you know?
Where are they located, and what is the value of the PATH variable?
Are they executable? Use ls -l and chmod.
For the architecture, use the file command.
This is standard UNIX/Linux stuff. I agree that you don't seem to have the right level of Linux experience. You risk to be stumbling from problem to problem if you don't acquire general Linux skills.
Last edited by berndbausch; 04-11-2020 at 01:58 AM.
Reason: Added "ls -l", changed the wording for clarity I hope.
Lol first of calm your , I’m not an experienced Linux user? No I’m on the newbie forums
So as a new user you go ahead and ignore the advice of the people who WROTE that distro, and tried to use it anyway, even though you don't have the experience to use it? Doesn't sound like a good idea.
Quote:
I don’t have it actually booted on my device but rather on a VM, just like everyone else.
And we don't know what you have/do until you actually tell us.
Quote:
The reason as to why I have kali Linux is non of your concern and actually has nothing to do with the answer to the question.
It may not, but there are lots of 'newbies' who load Kali just to think they're using something cool, when the reality is they (like you) are in way over their heads, and can't use it. If you've managed to load a VM and bring up Kali, then why is putting a path to a command hard?
Quote:
I’ve tried what you’ve said below, and it still doesn’t work; thanks for the utterly useless reply.
If you want help anywhere, with anything, you seriously need to change your attitude. Again, unless you specify a path to a program (and that program isn't ALREADY in your path, like those in /usr/bin), it WILL NOT WORK.
You were given the answer, and ignored it. Not much we can teach you or tell you at this point.
Very, Very, Very unlikely that underscores are not supported in your environment.
Much more likely: these two specific commands don't work for some reason, and you jump to the conclusion that it's because of the underscores.
Anyhow, please try the following:
Code:
ls /usr/bin | grep _
Choose a harmless-looking command with an underscore and see if you can execute it.
Don't be root when you do this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.