CLI Files Manager

Comprehensive, powerful command-line file management tool for Linux

File operations, MD5 checksums, hex viewing, recursive size analysis, device-wide search, and desktop integration - all from your terminal.


cli-files-manager - a comprehensive, powerful command-line file management tool with advanced features for Linux. Powerful file operations, MD5 checksums, hex viewing, recursive size analysis, device-wide search, and desktop integration - all from your terminal.

  • ๐Ÿ“Š Recursive size analysis - Scan folders and see detailed size breakdowns with progress bar
  • ๐Ÿ—‘๏ธ Safe deletion - Delete files and folders with confirmation prompts
  • ๐Ÿ“– Text file viewer - View any text file with paging support
  • ๐Ÿ” Hex/Binary viewer - Examine raw file contents in hexadecimal format
  • ๐Ÿ” MD5 hash calculator - Generate and verify file checksums
  • ๐Ÿ“‚ Open location - Open current or selected path in system file explorer
  • ๐Ÿ”Ž Device-wide search - Find files by pattern with preview and navigation
  • ๐Ÿ“ Interactive directory navigation - Change working directory with tab completion
  • ๐Ÿ’พ Detailed file info - View metadata, timestamps, sizes, and MD5
  • ๐Ÿ–ฅ๏ธ Desktop integration - Create .desktop entries for app menu and desktop
  • ๐ŸŽจ Color-coded output - Beautiful terminal UI with intuitive color coding
  • โšก Tab completion - Auto-complete file and directory paths

Dependencies:

# Arch Linux
sudo pacman -S python python-pip

# Debian/Ubuntu
sudo apt install python3 python3-pip

# Fedora/RHEL
sudo dnf install python3 python3-pip

No additional Python packages required - uses only standard library!

Setup:

git clone https://github.com/aixandrolab/cli-files-manager.git
cd cli-files-manager
python app.py

# Launch the interactive menu
python app.py

# Inside the application:

# 1. Analyze folder size
๐Ÿ“Š ANALYZE SIZE โ†’ /home/user/Downloads

# 2. Search for files
๐Ÿ”Ž SEARCH โ†’ pattern: *.txt

# 3. View file in hex
๐Ÿ” VIEW HEX โ†’ select any binary file

# 4. Calculate MD5
๐Ÿ” MD5 HASH โ†’ select any file

# 5. Create desktop shortcut
๐Ÿ–ฅ๏ธ DESKTOP ENTRY โ†’ create system integration

OptionCommandDescription
1๐Ÿ“Š ANALYZE SIZEAnalyze file/folder size with progress bar
2๐Ÿ—‘๏ธ DELETEPermanently delete files or folders
3๐Ÿ“– VIEW TEXTDisplay text file content with pager
4๐Ÿ” VIEW HEXShow binary/hexadecimal file view
5๐Ÿ” MD5 HASHCalculate MD5 checksum of any file
6๐Ÿ“‚ OPEN LOCATIONOpen path in system file explorer
7๐Ÿ”Ž SEARCHSearch entire device for files by pattern
8๐Ÿ“ CHANGE DIRChange working directory with TAB completion
9๐Ÿ’พ FILE INFOShow detailed file metadata
10๐Ÿ–ฅ๏ธ DESKTOP ENTRYInstall app to system menu/desktop
0๐Ÿšช EXITExit application

Analyze Folder Size:

๐Ÿ“ /home/user/Downloads
[โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 1250/1250 files
๐Ÿ“ TOTAL SIZE: 2.45 GB

Search Files Device-Wide:

๐Ÿ” Enter search pattern: *.mp3
๐Ÿ“ Search root: /home/user/Music
# Results show all matches with sizes and paths

Calculate MD5 Hash:

MD5 Hash of file.iso:
a1b2c3d4e5f678901234567890123456

View Binary File in Hex:

00000000  89 50 4e 47 0d 0a 1a 0a  00 00 00 0d 49 48 44 52  .PNG........IHDR
00000010  00 00 02 00 00 00 02 00  08 06 00 00 00  ... etc

Create Desktop Integration:

โœ… SUCCESS
โœ“ Application Menu: ~/.local/share/applications/cli-files-manager.desktop
โœ“ Desktop: ~/Desktop/cli-files-manager.desktop

cli-files-manager/
โ”œโ”€โ”€ app.py                     # Main entry point
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ asciiart.py            # ASCII logo and separators
โ”‚   โ”œโ”€โ”€ colors.py              # Terminal color definitions
โ”‚   โ”œโ”€โ”€ completer.py           # Tab completion handler
โ”‚   โ”œโ”€โ”€ desktop_entry.py       # .desktop file creator
โ”‚   โ””โ”€โ”€ file_manager.py        # Core file management logic
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ icons/
โ”‚   โ”‚   โ””โ”€โ”€ icon.png           # Application icon
โ”‚   โ””โ”€โ”€ images/
โ”‚       โ””โ”€โ”€ main_menu.png      # Menu screenshot (documentation)
โ”œโ”€โ”€ LICENSE                    # BSD 3-Clause License
โ””โ”€โ”€ README.md                  # Documentation

  • Pure Python 3 - Uses only standard library (no external dependencies)
  • Tab completion - Powered by Python's readline module with custom path completer
  • Recursive scanning - Efficient directory walking with real-time progress
  • Hex viewer - Binary-safe reading with hexdump-style formatting
  • MD5 calculation - Streaming hash computation for files of any size
  • Desktop integration - Generates freedesktop.org-compatible .desktop files
  • Paging support - Uses less/more for long output, falls back to inline display

  • Deletion is permanent - No recycle bin, files are removed immediately
  • All operations require confirmation - Especially destructive actions
  • No data collection - Works completely offline, no telemetry
  • Respects permissions - Cannot access files without proper OS permissions
  • Desktop files are safe - Created in user directories, not system-wide

Tab completion not working?
pip3 install readline
"less" pager not found?
sudo apt install less (Debian/Ubuntu) or sudo pacman -S less (Arch)
Desktop entries not showing?
update-desktop-database ~/.local/share/applications/ then log out and back in
Permission denied errors?
Run with appropriate user permissions. Do NOT run as root unless necessary.

By using this software, you agree to the full disclaimer terms.

Software provided "AS IS" without warranty. You assume all risks for file operations, deletions, and system interactions.

Full legal disclaimer: See DISCLAIMER.md

License: BSD 3-Clause License

Links


Created by Aixandrolab

Copyright ยฉ 2026, Alexander Suvorov. All rights reserved.

If you find this useful, please star the repository!