Managing files on a VPS traditionally requires knowledge of command-line tools like cp, mv, chmod, and text editors like vim or nano. But it doesn't have to be that complicated.
This guide shows you how to manage VPS files visually - just like managing files on your desktop computer.
Why File Management Matters
Common file tasks on a VPS include:
- Uploading website files and assets
- Editing configuration files
- Setting correct file permissions
- Downloading backups
- Viewing and modifying log files
- Managing SSL certificates
Method 1: VPS Commander File Manager (Easiest)
Features:
- ✅ Drag-and-drop file uploads
- ✅ Built-in code editor with syntax highlighting
- ✅ Visual permission manager (no chmod knowledge needed)
- ✅ Right-click context menus
- ✅ Search functionality
- ✅ Archive management (zip/tar)
- ✅ Works on mobile devices
How to Use:
- Log into VPS Commander and connect to your VPS
- Click "File Manager" in the sidebar
- Navigate folders just like Windows Explorer or macOS Finder
- Upload files by dragging them from your computer
- Right-click any file to see options (Edit, Download, Delete, Permissions)
- Double-click text files to edit in the built-in editor
Method 2: SFTP Clients (FileZilla, Cyberduck)
Best SFTP Clients:
1. FileZilla - Popular Open Source FTP Client (Free)
- Windows, macOS, Linux support
- Drag-and-drop interface
- Site manager for saving connections
- Transfer queue
2. Cyberduck (Free/Paid)
- macOS and Windows
- Clean, native interface
- Cloud storage integration
- Quick Look preview on macOS
3. WinSCP (Free - Windows only)
- Dual-pane interface
- Integrated text editor
- Synchronization features
- Portable version available
Setting Up FileZilla:
- Download and install FileZilla from FileZilla's official website
- Open FileZilla → File → Site Manager
- Click "New Site" and configure:
- Protocol: SFTP
- Host: Your VPS IP address
- Port: 22
- Logon Type: Normal
- User: root (or your username)
- Password: Your VPS password
- Click "Connect"
Your server files appear on the right side, your local files on the left. Drag files between them to upload/download.
Understanding File Permissions
One of the most common VPS file issues is incorrect permissions. Here's a simple explanation:
Permission Numbers Explained:
- 777: Everyone can read, write, execute (dangerous - avoid!)
- 755: Owner full access, others can read/execute (good for directories)
- 644: Owner can read/write, others can only read (good for files)
- 600: Only owner can read/write (good for sensitive files)
Common Permission Scenarios:
Web Files (WordPress, HTML, etc.):
- Directories: 755
- Files: 644
- wp-config.php: 600
Setting Permissions in VPS Commander:
- Right-click the file/folder
- Select "Permissions"
- Use checkboxes or enter number directly
- Check "Apply recursively" for folders
- Click "Apply"
Setting Permissions in FileZilla:
- Right-click file/folder → File Permissions
- Check/uncheck permission boxes
- Check "Recurse into subdirectories" if needed
- Click OK
Common File Management Tasks
Task 1: Upload Website Files
Via VPS Commander:
- Navigate to
/var/www/html(default web root) - Drag your website files from your computer into the browser
- Wait for upload completion
- Right-click uploaded folder → Permissions → Set to 755 for folders, 644 for files
Via SFTP:
- Connect via FileZilla
- Navigate to
/var/www/htmlon right pane - Select files on left pane (your computer)
- Drag to right pane or right-click → Upload
Task 2: Edit Configuration Files
Via VPS Commander:
- Navigate to the file (e.g.,
/etc/nginx/nginx.conf) - Double-click to open in editor
- Make changes with syntax highlighting
- Ctrl+S or click Save
Via SFTP + Local Editor:
- Download file via FileZilla
- Edit locally with VS Code/Notepad++
- Save and upload back to server
Task 3: Download Backup
Via VPS Commander:
- Right-click folder you want to backup
- Select "Create Archive" → Choose .tar.gz
- Wait for compression
- Right-click the created .tar.gz → Download
Task 4: Extract Uploaded Archive
Via VPS Commander:
- Upload your .zip or .tar.gz file
- Right-click → Extract Here
- Archive automatically extracts to current directory
File Ownership Explained
Files on Linux have both permissions and ownership. Ownership determines which user/group "owns" the file.
Common Ownership Scenarios:
Web files should be owned by web server user:
- Ubuntu/Debian:
www-data:www-data - CentOS/RHEL:
nginx:nginxorapache:apache
Fixing Ownership in VPS Commander:
- Right-click file/folder → Ownership
- Set owner to
www-data - Set group to
www-data - Check "Apply recursively" for folders
- Click Apply
Best Practices for VPS File Management
- Always backup before major changes: One wrong deletion can break your site
- Use .gitignore principles: Don't upload sensitive files (.env, credentials)
- Keep file structure organized: Use clear folder names and structure
- Set correct permissions from the start: Prevents security issues
- Regular cleanup: Delete old log files, unused uploads, temp files
- Use descriptive naming: config.bak.2025-01-17 is better than config.bak
Troubleshooting File Issues
Issue: "Permission Denied" when uploading files
Solution: You're trying to write to a directory you don't have permission for. Either change the destination directory permissions or upload as root user.
Issue: Website shows "403 Forbidden"
Solution: Check file permissions (should be 644 for files, 755 for directories) and ownership (should be www-data or nginx).
Issue: Can't edit configuration file
Solution: System config files require root privileges. Ensure you're connected as root user or use sudo.
Issue: Uploaded files disappear
Solution: You might be uploading to /tmp which gets cleared on reboot. Use permanent directories like /var/www/html.
Simplify VPS File Management
VPS Commander provides an intuitive file manager that works just like your desktop. Drag-and-drop uploads, visual editors, and permission management - no terminal required.
Try VPS Commander - $2.99/monthAdvanced: Bulk File Operations
Search and Replace Across Files (VPS Commander):
- Go to File Manager → Tools → Search
- Enter search term
- Choose directory to search in
- View results and optionally replace
Change Permissions for Multiple Files:
- Select multiple files (Ctrl+Click)
- Right-click → Permissions
- Set desired permissions
- All selected files update at once
Conclusion
Managing files on a VPS doesn't require memorizing terminal commands. With visual tools like VPS Commander or SFTP clients like FileZilla, you can manage your server files as easily as files on your desktop.
Key takeaways:
- Use VPS Commander for the easiest, most integrated experience
- Use FileZilla/Cyberduck for large file transfers
- Always set correct permissions (755 for dirs, 644 for files)
- Backup before making major changes
- Keep files organized and clean up regularly