LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-10-2020, 04:08 PM   #1
xhinai
LQ Newbie
 
Registered: Apr 2020
Posts: 2

Rep: Reputation: Disabled
Commands that have an Underscore don't work


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
Quote:
command not found
can someone please help I'd really appreciate it
 
Old 04-10-2020, 04:34 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by xhinai View Post
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.

Stop using Kali, and use something else.
 
Old 04-10-2020, 05:46 PM   #3
xhinai
LQ Newbie
 
Registered: Apr 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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
 
Old 04-10-2020, 06:01 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Are the commands executable?
 
2 members found this post helpful.
Old 04-10-2020, 06:13 PM   #5
michaelsavage
Member
 
Registered: Apr 2019
Distribution: Linux Mint
Posts: 59

Rep: Reputation: 11
xhinai,

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.
 
1 members found this post helpful.
Old 04-10-2020, 06:30 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
2 members found this post helpful.
Old 04-10-2020, 07:09 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by xhinai View Post
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.

Last edited by rtmistler; 04-10-2020 at 07:58 PM.
 
1 members found this post helpful.
Old 04-10-2020, 07:28 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I guess it's possible that the shell you are using doesn't support it for some reason. Maybe keycode/country or design.

I agree with above about permissions and exactly what it is. ls -l

I'd try "easy_install" well actually I think pip is correct instead.
 
Old 04-11-2020, 03:41 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 04-11-2020, 07:56 AM   #10
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Code:
x86_64-linux-gnu-nm --help
works perfectly well in Mint/Debian.
 
Old 04-11-2020, 08:14 AM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
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.
If you were capable of using Kali for its intended purpose, you wouldn't be asking the question.

Which came first, the chicken or the egg?
 
Old 04-11-2020, 08:29 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Complete install and use instructions are at their site. Note the warning at the top of the page.

https://setuptools.readthedocs.io/en...g-easy-install
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i convert file names to lower case and remove the underscore from the name? asilentmurmur Linux - Newbie 16 10-30-2012 06:52 PM
any ideas about these type of commands-- "_alias" underscore! deepclutch Linux - Newbie 2 03-25-2006 02:43 AM
control keys, underscore, and others stopped working. Wartz Ubuntu 0 12-01-2005 11:10 AM
deleting an underscore Post Modern Programming 2 11-27-2005 05:35 AM
Postfix+Procmail+Spamassassin delivering to Maildir with underscore. gaslq Linux - Networking 0 09-05-2004 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration