.\" -*- 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 LS 1 "Tháng 4 năm 2026" "GNU coreutils 9.11" "Các câu lệnh" .SH TÊN ls \- list directory contents .SH "TÓM TẮT" \fBls\fP [\fI\,TÙY_CHỌN\/\fP]… [\fI\,TẬP_TIN\/\fP]… .SH "MÔ TẢ" .\" Add any additional description here .PP Liệt kê thông tin về các TẬP\-TIN (thư mục hiện thời theo mặc định). Sắp xếp các mục theo bảng chữ cái nếu không có \fB\-cftuvSUX\fP cũng không \fB\-\-sort\fP. .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#ls\-a'\fB\-a, \-\-all\fP\X'tty: link' đừng bỏ qua mục bắt đầu với “.” .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-A'\fB\-A, \-\-almost\-all\fP\X'tty: link' đừng liệt kê “.” và “..” theo ngầm định .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-author'\fB\-\-author\fP\X'tty: link' với \fB\-l\fP thì in ra tác giả của mỗi tập tin .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-b'\fB\-b, \-\-escape\fP\X'tty: link' in ra thoát chuỗi kiểu\-C cho ký tự không thể hiển thị .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-block\-size'\fB\-\-block\-size=\fP\fICỠ\fP\X'tty: link' với \fB\-l\fP, cỡ tỷ lê cỡ thơ CỠ khi in chúng; ví dụ: \fB\-\-block\-size\fP=\fIM\fP; xem định dạng CỠ bên dưới .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-B'\fB\-B, \-\-ignore\-backups\fP\X'tty: link' không liệt kê các mục có đuôi “~” mhư ngầm định .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-c'\fB\-c\fP\X'tty: link' with \fB\-lt\fP: sort by, and show, ctime (time of last change of file status information); with \fB\-l\fP: show ctime and sort by name; otherwise: sort by ctime, newest first .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-C'\fB\-C\fP\X'tty: link' liệt kê các mục theo cột .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-color'\fB\-\-color[=\fP\fIKHI\fP\fB]\fP\X'tty: link' color the output WHEN; more info below .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-d'\fB\-d, \-\-directory\fP\X'tty: link' liệt kê bản thân thư mục thay vì nội dung của chúng .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-D'\fB\-D, \-\-dired\fP\X'tty: link' tạo kết xuất thích hợp với chế độ dired của “Emacs” .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-f'\fB\-f\fP\X'tty: link' same as \fB\-a\fP \fB\-U\fP .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-F'\fB\-F, \-\-classify[=\,\fP\fIKHI\fP\fB]\fP\X'tty: link'\/ append indicator (one of */=>@|) to entries WHEN .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-file\-type'\fB\-\-file\-type\fP\X'tty: link' like \fB\-F\fP, except do not append '*' .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-format'\fB\-\-format=\fP\fITỪ\fP\X'tty: link' across,horizontal (\fB\-x\fP), commas (\fB\-m\fP), long (\fB\-l\fP), single\-column (\fB\-1\fP), verbose (\fB\-l\fP), vertical (\fB\-C\fP) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-full\-time'\fB\-\-full\-time\fP\X'tty: link' giống \fB\-l\fP \fB\-\-time\-style\fP=\fI\,full\-iso\/\fP .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-g'\fB\-g\fP\X'tty: link' giống \fB\-l\fP, nhưng không liệt kê người sở hữu .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-group\-directories\-first'\fB\-\-group\-directories\-first\fP\X'tty: link' group directories before files .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-G'\fB\-G, \-\-no\-group\fP\X'tty: link' ở danh sách dài, dừng in các tên nhóm .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-h'\fB\-h, \-\-human\-readable\fP\X'tty: link' với \fB\-l\fP, và \fB\-s\fP, in kích cỡ ở dạng 1K 234M 2G v.v.. .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-si'\fB\-\-si\fP\X'tty: link' giống trên, nhưng dùng hệ số mũ 1000, không phải 1024 .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-H'\fB\-H, \-\-dereference\-command\-line\fP\X'tty: link' đi theo liên kết mềm liệt kê trên dòng lệnh .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-dereference\-command\-line\-symlink\-to\-dir'\fB\-\-dereference\-command\-line\-symlink\-to\-dir\fP\X'tty: link' follow each command line symbolic link that points to a directory .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-hide'\fB\-\-hide=\fP\fIMẪU\fP\X'tty: link' không liệt kê những mục tương ứng với MẪU của shell (bị ghi đè bởi \fB\-a\fP hoặc \fB\-A\fP) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-hyperlink'\fB\-\-hyperlink[=\fP\fIKHI\fP\fB]\fP\X'tty: link' hyperlink file names WHEN .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-indicator\-style'\fB\-\-indicator\-style=\fP\fITỪ\fP\X'tty: link' nối thêm vào tên mục chỉ thị với dạng TỪ: none (không có, mặc định), slash (dấu gạch chéo, \fB\-p\fP), file\-type (kiểu tập tin, \fB\-\-file\-type\fP), classify (phân loại, \fB\-F\fP) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-i'\fB\-i, \-\-inode\fP\X'tty: link' in ra số chỉ mục của mỗi tập tin .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-I'\fB\-I, \-\-ignore=\,\fP\fIMẪU\fP\X'tty: link'\/ không liệt kê các mục tương ứng với MẪU của hệ vỏ .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-k'\fB\-k, \-\-kibibytes\fP\X'tty: link' default to 1024\-byte blocks for file system usage; used only with \fB\-s\fP and per directory totals .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-l'\fB\-l\fP\X'tty: link' dùng dạng danh sách dài .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-L'\fB\-L, \-\-dereference\fP\X'tty: link' khi hiển thị thông tin cho một liên kết mềm, hiển thị thông tin cho tập tin mà liên kết chỉ đến thay cho bản thân liên kết .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-m'\fB\-m\fP\X'tty: link' liệt kê liền nhau các mục, cách nhau bởi dấu phẩy .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-n'\fB\-n, \-\-numeric\-uid\-gid\fP\X'tty: link' giống \fB\-l\fP, nhưng liệt kê UID và GID dạng số .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-N'\fB\-N, \-\-literal\fP\X'tty: link' in ra tên thô của các mục không trích dẫn .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-o'\fB\-o\fP\X'tty: link' giống \fB\-l\fP, nhưng không liệt kê thông tin về nhóm .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-p'\fB\-p, \-\-indicator\-style=\,slash\fP\X'tty: link'\/ nối thêm vào thư mục chỉ thị “/” .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-q'\fB\-q, \-\-hide\-control\-chars\fP\X'tty: link' in dấu “?” thay cho các ký tự không đồ họa .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-show\-control\-chars'\fB\-\-show\-control\-chars\fP\X'tty: link' hiển thị các ký tự không phải đồ họa như chúng có (mặc định, trừ khi chương trình là \fBls\fP và đầu ra là thiết bị cuối) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-Q'\fB\-Q, \-\-quote\-name\fP\X'tty: link' đặt tên các mục trong ngoặc kép .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-quoting\-style'\fB\-\-quoting\-style=\fP\fITỪ\fP\X'tty: link' dùng dạng trích dẫn TỪ cho tên các mục: literal (văn chương), locale (miền địa phương), shell (hệ vỏ), shell\-always (luôn luôn hệ vỏ), c, escape (thoát), (đè lên các biến môi trường QUOTING_STYLE) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-r'\fB\-r, \-\-reverse\fP\X'tty: link' đảo ngược thứ tự khi sắp xếp .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-R'\fB\-R, \-\-recursive\fP\X'tty: link' liệt kê đệ quy các thư mục con .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-s'\fB\-s, \-\-size\fP\X'tty: link' in kích cỡ đã cấp phát của mỗi tập tin, theo khối .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-S'\fB\-S\fP\X'tty: link' sắp xếp theo kích cỡ tập tin .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-sort'\fB\-\-sort=\fP\fITỪ\fP\X'tty: link' change default 'name' sort to WORD: none (\fB\-U\fP), size (\fB\-S\fP), time (\fB\-t\fP), version (\fB\-v\fP), extension (\fB\-X\fP), name, width .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-time'\fB\-\-time=\fP\fITỪ\fP\X'tty: link' select which timestamp used to display or sort; access time (\fB\-u\fP): atime, access, use; metadata change time (\fB\-c\fP): ctime, status; modified time (default): mtime, modification; birth time: birth, creation; with \fB\-l\fP, WORD determines which time to show; with \fB\-\-sort\fP=\fI\,time\/\fP, sort by WORD (newest first) .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-time\-style'\fB\-\-time\-style=TIME_STYLE\fP\X'tty: link' định dạng ngày/tháng với \fB\-l\fP; xem TIME_STYLE ở phía dưới .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-t'\fB\-t\fP\X'tty: link' sort by time, newest first; see \fB\-\-time\fP .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-T'\fB\-T, \-\-tabsize=\,\fP\fICỘT\fP\X'tty: link'\/ giả định chiều dài tab là CỘT thay cho 8 .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-u'\fB\-u\fP\X'tty: link' với \fB\-lt\fP: sắp xếp theo, và hiển thị thời gian truy cập; với \fB\-l\fP: hiển thị thời gian truy cập và sắp xếp theo tên; nếu không: sắp xếp theo thời gian truy cập, mới trước .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-U'\fB\-U\fP\X'tty: link' do not sort directory entries .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-v'\fB\-v\fP\X'tty: link' sắp xếp các số thứ tự (phiên bản) một cách tự nhiên bên trong văn bản .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-w'\fB\-w, \-\-width=\,\fP\fICỘT\fP\X'tty: link'\/ coi chiều rộng màn hình là CỘT. 0 là không giới hạn .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-x'\fB\-x\fP\X'tty: link' liệt kê các mục theo dòng thay vì theo cột .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-X'\fB\-X\fP\X'tty: link' sắp xếp phần mở rộng các mục theo bảng chữ cái .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-Z'\fB\-Z, \-\-context\fP\X'tty: link' in bất kỳ ngữ cảnh bảo mật nào của mỗi tập tin .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-\-zero'\fB\-\-zero\fP\X'tty: link' kết thúc dòng bằng NUL thay vì kí tự dòng mới .TP \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#ls\-1'\fB\-1\fP\X'tty: link' liệt kê một tập tin trên mỗi dòng. .TP \X'tty: link https://www.gnu.org/software/coreutils/ls#ls\-\-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/ls#ls\-\-version'\fB\-\-version\fP\X'tty: link' đưa ra thông tin phiên bản rồi thoát .PP The SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on. .PP The TIME_STYLE argument can be full\-iso, long\-iso, iso, locale, or +FORMAT. FORMAT is interpreted like in \fBdate\fP(1). If FORMAT is FORMAT1FORMAT2, then FORMAT1 applies to non\-recent files and FORMAT2 to recent files. TIME_STYLE prefixed with 'posix\-' takes effect only outside the POSIX locale. Also the TIME_STYLE environment variable sets the default style to use. .PP The WHEN argument defaults to 'always' and can also be 'auto' or 'never'. .PP Using color to distinguish file types is disabled both by default and with \fB\-\-color\fP=\fI\,never\/\fP. With \fB\-\-color\fP=\fI\,auto\/\fP, ls emits color codes only when standard output is connected to a terminal. The LS_COLORS environment variable can change the settings. Use the \fBdircolors\fP(1) command to set it. .SS "Trạng thái thoát:" .TP 0 nếu ổn, .TP 1 nếu gặp lỗi nhỏ (v.d. không thể truy cập đến thư mục con), .TP 2 nếu gặp lỗi nghiêm trọng (v.d. không thể truy cập đến đối số dòng lệnh) .SH "TÁC GIẢ" Viết bởi Richard M. Stallman và David MacKenzie. .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" \fBdircolors\fP(1) .PP .br Tài liệu đầy đủ có tại: .br hoặc sẵn có nội bộ thông qua: info \(aq(coreutils) ls 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 .