← 返回命令列表

Linux command

py3clean 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Clean Python 3 bytecode

py3clean [directory]

Clean entire system

sudo py3clean -p [package]

Dry run

py3clean -n [directory]

Verbose output

py3clean -v [directory]

说明

py3clean removes Python 3 compiled bytecode files (.pyc) and __pycache__ directories. Part of Debian's python3-minimal package for system cleanup.

参数

-p, --package _package_
Clean specific Debian package.
-v, --verbose
Verbose output.
-n, --dry-run
Show what would be deleted.
-q, --quiet
Quiet mode.

FAQ

What is the py3clean command used for?

py3clean removes Python 3 compiled bytecode files (.pyc) and __pycache__ directories. Part of Debian's python3-minimal package for system cleanup.

How do I run a basic py3clean example?

Run `py3clean [directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p, --package _package_ do in py3clean?

Clean specific Debian package.