linux常用命令(十)

 时间:2024-11-02 15:42:54

1、stat:查看文件或者文件系统的状态[root@shell ~]# stat /etc/profile File: `/etc/profile' Size: 1960 Blocks: 8 IO Block: 4096 regular fileDevice: 803h/2051d Inode: 916149 Links: 1Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)Access: 2019-08-12 21:11:20.351122580 +0800Modify: 2018-04-27 00:29:06.486815851 +0800Change: 2018-04-27 00:29:06.488815797 +0800

linux常用命令(十)

2、参数-c :格式化%a : 查看文件属性[root@shell ~]# stat -c %a /etc/hosts644

linux常用命令(十)

3、%Y 按时间戳格式成时间戳[root@shell ~]# stat -c %Y /etc/hosts1263302902[root@shell ~]

linux常用命令(十)

4、seq命令用于以指定增量从首数开始打印数字到尾数,即产生从某个数到另外一个数之间的所有整数,并且可以对整数的格式、宽度、分割符号进行控制产生5以内的整数[root@shell ~]# seq 512345

linux常用命令(十)

5、输出0-10的整数,增量为2[root@shell ~]# seq 0 2 100246810

linux常用命令(十)

6、输出5-10之间的整数,要求宽度一致[root@shell ~]# seq -w 5 10050607080910

linux常用命令(十)

7、不换行输出1-5的序列[root@shell ~]# seq -s " " 51 2 3 4 5

linux常用命令(十)
  • linux常用命令
  • linux之常用命令
  • linux常用命令?
  • Linux apache服务常用命令
  • linux常用命令(三)
  • 热门搜索
    苏东坡简介 天目湖旅游攻略 牛仔衬衫怎么搭配 饥荒 攻略 搭配 泡发好的海参怎么吃 福建旅游攻略 儿童发烧怎么退烧 荷叶能减肥吗 晚上吃苹果能减肥吗