当前位置:网站首页>C盘空间不够 mklink解决VScode扩展迁移到其他盘
C盘空间不够 mklink解决VScode扩展迁移到其他盘
2022-07-25 18:13:00 【JackieZhengChina】
第一步
将C盘C:\Users\JackieZheng\.vscode文件夹剪切到D:\vscode中去
第二步
以管理员身份运行cmd,执行如下命令,建立符号链接在管理员身份下的cmd中输入如下命令
mklink /D "C:\Users\JackieZheng\.vscode" "D:\vscode\.vscode"
两个双引号之间有一个空格
同样对于较大的软件的迁移就可以通过mklink建立符号链接
附:mklink的用法
mklink是Windows 下的一个类似于linux下In的命令,其作用是在NTFS文件系统中创建文件或目录的链接(类似于桌面快捷方式)。如果加以利用其发挥的作用是非常的大的,不仅可以帮助我们节省不少时间,而且可以使我们重装系统后不再丢失用户文件。
Mklink命令详细介绍
Windows 下的mklink命令通过指定参数可以建立出不同形式的文件或目录链接,分为硬链接(hard link)、符号链接(symbolic link)和软链接(联接)(junction)三种。
1.符号链接(symbolic link)
建立一个软链接相当于建立一个文件(或目录),这个文件(或目录)用于指向别的文件(或目录),和win的快捷方式有些类似。删除这个链接,对原来的文件(或目录)没有影像没有任何影响;而当你删除原文件(或目录)时,再打开链接则会提示“位置不可用”。
2.软链接(联接)(junction)
作用基本和符号链接类似。区别在于,软链接在建立时会自动引用原文件(或目录)的绝对路径,而符号链接允许相对路径的引用。
3.硬链接(hard link)
建立一个硬链接相当于给文件建立了一个别名,例如对1.TXT创建了名字为2.TXT的硬链接,若使用记事本对1.TXT进行修改,则2.TXT也同时被修改,若删除1.TXT,则2.TXT依然存在,且内容与1.TXT一样。
建立链接请注意:
1、建立文件或目录链接限于 NTFS 文件系统,符号(软)链接的建立可以跨文件系统;
2、硬链接只能用于文件,不能用于目录,符号(软)链接可以为目录建立链接;
3、硬链接只能建立同一分区内的文件指向;
4、硬链接不允许对空文件建立链接,符号(软)链接可以。
Mklink的参数定义
无参数指定:建立文件的符号链接。无参数指定的默认情况下,建立的是文件的符号链接,删除链接文件不会影响源文件,
/d:建立目录的符号链接符号链接(symbolic link)
/j:建立目录的软链接(联接)(junction)
/h:建立文件的硬链接(hard link)
命令格式:MKLINK [[/D] | [/H] | [/J]] Link Target
最后,至于删除建立的链接,跟删除文件一样使用”DEL”命令。
边栏推荐
- What is the relationship between cloud fluidization and cloud desktop
- 对角化、A的幂
- Ch582 ble 5.0 uses Le coded broadcast and connection
- 为什么数字化未来取决于3D实时渲染
- Mock service Moco series (II) - JSON format, file file, header, cookie, solving Chinese garbled code
- How to read a Book
- srec_cat 常用参数的使用
- Good news! Ruiyun technology was awarded the member unit of 5g integrated application special committee of "sailing on the sea"
- STM32F105RBT6 内部flash调试
- 云流化和云桌面有什么关系
猜你喜欢

408 Chapter 2 linear table

超全Mavan标签详解

使用sqldeveloper连接mysql

Update 3dcat real time cloud rendering V2.1.2 release

Sorting also needs to know the information and linked list

专访即构科技李凯:音视频的有趣、行业前沿一直吸引着我

如何选择数字孪生可视化平台

Redis source code and design analysis -- 16. AOF persistence mechanism

MySQL 索引优化全攻略

Introduction to cloud XR and development opportunities of cloud XR in 5g Era
随机推荐
Keil5 “Loading PDSC Debug Description Failed for STMicroelectronics STM32Hxxxxxxx”解决办法
结合GHS MULTI使用瑞萨E1仿真器实现对瑞萨RH850单片机的仿真调试
Postman get started quickly
The milestone progress has been made in the joint development of whole human GPCR antibody drugs by baicalto and liberothera
关于云XR介绍,以及5G时代云化XR的发展机遇
Express of nodejs simple example program
MySQL lost the previous 0 after the decimal number type select
Hit the test site directly: summary of common agile knowledge points in PMP examination
ORB_ Slam3 recurrence - Part I
How many points did NPDP pass? How to pass with high scores?
Creation of unity Bezier curve
Linux启动mysql报错
srec_cat 常用参数的使用
[MySQL]数据库中的索引为什么是用B+树来实现? 哈希表/红黑树/B树是否可行呢?
MATLAB中join函数使用
超全Mavan标签详解
"Digital security" alert NFT's seven Scams
Sorting also needs to know the information and linked list
程序的编译
SLA 、SLO & SLI