122k views
1 vote
The terminal window wants to evaluate your current bash knowledge by using the ~/workspace/nested-directories folder:

a. cd into the nested-directories/nested-level-1/ directory by using an absolute path
b. cd into the nested-level-3/ directory by using a relative path
d. Move the entire ~/workspace/config/ directory to the nested-level-1/ directory

User StaticVoid
by
5.5k points

1 Answer

1 vote

Answer:

a. cd into the nested directories/ nested - level - 1 / directory using an absolute path

Step-by-step explanation:

The directory is a location on the hard disk, which is also called a folder. It contains the files and also contains the other directories called sub directories.

A path to a file is merged with a slash and determines the file or directory in the operating system. An absolute path is the location file or directory from the actual file system

The directory's absolute path starts with a slash, and all slashed in the directory separates the directions.

All directions in the absolute path are written on the left side. The last name in the path may belong to the file, and the pwd command can determine the current directory.

The relative path is the location of the file. It begins with the working directory. An absolute path is unambiguous and working with deeply nested directories.

There are two commands which are used such as

  • cd
  • pwd
  1. cd is used for changing directory
  2. pwd is used for the working directory

We easily navigate the file system with the help of an absolute path.

User Shay Levy
by
5.1k points