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常用命令(十)

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

linux常用命令(十)

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

linux常用命令(十)

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

linux常用命令(十)
© 阿力知识库