System Variables
set: show all environment variables:
Windows: List Environment Variables - CMD & PowerShell - ShellHacks
setx: set system variables
setx | Microsoft Docs
path: no args --> pwd or set user/system path variables (path for searching for .exe)
date: show/set system date
Processes Management
tasklist: show all running processes and fitler
taskkill: end target running processes
File Management
move: mv
copy: cp
erase/del: Deletes one or more files. If you use erase to delete a file from your disk, you can't retrieve it.
rd/rmdir: delete directories
comp: byte-wise file comparison:
rename:
-
You can't specify a new drive or path when renaming files. You also can't use this command to rename files across drives or to move files to a different directory.
where: search for files, similar to linux 'find' and 'which'
Disk Management
create: Creates a partition or shadow on a disk, a volume on one or more disks, or a virtual hard disk (VHD).
delete: Deletes a partition or a volume. It also deletes a dynamic disk from the list of disks. ==> !!!! not a file level command ==> use 'del' for file management
clean: delete all partitions
recover: salvage good data from a bad disk
remove: Removes a drive letter or mount point from the volume with focus. ==> not a file level command !!!

本文详细列举了Windows系统中用于查看和管理环境变量、进程、文件及磁盘的各种命令,如setx设置系统变量,tasklist显示运行进程,taskkill结束进程,move和copy移动及复制文件,以及disk管理命令如创建、删除分区等。这些命令为日常系统维护和文件操作提供了便利。

2146

被折叠的 条评论
为什么被折叠?



