Can't run basic CLI commands?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Can't run basic CLI commands?

Postby rogue_mpuser on Fri Jun 08, 2012 5:32 pm

I've never used Mint before, but I've been using Debian and OpenSuse for a few years. My wife is the Mint user, and she's pretty much a GUI only user. I'm not an expert, and in fact just wrote my first shell script, which brings me to this problem:

I wrote an automatic backup script for my wife's Mint computer. It runs fine on my OpenSUSE laptop and my debian desktop. But it uses methods like tar and scp, and apparently she doesn't have permissions to run those? The error returned when I tried to edit the script reads:

Code: Select all
Command 'vi' is available in '/usr/bin/vi'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.


The same error appears when we try to chmod the script to make it executable, and when the script gets to the scp part.

The output of echo $PATH is:
Code: Select all
:/home/mj/bin:/bin


Both of those are there because I put them there, which means before I did that, there was NO path declaration. I added /bin so the chmod would work.

I know how to add directories to the path, but it seems odd to have to add paths that are normally available on other distros, so I thought I'd ask here and see if there's something about Mint that I'm not familiar with. Can a normal user run CLI commands under Mint?
rogue_mpuser
Level 1
Level 1
 
Posts: 1
Joined: Fri Jun 08, 2012 5:14 pm

Linux Mint is funded by ads and donations.
 

Re: Can't run basic CLI commands?

Postby eanfrid on Fri Jun 08, 2012 5:44 pm

I don't know what you added to her ~/.profile but all users have at least in $PATH
Code: Select all
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Sounds like you replaced the content of $PATH instead of adding to it.
Image using Cinnamon 1.8.8 & Nemo 1.8.3
If you cannot apt-get it, either it is not useful or it does not exist.
Linux is not Windows - Before you ask
User avatar
eanfrid
Level 5
Level 5
 
Posts: 654
Joined: Mon Apr 30, 2012 2:49 am


Return to Newbie Questions

Who is online

Users browsing this forum: dagon, elverion, Google Adsense [Bot] and 22 guests