Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm brand new to using Mac Terminal and I can't seem to figure out what's going on when I try to navigate directories. I have experience in MS-DOS (from many many years ago...but I still get the basic idea) and it's not working the way I'd like it to.
I'm trying to navigate to any directory and it's not allowing me to. If I type:
cd/Applications
It's giving me the error:
-bash: cd/Applications: No such file or directory
I've tried to navigate to it from the default directory and I also tried to navigate to it after typing:
sudo -s
Which I read was how to get to the absolute root directory. I know this is impossibly basic but can someone point me in the right direction on what I'm doing wrong? Thanks!
You need a space between the command name, "cd", and each of its arguments, in this case directory name "/Applications". So:
cd /Applications
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I had an account name bally and had to create a new account called jbally because there was something wrong with bally.
This fixed the original issue which is not important but now when I go to save a vim file is says that it's not writable even though the the permissions show -rw----- which match another computer's permissions where vim works on.
any tips?
Thanks,
Max
image one
image two
image three
Since you probably didn't change the owner of any of the files when you created the new account. You just need to change the owner.
To do this use chown to change the owner to jbally.
sudo chown -R jbally /User/bally
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to execute c++ binary in terminal without inputting "./a.out", just typing "a.out"
In my school's PC(solaris10), I can just type a.out and the program executed. However, on my PC's solaris11 doesn't accept just "a.out".
I believe there is a way to make it possible. If you know, please tell me.
If possible, I want to know the instruction fo solaris, Ubuntu and macOS X, because I usually use Ubuntu and mac.
Thanks in advance!!
It sounds, like the PATH variable has been set to include the home directory at your schools PC. You see, each time you enter a command without a path, it searches your entire PATH (which can consist of multiple paths) for something that matches the filename you supplied and executes the first thing it finds.
Check this link for some instructions: http://www.troubleshooters.com/linux/prepostpath.htm
Either you do a temporary fix, with
PATH=$PATH:/data/myscripts
or you edit the hidden file .bash_profile in your home directory for a more permanent fix.
I hope this helps.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
im really new to unix, i wanted to learn how to edit a .profile script on OSX lion to help me have shortcut for this directory:
/usr/local/cellar/node_modules/node.io/bin/node.io
i want to be able to run the program like this:
node.io -h
instead of :
/usr/local/cellar/node_modules/node.io/bin/node.io -h
for some reason npm hasn't decided to set paths for me, even though i used -g, so going to do it manually.
export PATH=${PATH}:/usr/local/cellar/node_modules/node.io/bin
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I thought it was a good idea to mess around with my terminal and install a lot of things I didn't know on to it. I have come to my senses are need to restore it so it is clean like the day I got it. I have looked around and can not find anything on google.
Is there any commands I can run which will wipe it and start a fresh?
This is what I stupidly installed
https://github.com/skwp/dotfiles
I have tried running
rm -rf ~/.yadr
But nothing happens.
Look in ~/.profile for anything strange. Usually that contains at most a PATH definition. Or, look in ~/.bash_profile. Take a copy first and delete anything you don't like the look of!
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
on my local website i would like to the /web directory point to a folder on my windows box. I have tried putting a shortcut there and it failed. I tried creating an alias in my httpd.conf and i get a 403 http error. Im out of ideas!
The 403 error means that for some reason the server process doesn't have permission to access that folder, but it looks like you're probably doing that alias correctly.
Just making sure, everything is entirely within windows? If it was linux pointing to windows, you could mount --bind it somewhere, or chmod it to fix the permissions issue.