Loading...
Loading...
Compare original and translation side by side
stat -f "%z bytes, modified %Sm" [file_path] # Single file
ls -lh [directory] # Multiple files
du -h [file_path] # Human-readable sizestat -f "%z bytes, modified %Sm" [file_path] # 单个文件
ls -lh [directory] # 多个文件
du -h [file_path] # 易读格式的文件大小wc -l [file_path] # Single file
wc -l [file1] [file2] # Multiple files
find [dir] -name "*.py" | xargs wc -l # Directory totalwc -l [file_path] # 单个文件
wc -l [file1] [file2] # 多个文件
find [dir] -name "*.py" | xargs wc -l # 目录总行数Grep(pattern="^def ", output_mode="count", path="src/") # Count functions
Grep(pattern="TODO|FIXME", output_mode="content", -n=true) # Find TODOs
Grep(pattern="^import ", output_mode="count") # Count importsGrep(pattern="^def ", output_mode="count", path="src/") # 统计函数数量
Grep(pattern="TODO|FIXME", output_mode="content", -n=true) # 查找TODO标记
Grep(pattern="^import ", output_mode="count") # 统计导入语句数量Glob(pattern="**/*.py")Glob(pattern="**/*.py")stat -f "%z bytes, modified %Sm" file.pywc -l file.pyRead(file_path="file.py")Grep(pattern="^def ", output_mode="count")Grep(pattern="^class ", output_mode="count")stat -f "%z bytes, modified %Sm" file.pywc -l file.pyRead(file_path="file.py")Grep(pattern="^def ", output_mode="count")Grep(pattern="^class ", output_mode="count")Glob(pattern="src/**/*.py")ls -lh src/**/*.pydu -sh src/*.pyGlob(pattern="src/**/*.py")ls -lh src/**/*.pydu -sh src/*.pyfind . -name "*.py" | xargs wc -lfind . -name "test_*.py" | wc -lGrep(pattern="TODO|FIXME|HACK", output_mode="count")find . -name "*.py" | xargs wc -lfind . -name "test_*.py" | wc -lGrep(pattern="TODO|FIXME|HACK", output_mode="count")find . -type f -not -path "./node_modules/*" -exec du -h {} + | sort -rh | head -20find . -type f -not -path "./node_modules/*" -exec du -h {} + | sort -rh | head -20