4. Configuring File and Print Services (20 percent) Flashcards

1
Q

What is a symbolic link and what command?

A

http://technet.microsoft.com/en-us/library/cc753194%28WS.10%29.aspx

http://technet.microsoft.com/en-us/library/cc754077%28WS.10%29.aspx

Mklink

There are three types of links available to utilize symbolic linking on a system.

Absolute symbolic links are links that point to the absolute path of the file or folder—for example, C:\windows.

Relative symbolic links are links that point to a file or directory using the relative path—for example, ../../file.txt.

Directory junctions enable you to map any local folder to any other local folder. For example, if you have three folders—C:\folder1, C:\folder2 and C:\documents—you can create directory junctions in such a way that C:\documents will look like a subfolder of the two other folders—that is, C:\folder1\documents and C:\folder2\documents.

Creates a symbolic link.

For examples of how to use this command, see Examples.

Syntax

mklink [[/d] | [/h] | [/j]] <link></link> <target></target>

Parameters

Parameter

Description

/d

Creates a directory symbolic link. By default, mklink creates a file symbolic link.

/h

Creates a hard link instead of a symbolic link.

/j

Creates a Directory Junction.

<link></link>

Specifies the name of the symbolic link that is being created.

<target></target>

Specifies the path (relative or absolute) that the new symbolic link refers to.

/?

Displays help at the command prompt.

Examples

To create a symbolic link named MyDocs from the root directory to the \Users\User1\Documents directory, type:

mklink /d \MyDocs \Users\User1\Documents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly