Please list the command to finish the following steps:
- First switch to the root directory
- Use command *cd* to switch to the directory where you store your homework code.
Root Directory:
To switch to the root directory use
$ cd /
To switch to the directory where you store your homework
code use
$ cd ~/LOCATION OF THE homework code
Example:
"Suppose homework code file is stored on Desktop in Homework
folder" then use
$ cd /
$ cd ~/Desktop // Path will be the Desktop.
$ cd "Homework" // Will go to the Homework Folder where your
"homework code" is present.
IF YOU WANT TO CHECK WHAT DIRECTORY YOU ARE IN THEN USE
$ pwd // Shows what directory you are in
IF YOU WANT TO MOVE ONE DIRECTORY UP THEN USE
$ CD .. // Moves one directory up (From Homework folder to Desktop)
Get Answers For Free
Most questions answered within 1 hours.