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?
22 Answers
From command line
cd ~/Desktop
mkdir yeswill 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/yesIn 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 yesor
source $HOME/.config/user-dirs.dirs
mdir $XDG_DESKTOP_DIR/yes 4 The command to make a directory is mkdir 'Directory name' , cd 'Directory name' is the command used to go inside an existing directory.