当前位置:网站首页>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.
边栏推荐
- Source code analysis of ArrayList
- JS pre parsing
- Volcano becomes spark default batch scheduler
- 微服務系統設計——子服務項目構建
- DOM (document object model)
- Creating a new MySQL user in Amazon RDS environment - creating a new MySQL user in Amazon RDS environment
- 360 digital released information security trends in January: 120000 fraud risks were captured and users were reminded 2.68 million times
- Introduction, download and use of global meteorological data CRU ts from 1901 to 2020
- 时间溯源的系统设计思路
- Sr-gnn shift robot gnns: overlapping the limitations of localized graph training data
猜你喜欢

Volcano becomes spark default batch scheduler

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

解读HarmonyOS 应用与服务生态

Recommend a distributed JVM monitoring tool, which is very practical!

Window object

Solve the problem that the MapReduce program console does not have log information warn please initialize the log4j system properly

模块五

电源效率测试

Using alicloud RDS for SQL Server Performance insight to optimize database load - first understanding of performance insight

110. balanced binary tree
随机推荐
Introduction and download of nine npp\gpp datasets
【计算讲谈社】第三讲:如何提出关键问题?
干货 | 新手经常忽略的嵌入式基础知识点,你都掌握了吗?
【leetcode】838. Push domino (Analog)
JS picture display and hiding cases
Selection (030) - what is the output of the following code?
Monotone stack template
Network security database penetration of secondary vocational group in 2022
Leetcode weekly buckle 281
Window object
okcc呼叫中心数据操作的效率问题
为什么 useEvent 不够好
How to use Fisher's least significant difference (LSD) in R
Learn routing and data delivery
Preliminary study nuxt3
JS deep understanding of scope
微服务系统设计——数据模型与系统架构设计
Why are life science enterprises on the cloud in succession?
SAP license: ERP for supply chain management and Implementation
SAP license:sap s/4hana is the answer