在linux系统中,linux是不根据后缀名识别文件类型的,所以使用file命令查看文件的类型。

[root@node5 ~]# file /etc/shadow
/etc/shadow: ASCII text

[root@node5 ~]# file /etc
/etc: directory

[root@node5 ~]# file /dev/sda
/dev/sda: block special
 
[root@node5 ~]# file /dev/tty
/dev/tty: character special

相关文章:

  • 2021-05-02
  • 2022-01-16
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-11-18
猜你喜欢
  • 2021-05-27
  • 2021-09-24
  • 2021-07-15
  • 2022-12-23
  • 2021-11-20
  • 2021-11-27
相关资源
相似解决方案