So every time I type cd /Documents it says
Users-MBP-4:~ user$ cd /Documents
-bash: cd: /Documents: No such file or directory
Users-MBP-4:~ user$
For some reason it only works when I type cd /Applications
I'm not too experienced with Using terminal on the Mac, any advice will help!
Your documents are stored within your home directory, not at the root of the volume.
Try this instead:
cd ~/Documents
The path should be:
cd /Users/YourUserName/Documents
Just substitute for YourUserName
Related
I'm using Ubuntu 20.4.05 LTS. It is not locating any directory as you can see in the image. For example, cd ~/Downloads doesn't take me to the directory.No such file or directory image What should I do?
as a first step you must know the position of the directory by writing the command pwd
pwd
then you can write the ls command to see the contents of the list of folders or directories
ls
if the file you need is in that directory, you can enter that file by writing the command cd
cd
access folder
I have my xcode Project saved as "GAT App" in a folder on my Desktop. When I try to access the folder using the terminal, this is the error I get:
Austins-MacBook-Air:~ austin$ cd Desktop
Austins-MacBook-Air:Desktop austin$ cd GAT App
-bash: cd: GAT: No such file or directory
any idea how to fix this?
By typing
cd GAT\ App
The \ tells the system that the next whitespace does not separate two arguments but is just one string.
$ cd /Desktop
bash: cd: /Desktop: No such file or directory
and start. command finally I have got the Desktop folder
You can try :
$ cd ~/Desktop
where ~ represents your home directory.
If you are using git bash it does not matter which os you use, your home directory located at ~ and Desktop is under ~/Desktop
Windows
Under windows, it will be mapped to /c/Users/<your user>/Desktop
Linux based Os
Under unix/linux it will be your /home//Desktop
I am using ubuntu 16.04 and created a virtual environment called 'tensorflow1' as shown above. I am using putty to access a machine remotely. So I was trying to change directory by typing "cd /tensorflow1/models/research" but it says "-bash: cd: /tensorflow1: No such file or directory" in ubuntu, but the file is there. I typed "ls" and it also shows the file. Why is it so?
When you type ls you see the content of the current directory. When you type cd /tensorflow1 you're trying to enter a directory tensorflow1 at the root (/) of the filesystem and the directory is certainly not there. You just need
cd tensorflow1/models/research
to enter a subdirectory of the current directory. Or
cd ./tensorflow1/models/research
because . means "the current directory".
You probably want cd ./tensorflow1/models/research or just cd tensorflow1/models/research.
Read about root directory, home directory, working directory then about path_resolution(7)
I am beginning to learn ruby and was following the instructions of one video to access the desktop through the -ls command in the terminal. Now, I would like to get out of the desktop in the terminal and don't know how. I know, I know I am a total noob... but can someone please help. Thanks. BTW the command I wrote was:
my-iMac~ me$ cd Desktop/
my-iMac:Desktop samuel$ ls
Where would you like to go?
Go home: cd or cd ~
Go to the previous working directory: cd $OLDPWD
Go to parent of the current directory: cd ..
Go to any directory you want: cd /path/to/directory
cd .. will take you back up 1 level.
for windows, you can open up the file explorer copy path then in your command prompt type "cd" then paste path. Your command prompt should now default to that path. (you can also type the entire path)
cd C:\Users\username\Documents\Folder