3

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?

Braiam
  • 66,947
  • 30
  • 177
  • 264
arze ramade
  • 41
  • 1
  • 1
  • 4

3 Answers3

7

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.

Ramchandra Apte
  • 1,668
  • 1
  • 13
  • 20
2

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.

Volker Siegel
  • 12,820
  • 5
  • 48
  • 65
Atul R
  • 21
  • 2
0

Run this command in terminal,it will help you.

cd ~/Desktop
gcc yourfilename.c
Avinash Raj
  • 77,204
  • 56
  • 214
  • 254
  • Why sudo to compile? One link at random: http://cboard.cprogramming.com/linux-programming/42383-never-compile-root.html – Rmano Nov 08 '13 at 16:13