当前位置:网站首页>ls 常用参数
ls 常用参数
2022-06-24 18:45:00 【51CTO】
–help
显示此帮助信息并离开
–version
显示版本信息并离开
-
a
–all
列出目录下的所有文件,包括以 .
开头的隐含文件
-
A
同
-
a,但不列出“.
”(
表示当前目录)
和“..
”(
表示当前目录的父目录)
。
-
c
配合
-
lt:根据
ctime
排序及显示
ctime (
文件状态最后更改的时间)
配合
-
l:显示
ctime
但根据名称排序否则:根据
ctime
排序
-
C
每栏由上至下列出项目
–color[
=
WHEN]
控制是否使用色彩分辨文件。WHEN
可以是
'never'
、
'always'
或
'auto'
其中之一
-
d
–directory
将目录象文件一样显示,而不是显示其下的文件。
-
D
–dired
产生适合
Emacs
的
dired
模式使用的结果
-
f
对输出的文件不进行排序,
-
aU
选项生效,
-
lst
选项失效
-
g
类似
-
l,
但不列出所有者
-
G
–no
-
group
不列出任何有关组的信息
-
h
–human
-
readable
以容易理解的格式列出文件大小 (
例如
1
K
234
M
2
G)
–si
类似
-
h,
但文件大小取
1000
的次方而不是
1024
-
H
–dereference
-
command
-
line
使用命令列中的符号链接指示的真正目的地
–indicator
-
style
=
方式
指定在每个项目名称后加上指示符号
<
方式
>
:none (
默认)
,classify (
-
F)
,file
-
type (
-
p)
-
i
–inode
印出每个文件的
inode
号
-
I
–ignore
=
样式
不印出任何符合
shell
万用字符
<
样式
>
的项目
-
k
即
–block
-
size
=
1
K,
以
k
字节的形式表示文件的大小。
-
l
除了文件名之外,还将文件的权限、所有者、文件大小等信息详细列出来。
-
L
–dereference
当显示符号链接的文件信息时,显示符号链接所指示的对象而并非符号链接本身的信息
-
m
所有项目以逗号分隔,并填满整行行宽
-
o
类似
-
l,
显示文件的除组信息外的详细信息。
-
r
–reverse
依相反次序排列
-
R
–recursive
同时列出所有子目录层
-
s
–size
以块大小为单位列出所有文件的大小
-
S
根据文件大小排序
-
t
以文件修改时间排序
-
u
配合
-
lt:
显示访问时间而且依访问时间排序
-
U
不进行排序;
依文件系统原有的次序列出项目
-
v
根据版本进行排序
-
w
–width
=
COLS
自行指定屏幕宽度而不使用目前的数值
-
x
逐行列出项目而不是逐栏列出
-
X
根据扩展名排序
-
1
每行只列出一个文件
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
边栏推荐
- 智能合约安全审计入门篇 —— delegatecall (2)
- Microsoft planetary computer (MPC) platform introduction, registration and comparison
- Window object
- Self taught C special data type
- 华为机器学习服务语音识别功能,让应用绘“声”绘色
- How to create a linear model prediction interval in R and visualize it
- 为什么 Nodejs 这么快?
- Data driven decision making: Decision intelligence and design thinking
- "2022" plans to change jobs and raise salary. It is necessary to ask interview questions and answers - browser
- 应用程序DDoS攻击原理及防御方法
猜你喜欢

Do you have all the basic embedded knowledge points that novices often ignore?

时间溯源的系统设计思路

Interpreting harmonyos application and service ecology

Graph traversal (BFS and DFS) C language pure handwriting

Mqtt protocol usage of LabVIEW

How to protect biological privacy in the AI era? Overview of the latest "privacy enhancement technology in biometrics" of the Autonomous University of Madrid, comprehensively detailing the biometric p

如何在 R 中使用 Fisher 的最小显着性差异 (LSD)

DOM (document object model)

Vite+web3:报错出现ReferenceError: process is not defined

Value passing and reference passing of value types and reference types in CSharp
随机推荐
SDL: cannot play audio after upgrading openaudio to openaudiodevice
Volcano成Spark默认batch调度器
How to use Fisher's least significant difference (LSD) in R
Remote sensing Forum
JS local storage
JDBC writes Chinese garbled code to the database
FROM_ GLC introduction and data download tutorial
2022 network security C module of the secondary vocational group scans the script of the surviving target aircraft (municipal, provincial and national)
What is decision intelligence?
Why are life science enterprises on the cloud in succession?
360 digital released information security trends in January: 120000 fraud risks were captured and users were reminded 2.68 million times
ArrayList源码解析
subject may not be empty [subject-empty]
130. surrounding area
Introduction and download tutorial of two types of soil data
Monotone stack template
论文解读(SR-GNN)《Shift-Robust GNNs: Overcoming the Limitations of Localized Graph Training Data》
Freeswitch使用originate转dialplan
JS string method
API管理之利剑 -- Eolink