.\" -*- coding: UTF-8 -*- .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH NUMFMT 1 "Tháng 4 năm 2026" "GNU coreutils 9.11" "Các câu lệnh" .if t .if \n(.g \{\ . ds mono \f(CR . ds /mono \fP .\} .\" Define monospaced roman font for groff in troff mode. .SH TÊN numfmt \- Convert numbers from/to human\-readable strings .SH "TÓM TẮT" \fBnumfmt\fP [\fI\,TÙY\-CHỌN\/\fP]… [\fI\,SỐ\/\fP]… .SH "MÔ TẢ" .\" Add any additional description here .PP Định dạng lại SỐ, hoặc con số từ đầu vào tiêu chuẩn nếu không chỉ ra cái nào. .PP Tùy chọn dài yêu cầu đối số thì tùy chọn ngắn cũng vậy. .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-debug'\fB\-\-debug\fP\X'tty: link' hiển thị các cảnh báo đầu vào không hợp lệ .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-d'\fB\-d, \-\-delimiter=\,X\fP\X'tty: link'\/ dùng X thay vì khoảng trắng để phân tách các trường .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-field'\fB\-\-field=\fP\fICÁC_TRƯỜNG\fP\X'tty: link' replace the numbers in these input fields (default=1); see FIELDS below for details .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-format'\fB\-\-format=\fP\fIĐỊNH\-DẠNG\fP\X'tty: link' sử dụng ĐỊNH\-DẠNG dấu chấm động cho hàm \fBprintf\fP(1); xem ĐỊNH\-DẠNG ở phía dưới để có thêm thông tin chi tiết .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-from'\fB\-\-from=UNIT\fP\X'tty: link' auto\-scale input numbers to UNITs; default is 'none'; see UNIT below for details .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-from\-unit'\fB\-\-from\-unit=N\fP\X'tty: link' chỉ ra kích thước đơn vị đầu vào (thay vì giá trị 1 theo mặc định) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-grouping'\fB\-\-grouping\fP\X'tty: link' use locale\-defined grouping of digits, e.g. 1,000,000. This has no effect in the C/POSIX locale .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-header'\fB\-\-header[=N]\fP\X'tty: link' in ra (mà không chuyển đổi) N dòng đầu tiên; N mặc định là 1 nếu không chỉ định rõ ràng .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-invalid'\fB\-\-invalid=\fP\fICHẾ_ĐỘ\fP\X'tty: link' chế độ sai: nó có thể là: abort (mặc định), fail, warn, ignore .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-padding'\fB\-\-padding=N\fP\X'tty: link' đệm kết xuất N ký tự; N dương sẽ căn\-phải; N âm căn\-trái; việc đệm thêm sẽ bị bỏ qua nếu kết xuất rộng hơn N; mặc định là tự động đệm thêm nếu khoảng trắng được tìm thấy .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-round'\fB\-\-round=\fP\fIPHƯƠNG_THỨC\fP\X'tty: link' dùng PHƯƠNG_THỨC để làm tròn khi biến đổi tỷ lệ; PHƯƠNG_THỨC có thể là: up, down, from\-zero (mặc định), towards\-zero, nearest .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-suffix'\fB\-\-suffix=\fP\fIHẬU\-TỐ\fP\X'tty: link' add SUFFIX to output numbers, and accept an optional SUFFIX in input numbers .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-unit\-separator'\fB\-\-unit\-separator=SEP\fP\X'tty: link' insert SEP between number and unit on output, and accept an optional SEP in input numbers .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-to'\fB\-\-to=UNIT\fP\X'tty: link' con số cho biến đổi tỷ lệ tự động áp dụng cho UNIT; xem UNIT bên dưới .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-\-to\-unit'\fB\-\-to\-unit=N\fP\X'tty: link' kích thước đơn vị kết xuất (thay cho giá trị mặc định là 1) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#numfmt\-z'\fB\-z, \-\-zero\-terminated\fP\X'tty: link' bộ phân tách dòng là NUL, không phải ký tự dòng mới .TP \X'tty: link https://www.gnu.org/software/coreutils/numfmt#numfmt\-\-help'\fB\-\-help\fP\X'tty: link' hiển thị trợ giúp này rồi thoát .TP \X'tty: link https://www.gnu.org/software/coreutils/numfmt#numfmt\-\-version'\fB\-\-version\fP\X'tty: link' đưa ra thông tin phiên bản rồi thoát .SS "Các tùy chọn về ĐƠN\-VỊ (UNIT):" .TP none không áp dụng biến đổi tỷ lệ tự động; các hậu tố sẽ coi lỗi .TP auto accept optional single/two letter suffix: 1K = 1000, 1k = 1000, 1Ki = 1024, 1M = 1000000, 1Mi = 1048576, .TP si accept optional single letter suffix: 1k = 1000, 1K = 1000, 1M = 1000000, \&... .TP iec accept optional single letter suffix: 1K = 1024, 1k = 1024, 1M = 1048576, \&... .TP iec\-i accept optional two\-letter suffix: 1Ki = 1024, 1ki = 1024, 1Mi = 1048576, \&... .SS "Phạm vi trường kiểu \fBcut\fP(1) được hỗ trợ là:" .TP N Byte, ký tự hoặc trường thứ N đếm từ 1 .TP N\- Từ byte, ký tự hoặc trường thứ N đến cuối dòng .TP N\-M Từ byte, ký tự hoặc trường thứ N đến M (tính cả M) .TP \fB\-M\fP Từ byte, ký tự hoặc trường đầu tiên đến thứ M (tính cả M) .TP \- Mọi trường .PP Đa vùng/trường có thể ngăn cách bằng dấu phẩy .PP ĐỊNH\-DẠNG phải phù hợp cho việc hiển thị tham số dấu chấm động “%f”. Tùy chọn trích dẫn (%'f) sẽ bật \fB\-\-grouping\fP (nếu nó được hỗ trợ bởi miền địa phương hiện hành). Tùy chọn độ rộng (%10f) sẽ đệm thêm khi kết xuất. Tùy chọn độ rộng với số không (%010f) sẽ đệm bằng số không. Tùy chọn độ rộng với giá trị âm (%\-10f) sẽ căn lề trái. Tùy chọn độ chính xác (%.1f) sẽ đè lên độ chính xác dò tìm từ đầu vào. .PP Exit status is 0 if all input numbers were successfully converted. By default, numfmt will stop at the first conversion error with exit status 2. With \fB\-\-invalid\fP=\fI\,'fail'\/\fP a warning is printed for each conversion error and the exit status is 2. With \fB\-\-invalid\fP=\fI\,'warn'\/\fP each conversion error is diagnosed, but the exit status is 0. With \fB\-\-invalid\fP=\fI\,'ignore'\/\fP conversion errors are not diagnosed and the exit status is 0. .SH "VÍ DỤ" .IP \*[mono]$ numfmt \-\-to=si 1000\*[/mono] .IP \-> "1.0k" .IP \*[mono]$ numfmt \-\-to=iec 2048\*[/mono] .IP \-> "2.0K" .IP \*[mono]$ numfmt \-\-to=iec\-i 4096\*[/mono] .IP \-> "4.0Ki" .IP \*[mono]$ echo 1K | numfmt \-\-from=si\*[/mono] .IP \-> "1000" .IP \*[mono]$ echo 1K | numfmt \-\-from=iec\*[/mono] .IP \-> "1024" .IP \*[mono]$ df \-B1 | numfmt \-\-header \-\-field 2\-4 \-\-to=si\*[/mono] .br \*[mono]$ ls \-l | numfmt \-\-header \-\-field 5 \-\-to=iec\*[/mono] .br \*[mono]$ ls \-lh | numfmt \-\-header \-\-field 5 \-\-from=iec \-\-padding=10\*[/mono] .br \*[mono]$ ls \-lh | numfmt \-\-header \-\-field 5 \-\-from=iec \-\-format %10f\*[/mono] .SH "TÁC GIẢ" Viết bởi Assaf Gordon. .SH "THÔNG BÁO LỖI" Thông báo lỗi cho: . Thông báo lỗi dịch cho: . .br Trang chủ GNU coreutils: .br Trợ giúp chung về sử dụng phần mềm GNU: .br Report any translation bugs to .SH "BẢN QUYỀN" Copyright \(co 2026 Free Software Foundation, Inc. Giấy phép GPL pb3+ : Giấy phép Công cộng GNU phiên bản 3 hay sau . .br Đây là phần mềm tự do: bạn có quyền sửa đổi và phát hành lại nó. KHÔNG CÓ BẢO HÀNH GÌ CẢ, với điều khiển được pháp luật cho phép. .SH "XEM THÊM" Tài liệu đầy đủ có tại: .br hoặc sẵn có nội bộ thông qua: info \(aq(coreutils) numfmt invocation\(aq .PP .SH DỊCH Bản dịch tiếng Việt của trang hướng dẫn này do thực hiện. .PP Bản dịch này là Tài liệu Miễn phí; đọc .UR https://www.gnu.org/licenses/gpl-3.0.html Giấy phép Công cộng GNU Phiên bản 3 .UE hoặc mới hơn để biết các điều khoản bản quyền. Chúng tôi cho rằng KHÔNG CÓ TRÁCH NHIỆM PHÁP LÝ. .PP Nếu bạn tìm thấy một số sai sót trong bản dịch của trang hướng dẫn này, vui lòng gửi thư đến .MT TODO .ME .