Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8158003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:28:46+00:00 2026-06-06T17:28:46+00:00

I was trying to add the mvim shell script to /usr/local/bin form bash as

  • 0

I was trying to add the mvim shell script to /usr/local/bin form bash as per this question and everything seemed to work; however, I am still getting “command not found” whenever I try to execute the script.

From the directory where my mvim file is (Downloads), I typed:

sudo cp -v mvim /usr/local/bin

and I get output:

mvim -> /usr/local/bin

and then it doesn’t work whether I type mvim or mvim -v

I’ve never added something to my $PATH before, but even after looking up a number of tutorials on how it is done, I can’t seem to get mvim to work as a terminal command.

EDIT:

echo $PATH

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

and

ls -l mvim

-rwxr-xr-x ...

and

ls -l /usr/local/bin

-rwxr-xr-x ...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:28:47+00:00Added an answer on June 6, 2026 at 5:28 pm

    Does /usr/local/bin exists?

    If you run sudo cp -v mvim /usr/local/bin and the /usr/local/bin folder does not exist, cp will copy mvim to the /usr/local/ folder and name it bin.

    You need to first create the folder with sudo mkdir -p /usr/local/bin. Then, you can copy mvim with the previous cp command.

    Is mvim executable?

    Have you made sure that /usr/local/bin/mvim has the executable flag set? Try ls -l /usr/local/bin/mvim and if the result starts with -rw-r--r--, then mvim is not executable.

    You then need to run sudo chmod +x /usr/local/bin/mvim. If you now run the previous ls command again, the result should start with -rwxr-xr-x. The x means that the file is now executable by its owner, members of its group, and all other users too.

    Is /usr/local/bin in your PATH?

    Have you made sure that /usr/local/bin is part of your PATH variable?

    Try echo $PATH and if the output does not contain /usr/local/bin, then the shell will not look for commands there. You then need to run export PATH=$PATH:/usr/local/bin

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to add a 'box' to a form at design time, I looked up
Trying to add text to QGraphicsView: Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this);
Im trying to add an constructor to my webservice, that looks like this: public
Trying to add objects to a ArrayDeque at random intervals. This is what I
Trying to add a second line to this so it shows the Name of
Trying to add my event handler to ComponentDispatcher.ThreadPreprocessMessage event like this: using System; using
I'm trying add a tab to my web page that looks like this: Using
When trying to add a few items to the database I'm getting this error:
I'm trying add some shell extensions using python with icons and a sub menu
I'm trying add data triggers to the default combobox style so each text item

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.