>_
TerminalCMD Support & Knowledge Base
CLI Tools & Commands

File & Disk Utilities Cheat Sheet

Reference guide for mass file manipulation, advanced permissions, and partition management commands.

1. Disk Partition Management (Diskpart)

Use the Windows diskpart utility to list, select, and manage hard drive volumes and partitions directly from the command prompt:

diskpart

list disk

select disk 0

list volume

2. Linux File Permissions (Chmod & Chown)

Modify access rights and ownership for files and directories in Unix-like environments to secure configuration files:

chmod 755 script.sh

chown -R user:group /var/www/html

3. Directory and File Syncing

Quickly mirror directories or transfer large file trees across paths using optimized terminal commands:

robocopy C:\Source D:\Destination /MIR

rsync -avz /path/to/src /path/to/dest