Why I can`t go to the desktop in terminal (babun) [closed] - bash

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I cant go to my desktop using cd command.
There is
no such file or directory
error.
What am I doing wrong?

Try using an absolute path like cd /user/home/*YOUR_USERNAME*/Desktop please be advised that Unix bash is case sensitive.
If this don't work you can still run the ls - all command in your home directory to see all folders and files inside.
If you see the "Desktop" folder and just can't change into the directory try using sudo cd ~/Desktop
Hope that helps.

Related

Where should I cp oc binary to on MacOS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
In this documentation it says
unpack the archive and move the oc binary to a directory on your PATH
I tried echo $PATH and it returns:
bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Clearly there are multiple path here, which one should I move cp oc binary to?
/usr/local/bin would be the usual choice for user or third-party executables. That way it won't get wiped out when you update the OS.
See also: Where do you keep your own scripts on OSX? - the question is about scripts rather than binaries, but the same logic applies.

How to list files in windows using command prompt (cmd). I've tried using ' ls ' as in Linux but it shows an error? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
When I tried to use list ls on a Windows command prompt, the system doesn't recognize it. I already added C:\Windows\System32 in the path.
Use the command dir to list all the directories and files in a directory; ls is a unix command.

Moved all home directories to different folder? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Ok this is embarrassing!! I wanted to move remote folder from downloads on to /var/www/html directory !! So I used the following command with sudo
mv /Downloads/remote /var/www/html/remote
And messed up entire file system !! All my home folders which includes downloads, folders and data on desktop everything is moved in /var/www/html/remote and no application or files seems to open !! The only thing that opens is the terminal !! How can I fix this please help !!
First thing to try to reverse it:
sudo mv /var/www/html/remote/<your_user_name> /home/
Otherwise if <your_user_name> isn't in /var/www/html/remote/, do a:
sudo cp -rp /var/www/html/remote/<your_user_name>/* /home/<your_user_name>/
then remove manually what shouldn't be in directory remote and what shouldn't be in directory /home/<your_user_name>/...

Mac terminal -bash command not found? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm completely new to using terminal, and while trying to use brew to install some stuff, I did something to PATH. Now if I tell it to do something it always returns
-bash: blah: command not found.
Is there any way to reset something to fix this? What should I do?
Your path is usually set in either your .profile or .bashrc file. These are found in the root of your user's home directory.
You should be able to fix them by running these two commands in the terminal. They contain the default executable paths
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
You can set your path this way:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
and you can always add other directories if you want. Hope this helps.

MacVim not downloading ./vim file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
Im trying to download plugins for my macVim but there is no ./Vim folder? when I download macvim all I get is the application file which works.....am I downloading it from the wrong place?
In Terminal.app, run the following commands to create the ~/.vim directory and the ~/.vimrc file.
$ cd
$ touch .vimrc
$ mkdir .vim
$ open .vim
~/.vim (case sensitive!) you mean? If it dose not exist, just create it.

Resources