惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
C
Check Point Blog
Vercel News
Vercel News
Y
Y Combinator Blog
G
Google Developers Blog
P
Proofpoint News Feed
WordPress大学
WordPress大学
MongoDB | Blog
MongoDB | Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
L
LangChain Blog
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
博客园_首页
B
Blog RSS Feed
The Cloudflare Blog
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security Blog

Stonecharioteer on Tech

I Traced My Traffic Through a Home Tailscale Exit Node What Was I Reading Last? In Three Not-So-Easy Pieces Dogfooding Is Hard Code blocks in your books, finally GoForGo v0.9.0 Merrilin - We built an app to read books I use a Macbook now Data Structures & Algorithms - Preparing for Interviews Using a local DNS namespace for local service discovery Direction KOllector - Publishing KOReader Highlights gbt: branches touched in the last 24 hours A Soiree into Symbols in Ruby Some Smalltalk about Ruby Loops Ruby Blocks Returning from Ruby Blocks, Procs and Lambdas My Linux Laptop Finally Works: How Claude Helped Me Fix Years of Annoyances TIL: Watchexec - Modern File Watching for Development Workflows A Less Busy Mind GoForGo - Learn Go through live examples Migrating My Old Blog to Hugo with Claude The Qtile Window Manager: A Python-Powered Tiling Experience Read the RFCs that Built the Internet Py-x-Protobuf - Or How I Learned to Stop Worrying and Love Protocol Buffers Python Reverse a List New Beginnings Leaving ChainSafe Systems Screen Lock for Cinnamon Desktop using Zenity and Terminal Commands Crews Not Teams A System for Getting Better at LeetCode
TIL: Progress Command for Linux Operations and Linux Hand...
2021-01-16 · via Stonecharioteer on Tech

Progress - Visual Progress for File Operations

  • GitHub - Xfennec/progress
  • Linux tool to show progress for cp, mv, dd, and other file operations
  • Formerly known as cv (Coreutils Viewer)
  • Provides visual feedback for long-running file operations

Progress Command Features

  • Real-time Monitoring: Shows current progress of running file operations
  • Multiple Process Support: Can monitor several operations simultaneously
  • Automatic Detection: Finds running file operations without manual specification
  • Detailed Information: Transfer rates, ETA, and completion percentage
  • Low Overhead: Minimal system resource usage

Supported Operations

  • cp (copy): File and directory copying operations
  • mv (move): File and directory move operations
  • dd: Low-level data copying and conversion
  • tar: Archive creation and extraction
  • gzip/gunzip: Compression and decompression
  • cat: File concatenation operations

Usage Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Monitor all running file operations
progress

# Monitor specific process by PID
progress -p 1234

# Show progress with specific update interval
progress -w 2

# Monitor only specific commands
progress -c cp

Learning Resources

Linux Handbook

  • Linux Handbook
  • Comprehensive learning resource for Linux users
  • Covers beginner to advanced Linux topics
  • Practical tutorials and explanations

Linux Handbook Content Areas

  • Basic Commands: Fundamental Linux command usage
  • File Management: File operations, permissions, and organization
  • System Administration: User management, services, and configuration
  • Shell Scripting: Bash scripting and automation
  • Networking: Network configuration and troubleshooting
  • Security: Linux security concepts and practices

Learning Approach

  • Hands-on Examples: Practical command examples with explanations
  • Progressive Difficulty: From basic concepts to advanced techniques
  • Real-world Scenarios: Practical applications and use cases
  • Reference Material: Quick lookup for specific commands and concepts

System Administration Benefits

Monitoring Long Operations

  • Large File Transfers: Monitor copying of large files or directories
  • Backup Operations: Track progress of backup and restore operations
  • Disk Imaging: Monitor dd operations for disk cloning or imaging
  • Archive Operations: Track tar archive creation or extraction

Troubleshooting and Planning

  • Performance Analysis: Understand transfer rates and bottlenecks
  • Time Estimation: Plan operations based on progress indicators
  • Resource Management: Monitor system load during file operations
  • User Experience: Provide feedback during long-running operations

Key Takeaways

  • Visual Feedback: Progress indicators significantly improve user experience for long operations
  • System Monitoring: Understanding what’s happening on your system is crucial for effective administration
  • Learning Resources: Comprehensive guides like Linux Handbook accelerate learning
  • Command Line Efficiency: Specialized tools can greatly improve command-line productivity
  • Open Source Tools: Community-developed tools often fill gaps in standard utilities
  • Practical Administration: Real-world system management benefits from monitoring and visibility tools

The progress command addresses a common frustration with command-line file operations - the lack of feedback during long-running tasks. Combined with comprehensive learning resources like Linux Handbook, it represents the ongoing evolution and improvement of the Linux command-line experience.