How can I make a directory on the desktop?
I tried cd /desktop
command but it gives an error no such file or directory
.
What's the correct command?
How can I make a directory on the desktop?
I tried cd /desktop
command but it gives an error no such file or directory
.
What's the correct command?
From command line
cd ~/Desktop
mkdir yes
will make a directory named "yes" inside your current user's "Desktop". It will almost instantly show up on your desktop.
You can also do
mkdir ~/Desktop/yes
In case of language other than English where the directories are named into another language this is a more generic way:
source $HOME/.config/user-dirs.dirs
cd $XDG_DESKTOP_DIR
mkdir yes
or
source $HOME/.config/user-dirs.dirs
mdir $XDG_DESKTOP_DIR/yes
ls
in the terminal (if you are located in your home directory).
– lenooh
Jan 26 '16 at 16:12
The command to make a directory is mkdir 'Directory name'
, cd 'Directory name'
is the command used to go inside an existing directory.
cd ~/Desktop
instead ofcd /desktop
. Do you see the difference? Capital "D" makes difference. – Pilot6 Jan 26 '16 at 16:05ls ~
into your question. – Rinzwind Jan 26 '16 at 17:53