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
  • 67,791
  • 32
  • 179
  • 269

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.

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
  • 13,065
  • 5
  • 49
  • 65
Atul R
  • 21
0

Run this command in terminal,it will help you.

cd ~/Desktop
gcc yourfilename.c
Avinash Raj
  • 78,556
  • 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