Question

If your current working directory is /home/alice/Documents/Financial, and you want to change it to /home/alice, you...

If your current working directory is /home/alice/Documents/Financial, and you want to change it to /home/alice, you can use this command:

a.

cd ..

b.

cd ../alice

c.

cd /alice

d.

cd ../../

Homework Answers

Answer #1

Solution:

(D) cd ../ ../

Reason:

.. represents parent directory, so writing ../.. moves the current working directory two times up the hierarchy which would be /home/alice

Other option is not true, reason for other options:

a. cd .. will change the current directory to /home/alice/Documents

b. cd ../alice will make the current directory as /home/alice/Documents/alice which might be an invalid path

c. cd /alice will change the current directory to /home/alice/Documents/Financial/alice which might be an invalid path

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
Assume you are at your home directory: Write the commands: Create a directory DR1 Change to...
Assume you are at your home directory: Write the commands: Create a directory DR1 Change to DR1 Create DR2 in DR1 Change to DR2 Also answer the following: What will each command do :    5. enter cd .    6. enter   cd ..    7. enter    cd
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...
Linux commands, the answer only about writing commands 1. What is the cd command that will...
Linux commands, the answer only about writing commands 1. What is the cd command that will change the current directory (which is “bob”) to the alice directory using a relative pathname (use the simplest possible relative pathname). Be sure to return to the “bob” directory 2. What is the cd command that will change the current directory (which is “bob”) to the etc directory using a relative pathname (use the simplest possible relative pathname). Be sure to return to the...
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....
What's appropriate setting for your home directory if you want to share some subdirectories, but don't...
What's appropriate setting for your home directory if you want to share some subdirectories, but don't want the anyone else to browse, add or remove entries in your home directory. 1. 700 2. 744 3. 755 4. 711
At the command prompt, type cd /etc and press Enter. At the command prompt, type pwd...
At the command prompt, type cd /etc and press Enter. At the command prompt, type pwd and press Enter to view the current working directory. Did your current working directory change? Did you specify a relative or absolute pathname to the /etc directory when you used the cd /etc command?
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...
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...
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”
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT