Question

Please list the command to finish the following steps: - First switch to the root directory...

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.

Homework Answers

Answer #1

Root Directory:

  • Linux operating systems all directories and files are stored in root directory.
  • Root Directory is designated by a forward slash ( / ).
  • The word root by itself refers to the root user or root account, i.e., The Administrator's account,
  • "The Administrator's of System" is the only user that has complete access to every command and file on the system.

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)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What command would you use to view the files and folders in the C:\windows directory? Use...
What command would you use to view the files and folders in the C:\windows directory? Use relative references. What command would you use to view only the directories in the C:\windows directory? Use relative references. Hint: Use a switch. What command would you use to view only the .com files in the C:\windows\system32 directory? Use relative references. What command would you use to create a directory called JUNK at the root. Use relative references. What command would you use to...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /  ...
PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /   command to review the contents of the / directory Review the Linux Filesystem Standard (FSSTD) and document the following directories’ contents / ------- |--bin |--boot               |--dev               |--etc |--home               |--lib               |--mnt               |--opt               |--root               |--sbin               |--tmp               |--usr               |--var 3. use the cd etc  OR cd /etc  to change your default directory to the etc directory 4. use the...
Create x empty files in a given directory (x is a number), following a naming format...
Create x empty files in a given directory (x is a number), following a naming format like this: myfile1, myfile2, etc. Ask the user to enter the first part file name and the number of files he/she wants to create. Hint: you may use the “touch” command to quickly create empty files. Take two screenshots: a) Display the source code in an editor (#4-13) b) Execute your script in the terminal, and display the command and the result (#4-14)
1. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal...
1. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!. 2. At the command prompt, type vi diskconfig.sh and press Enter to open a new file for editing called diskconfig.sh in your home directory. Why is it good form to use a .sh extension for shell scripts? 3. Enter the following text into the diskconfig.sh file. As you are typing the contents, ensure...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() { char str[100]; /*Buffer to hold reversed string */ reverse("cat", str); /*Reverse the string "cat" */ printf("reverse(\"cat\")=%s\n", str); /*Display result */ reverse("noon", str); /*Reverse the string "noon" */ printf("reverse(\"noon\")=%s\n", str); /*Display result */ } reverse(char *before,...
If possible, please answer all 4 questions. Thanks! :) 2. Which of the following can be...
If possible, please answer all 4 questions. Thanks! :) 2. Which of the following can be used to automatically obtain software packages from Internet software repositories? (Choose all that apply.) a. yum b. get c. apt-get d. yast -i 3. What command can you use to rebuild the RPM database? 4. You have downloaded the source code for a program that you wish to compile. Which command must you first run in the source code directory? a. ./configure b. make...
The first script you need to write is login.sh, a simple script that you might run...
The first script you need to write is login.sh, a simple script that you might run when you first log in to a machine. We'll expand this script later, but for now it should include your name, username, hostname, current directory, and the current time. Here is some sample output to help guide you. Note that the bolded lines that start with "[user@localhost ~]$" are the terminal prompts where you type in a command, not part of the script. Of...
Discussion Question _________________________________ Please refer to Chapter 3 for Types of Social Media List all social...
Discussion Question _________________________________ Please refer to Chapter 3 for Types of Social Media List all social media sites that you use. For at least two from your list, answer the following questions. Please respond in detail--You will Not receive points for just yes or no answers. What types of advertising do you receive from each of the sites you listed? How do you respond to them? Have visited a particular store or store website as a result of the advertisement?...
Create another list to store your Song objects using a linked list. Show that you understand...
Create another list to store your Song objects using a linked list. Show that you understand how to use pointers and linked list by demonstrating the use of them with the Song objects. 8) Additional criteria for your code - Usability – your code provides users with meaningful messages/prompts for inputs and display of outputs. [3 points] - Accuracy - your code must run and terminate normally. [3 points] - Readability – your code should be well structured and easy...