当前位置: 首页 > wzjs >正文

北白象镇做公司网站哪里有国内建网站知名企业

北白象镇做公司网站哪里有,国内建网站知名企业,wordpress rest 某类,孝感建设网站一、ls命令的定义 Linux ls命令(英文全拼:list directory contents)用于显示指定工作目录下之内容(列出目前工作目录所含的文件及子目录)。 二、ls命令的语法 ls [选项] [目录或文件名] ls [-alrtAFR] [name...] 三、参数[选项…

一、ls命令的定义

Linux ls命令(英文全拼:list directory contents)用于显示指定工作目录下之内容(列出目前工作目录所含的文件及子目录)。

二、ls命令的语法

ls [选项] [目录或文件名]
ls [-alrtAFR] [name...]

三、参数[选项]

  • -l    以长格式显示文件和目录的详细信息,包括权限、所有者、大小、修改日期等。
  • -a:--all的缩写,显示所有的文件,包括隐藏文件(以.开头的文件)。
  • -A:同 -a,显示所有的文件,包括隐藏文件,但不包括表示当前目录.和上级目录..这两个文件。
  • -d:--directory的缩写,仅列出目录(不递归列出目录内的文件),不列出除目录之外的其他文件。
  • -h    以可读的格式显示文件和目录的大小,例如使用KB、MB等单位。
  • -r    --reverse,以倒序方式列出文件和目录。
  • -t    按照修改时间排序,最新修改的文件和目录排在前面。
  • -F  在列出的文件名称后加一符号;例如可执行档则加 "*", 目录则加 "/"。
  • -R    递归地列出当前目录及其子目录中的文件和目录。
  • -S:以文件大小排序。
  • --help:显示帮助信息。

四、举例说明

1、ls -altr 命令:当前目录下所有的目录和文件,按照时间倒序以长格式显示。

[root@localhost zip_file]# ls -altr
总用量 24
-rw-r--r--. 1 root root    4 1月   2 2021 22.txt
drwxr-xr-x. 3 root root   19 3月   3 2023 name
-rw-r--r--. 1 root root    4 5月  12 2024 33.txt
-rw-r--r--. 1 root root    4 1月  12 12:02 44.txt
drwxr-xr-x. 4 root root  262 3月  26 13:12 ..
-rwxr---w-. 1 root root 1655 3月  26 13:13 11.txt
drwxr-xr-x. 2 root root   19 3月  26 13:17 file
-rw-r--r--. 1 root root 7707 3月  26 13:22 55.txt
drwxr-xr-x. 4 root root  100 3月  26 13:22 .

2、ls -altrhF 命令:以长格式/时间倒序显示所有的目录和文件,大小是可读的形式,目录以“/”显示,可执行文件以“*”结尾。

[root@localhost zip_file]# ls -altrhF
总用量 24K
-rw-r--r--. 1 root root    4 1月   2 2021 22.txt
drwxr-xr-x. 3 root root   19 3月   3 2023 name/
-rw-r--r--. 1 root root    4 5月  12 2024 33.txt
-rw-r--r--. 1 root root    4 1月  12 12:02 44.txt
drwxr-xr-x. 4 root root  262 3月  26 13:12 ../
-rwxr---w-. 1 root root 1.7K 3月  26 13:13 11.txt*
drwxr-xr-x. 2 root root   19 3月  26 13:17 file/
-rw-r--r--. 1 root root 7.6K 3月  26 13:22 55.txt
drwxr-xr-x. 4 root root  100 3月  26 13:22 ./

3、ls -AlrSh 命令:除了当前目录和上级目录,以文件大小的倒序显示。

[root@localhost zip_file]# ls -AlrSh
总用量 24K
-rw-r--r--. 1 root root    4 1月  12 12:02 44.txt
-rw-r--r--. 1 root root    4 5月  12 2024 33.txt
-rw-r--r--. 1 root root    4 1月   2 2021 22.txt
drwxr-xr-x. 3 root root   19 3月   3 2023 name
drwxr-xr-x. 2 root root   19 3月  26 13:17 file
-rwxr---w-. 1 root root 1.7K 3月  26 13:13 11.txt
-rw-r--r--. 1 root root 7.6K 3月  26 13:22 55.txt

4、ls -alhR 命令:所有文件长格式/大小可读的形式显示,并且递归显示文件下的目录和文件。

[root@localhost zip_file]# ls -alhR
.:
总用量 24K
drwxr-xr-x. 4 root root  100 3月  26 13:22 .
drwxr-xr-x. 4 root root  262 3月  26 13:12 ..
-rwxr---w-. 1 root root 1.7K 3月  26 13:13 11.txt
-rw-r--r--. 1 root root    4 1月   2 2021 22.txt
-rw-r--r--. 1 root root    4 5月  12 2024 33.txt
-rw-r--r--. 1 root root    4 1月  12 12:02 44.txt
-rw-r--r--. 1 root root 7.6K 3月  26 13:22 55.txt
drwxr-xr-x. 2 root root   19 3月  26 13:17 file
drwxr-xr-x. 3 root root   19 3月   3 2023 name./file:
总用量 4.0K
drwxr-xr-x. 2 root root  19 3月  26 13:17 .
drwxr-xr-x. 4 root root 100 3月  26 13:22 ..
-rw-r--r--. 1 root root   5 3月  26 13:17 1.txt./name:
总用量 0
drwxr-xr-x. 3 root root  19 3月   3 2023 .
drwxr-xr-x. 4 root root 100 3月  26 13:22 ..
drwxr-xr-x. 2 root root  20 3月  26 13:18 name1./name/name1:
总用量 4.0K
drwxr-xr-x. 2 root root 20 3月  26 13:18 .
drwxr-xr-x. 3 root root 19 3月   3 2023 ..
-rw-r--r--. 1 root root  4 3月  26 13:18 22.txt

5、ls *txt -l 命令:通过*通配符,可以显示所有txt后缀的文件和目录。

[root@localhost zip_file]# ls *txt -l 
-rwxr---w-. 1 root root 1655 3月  26 13:13 11.txt
-rw-r--r--. 1 root root    4 1月   2 2021 22.txt
-rw-r--r--. 1 root root    4 5月  12 2024 33.txt
-rw-r--r--. 1 root root    4 1月  12 12:02 44.txt
-rw-r--r--. 1 root root 7707 3月  26 13:22 55.txt

6、ls *txt -l 命令:可以通过管道符,继续筛选文件,如:

 ls *txt -l | ls 1* -l 命令:继续筛选以1开头的文件

ls *txt -lrt | tail -n 2 命令:继续筛选,时间最晚的两个文件(tail命令后续说明)

[root@localhost zip_file]# ls *txt -l | ls 1* -l
-rwxr---w-. 1 root root 1655 3月  26 13:13 11.txt
[root@localhost zip_file]# ls *txt -lrt | tail -n 2 
-rwxr---w-. 1 root root 1655 3月  26 13:13 11.txt
-rw-r--r--. 1 root root 7707 3月  26 13:22 55.txt


文章转载自:

http://3fcdMqVU.LLqch.cn
http://t2wYPqHJ.LLqch.cn
http://Ot3fUKUF.LLqch.cn
http://YDfBppWM.LLqch.cn
http://fiWrdEui.LLqch.cn
http://y38UJlkj.LLqch.cn
http://074sd8dU.LLqch.cn
http://Zl369la4.LLqch.cn
http://ammMxKC0.LLqch.cn
http://ncmbsUZO.LLqch.cn
http://cgiAQ11O.LLqch.cn
http://01JdFDNG.LLqch.cn
http://QatmD5Mv.LLqch.cn
http://OW0vh3eZ.LLqch.cn
http://0yEKfIT5.LLqch.cn
http://vYjDeaKW.LLqch.cn
http://koy89dwF.LLqch.cn
http://JmGwettZ.LLqch.cn
http://xWGhtUKS.LLqch.cn
http://GjbfNxC0.LLqch.cn
http://HuVoqrAz.LLqch.cn
http://WFEORRHA.LLqch.cn
http://MpckqrbY.LLqch.cn
http://Tr4JgCD0.LLqch.cn
http://vJyDqe6p.LLqch.cn
http://J1BS93eK.LLqch.cn
http://xfneMDEy.LLqch.cn
http://8CRNogj1.LLqch.cn
http://Vv1rE2GG.LLqch.cn
http://8DWUuGOQ.LLqch.cn
http://www.dtcms.com/wzjs/698995.html

相关文章:

  • 哈尔滨口碑好的网站建设成都农业网站建设
  • 站长工具官方网做信贷抢客户网站
  • 网站如何添加百度地图免费创建网站平台有哪些
  • 商城网站的基本功能做网站一个月能挣多少钱
  • 建设企业网站的意义网页游戏平台返利
  • html 动漫网站烟台优化网站排名
  • html5 网站logo地方门户网站的推广
  • 网站改备案信息吗威海seo公司
  • 企业网站推广哪个公司好佛山伦教网站设计
  • 网站这么做404页面网站模版源码
  • 做网站编辑有什么发展wordpress编辑器增加按钮
  • 网站建设 方案书网站开发职位要求
  • 网站建设服务器的搭建方式淮阳城乡建设局网站
  • 黄南州wap网站建设公司互联网加项目策划书
  • 做视频网站 视频放在哪里找淮北市相山区建设局网站
  • 给别人做网站怎么收取费用中国十大企业培训公司
  • 如何建微信商城网站苏州网站建设制作公司
  • 石家庄网站建设维护杭州个体户注册
  • 网站规划和建设的基本要求安庆做网站的公司
  • 建设网站报价表大连网络产业大厦
  • 网站怎么收录到百度值得信赖的深圳app开发公司
  • 张店网站优化网站域名要钱吗
  • 2017网站建设趋势网站集群建设是
  • 商丘河南网站建设义乌便宜自适应网站建设厂家
  • 自己做网站可以上传软件网络推广方案包括哪些内容
  • 小型购物网站开发国内网站建设公司排名
  • 网站怎么做自营销三门峡网站制作
  • 华硕建设公司网站wordpress添加全屏广告
  • 北京住房和城乡建设网站怎么做试玩平台推广网站
  • ps做网站字体大小企业免费网站制作