Skip to main content

File Management

Advanced Windows file operations, permissions, and network drives for Linux users familiar with command-line file management.

File Explorer Overview

File Explorer vs Linux File Managers

FeatureWindows (File Explorer)Linux (Nautilus/Dolphin)
OpenWindows + ESuper + F or click Files
Address barShows path with \Shows path with /
Quick accessPinned foldersBookmarks/Places
SearchBuilt-in searchBuilt-in search
TabsWindows 11 onlyAvailable in most
Multiple panesNot built-inAvailable in some

File Explorer Navigation

ActionShortcutLinux Equivalent
Go to parent folderAlt + ↑ or click up arrowAlt + ↑
Go backAlt + ← or back buttonAlt + ←
Go forwardAlt + → or forward buttonAlt + →
RefreshF5F5 or Ctrl + R
Address barCtrl + L or Alt + DCtrl + L
SearchCtrl + FCtrl + F

File System Structure

Drive Letters vs Mount Points

ConceptWindowsLinuxExample
RootEach drive has own rootSingle root /C:\ vs /
System driveUsually C:\Usually /C:\Windows vs /usr
User homeC:\Users\username/home/usernameC:\Users\john vs /home/john
ProgramsC:\Program Files/usr/bin, /optApplications location
System configC:\Windows\System32/etc, /usr/shareConfiguration files
TemporaryC:\Windows\Temp, %TEMP%/tmpTemporary files

Important Windows Directories

Windows PathPurposeLinux Equivalent
C:\Windows\System files/usr/, /lib/
C:\Program Files\64-bit applications/usr/bin/, /opt/
C:\Program Files (x86)\32-bit applications/usr/bin/ (32-bit)
C:\ProgramData\Application data/usr/share/, /var/lib/
C:\Users\username\AppData\User application data~/.config/, ~/.local/
C:\Users\username\Documents\User documents~/Documents/
C:\Users\username\Desktop\Desktop files~/Desktop/

File Operations

Basic File Operations

TaskWindowsLinux CommandNotes
Copy filesCtrl + C, Ctrl + Vcp source destGUI vs command
Move filesCtrl + X, Ctrl + Vmv source destCut and paste
Delete filesDelete keyrm fileTo Recycle Bin
Permanent deleteShift + Deleterm fileBypass Recycle Bin
Select allCtrl + AN/A (command line)In GUI
PropertiesAlt + Enterls -l, statFile details

Command Line File Operations

TaskWindows CommandLinux EquivalentPowerShell
List filesdirlsGet-ChildItem
Copy filecopy source destcp source destCopy-Item
Move filemove source destmv source destMove-Item
Delete filedel filenamerm filenameRemove-Item
Create directorymkdir dirnamemkdir dirnameNew-Item -ItemType Directory
Remove directoryrmdir dirnamermdir dirnameRemove-Item
Show file contenttype filenamecat filenameGet-Content

Advanced File Operations

TaskWindows MethodLinux Equivalent
Find filesSearch box, where commandfind, locate
File sizeProperties, dirls -lh, du
Disk usageProperties of drivedf -h, du -sh
File attributesattrib commandls -la, stat
Compare filesfc commanddiff, cmp

File Permissions & Security

NTFS Permissions vs Linux Permissions

Permission LevelWindows NTFSLinux (rwx)Description
ReadReadr (4)View file content
WriteWritew (2)Modify file content
ExecuteExecutex (1)Run executable files
Full ControlFull Controlrwx (7)All permissions
ModifyModifyrw (6)Read and write
Read & ExecuteRead & Executerx (5)Read and run

Managing Permissions (GUI)

  1. Right-click file/folder → Properties
  2. Security tab
  3. Edit permissions
  4. Add/remove users and groups

Linux Equivalent: chmod, chown, chgrp commands

Managing Permissions (Command Line)

TaskWindows CommandLinux Equivalent
View permissionsicacls filenamels -l filename
Grant permissionicacls filename /grant user:Fchmod +rwx filename
Remove permissionicacls filename /remove userchmod -rwx filename
Change ownertakeown /f filenamechown user filename
Inherit permissionsicacls filename /inheritance:eDefault behavior

Common Permission Scenarios

ScenarioWindows NTFSLinux Equivalent
Private fileOwner: Full Control, Others: Nonechmod 600 file
Shared readableUsers: Read, Owner: Full Controlchmod 644 file
ExecutableAdd Execute permissionchmod +x file
Folder accessFull Control on folderchmod 755 directory
TypeWindows NameLinux EquivalentCommand
Symbolic LinkSymlinkSymbolic linkmklink linkname target
Hard LinkHard LinkHard linkmklink /h linkname target
JunctionJunctionMount bindmklink /j linkname target
Link TypeWindows CommandLinux Equivalent
File symlinkmklink linkname targetln -s target linkname
Directory symlinkmklink /d linkname targetln -s target linkname
Hard linkmklink /h linkname targetln target linkname
Junctionmklink /j linkname targetmount --bind target linkname
# Create symbolic link
New-Item -ItemType SymbolicLink -Path "linkname" -Target "target"

# Create hard link
New-Item -ItemType HardLink -Path "linkname" -Target "target"

# Create junction
New-Item -ItemType Junction -Path "linkname" -Target "target"

Network Drives & Sharing

Mapping Network Drives

MethodWindowsLinux Equivalent
GUIFile Explorer → Map network driveFiles → Other locations
Commandnet use Z: \\server\sharemount -t cifs \\server\share /mnt
PowerShellNew-PSDrivemount command

Network Drive Commands

| Task | Windows Command | Linux Equivalent | | ---------------------- | ------------------------------------------- | ----------------------------------- | ---------- | | Map drive | net use Z: \\server\share | mount -t cifs \\server\share /mnt | | List mapped drives | net use | mount | grep cifs | | Disconnect drive | net use Z: /delete | umount /mnt/share | | Persistent mapping | net use Z: \\server\share /persistent:yes | Add to /etc/fstab |

Sharing Folders

  1. Right-click folder → Properties
  2. Sharing tab → Advanced Sharing
  3. Share this folder
  4. Set permissions

Linux Equivalent: Samba configuration, NFS exports

File Sharing Protocols

ProtocolWindows SupportLinux SupportUse Case
SMB/CIFSNativeVia SambaWindows file sharing
NFSClient onlyNativeUnix file sharing
FTPClient/ServerClient/ServerFile transfer
SSH/SFTPVia toolsNativeSecure file transfer

Hidden Files & System Files

Viewing Hidden Files

MethodWindowsLinux
GUI toggleView → Hidden itemsCtrl + H
Command linedir /als -la
Show system filesFolder Options → Viewls -la (all visible)

File Attributes

AttributeWindowsLinux Equivalent
HiddenH attributeFiles starting with .
SystemS attributeNo direct equivalent
Read-onlyR attributechmod -w
ArchiveA attributeNo direct equivalent

Managing File Attributes

TaskWindows CommandLinux Equivalent
View attributesattrib filenamels -la filename
Hide fileattrib +h filenamemv file .file
Unhide fileattrib -h filenamemv .file file
Make read-onlyattrib +r filenamechmod -w filename
Remove read-onlyattrib -r filenamechmod +w filename

File Search & Indexing

MethodAccessLinux Equivalent
Start menu searchType in Start menuLauncher search
File Explorer searchSearch box in ExplorerFind command
Everything (third-party)Fast file searchlocate, find

Search Indexing

  • Windows: Automatic indexing of common locations
  • Linux: updatedb for locate database

Search Commands

TaskWindowsLinux
Find files by namewhere filenamefind / -name filename
Find in contentBuilt into searchgrep -r "text" /path
Fast filename searchEverything toollocate filename

File Compression & Archives

Archive Formats

FormatWindows SupportLinux SupportNotes
ZIPNativeNativeMost common
RARThird-partyThird-partyPopular but proprietary
7Z7-Zip toolp7zipHigh compression
TARThird-party/WSLNativeUnix standard
GZThird-party/WSLNativeGzip compression

Archive Commands

TaskWindowsLinux
Create ZIPRight-click → Send to → Compressed folderzip archive.zip files
Extract ZIPRight-click → Extract Allunzip archive.zip
Create TARWSL: tar -czftar -czf archive.tar.gz files
Extract TARWSL: tar -xzftar -xzf archive.tar.gz

PowerShell Archive Commands

# Create ZIP archive
Compress-Archive -Path "files" -DestinationPath "archive.zip"

# Extract ZIP archive
Expand-Archive -Path "archive.zip" -DestinationPath "destination"

Advanced File Management

File System Tools

ToolPurposeLinux Equivalent
chkdskCheck disk for errorsfsck
defragDefragment hard driveNot needed (ext4)
sfcSystem file checkerdebsums (Debian)
DISMSystem image managementPackage manager

Disk Management

Windows + X → Disk Management

Linux Equivalent: fdisk, parted, gparted

File Recovery

ScenarioWindowsLinux
Recycle BinRestore from Recycle BinNo built-in (use trash)
Deleted filesFile recovery toolstestdisk, photorec
Previous versionsFile History, Shadow CopiesBackups, snapshots

Command Line File Management Tips

PowerShell File Operations

# Get file information
Get-ChildItem -Force # Show hidden files
Get-ChildItem -Recurse # Recursive listing

# Find files
Get-ChildItem -Recurse -Filter "*.txt"
Get-ChildItem -Recurse | Where-Object {$_.Extension -eq ".log"}

# File operations
Copy-Item "source" "destination" -Recurse
Move-Item "source" "destination"
Remove-Item "file" -Force

Useful Aliases

PowerShell includes Linux-like aliases:

  • lsGet-ChildItem
  • cpCopy-Item
  • mvMove-Item
  • rmRemove-Item
  • catGet-Content

Path Considerations for Linux Users

  • Backslashes: Windows uses \ instead of /
  • Drive letters: C:\path instead of /path
  • Case insensitive: FILE.txt same as file.txt
  • Spaces in names: More common, use quotes
  • Long path support: Enable for paths > 260 characters

WSL File System Integration

  • Access Windows files from WSL: /mnt/c/Users/username/
  • Access WSL files from Windows: \\wsl$\Ubuntu\home\username\
  • File permissions: Different between Windows and WSL
  • Line endings: Windows (\r\n) vs Linux (\n)