when I open up the terminal and write the command
cd Desktop
also I have tried
cd /Desktop
a message appears that no file or directory was found what I suppose to do? I have logged in as a root but still have the same problem any help?
To enter your user's Desktop directory, run cd ~/Desktop
(the ~
is expanded into your user's home directory). If your Desktop directory doesn't exist, you can create it via mkdir ~/Desktop
.
cd Desktop/
Goes to the Desktop directory if you are in your home directory.
cd -
Goes back to previous directory.
cd /
Take you to the root directory.
cd ~/Desktop
Will take you to your Desktop Directory no matter where you are.
Run this command in terminal,it will help you.
cd ~/Desktop
gcc yourfilename.c
cd
command askubuntu.com/questions/483129/…