ubuntu 204 ls详细信息
The "ls" command in Ubuntu 20.04 is used to list the files and directories in a directory. Here are the detailed options and information for the "ls" command:
Usage: ls [OPTION]... [FILE]...
Options:
- a : Display all files, including hidden files starting with "."
- l : Use a long listing format, showing file permissions, ownership, size, and modification time
- h : When used with the "l" option, display file sizes in human-readable format (e.g., 1K, 234M, 2G)
- r : Reverse the order of the output
- t : Sort files by modification time, with the newest files first
- R : Recursively list all files and directories in subdirectories
- u : Use file access time instead of modification time for sorting
- S : Sort files by size, with the largest files first
Examples:
- ls : Lists the files and directories in the current directory
- ls -l : Lists files in long format
- ls -a : Lists all files, including hidden files
- ls -lh : Lists files in long format with human-readable file sizes
- ls -t : Lists files sorted by modification time, with the newest first
- ls -R : Lists files and directories recursively
- ls -lS : Lists files in long format sorted by size, with the largest firs
原文地址: https://www.cveoy.top/t/topic/hLlk 著作权归作者所有。请勿转载和采集!