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...
Given that you are in root directory, use the ls command to display as below and...
Given that you are in root directory, use the ls command to display as below and take screenshots (a) all file names starting with the letter “d” (b) all directory names starting with the letter “d” (c) all file names containing “abc”
Given that you are in root directory, use the ls command to display as below and...
Given that you are in root directory, use the ls command to display as below and take screenshots (a) all file names starting with the letter “d” (b) all directory names starting with the letter “d” (c) all file names containing “abc”
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...
Add ssh-user to the super doers (root privilege) Copy Mac232 directory located in /root and all...
Add ssh-user to the super doers (root privilege) Copy Mac232 directory located in /root and all its contents to ssh-user home directory (Hint: use the option –R with cp command to recursively copy the directory’s contents) Logout then login as ssh-user - You will need to use the sudo command Change the ownership of MAC232 directory and all its contents to have the owner of “ssh-user” (Hint: use the option –R with chown command to recursively change the ownership of...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used to find out which user account you are logged into?      . This command may come in handy in the following exercises. Ensure you are in your home directory of the student1 account. Use the echo command with output redirection to create a file called labfile4 and put the following text in this file: “This is the first line of labfile4”. Using the symbolic notation...
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...
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)
“Create a new Java Project” Project name = Lab3 “Use project folder as root for sources...
“Create a new Java Project” Project name = Lab3 “Use project folder as root for sources and class files” Finish Set your classpath for the workspace: Project > Properties > Java Build Path Libraries Add External Jars # if on Windows Choose algs4.jar and stdlib.jar from your user directory Documents/alg4 # else Choose algs4.jar and stdlib.jar from ~/alg4 (I hope you’re getting familiar with this sequence. From now on, I’ll just say “create new project LabX”, and you’ll need to...