当前位置:   article > 正文

linux 套接字文件类型,Linux下的文件类型

linux的文件夹可以以-1开头吗

Linux下的文件类型

1.-开头 表示普通文件

2.d开头 表示目录文件

3.b开头 表示块设备

4.c开头 表示是字符设备

5.I开头 表示符号链接文件

6.p开头 表示管道文件pipe

7.s开头 表示套接字文件socket

[root@centos7 ~]# ll -1 /run/

total 64

drwxr-xr-x. 2 root root 100 Oct 13 12:04 abrt

-rw-------. 1 root root 11 Oct 13 12:04 alsactl.pid

-rw-r--r--. 1 root root 5 Oct 13 12:04 atd.pid

-rw-r--r--. 1 root root 4 Oct 13 12:04 auditd.pid

drwxr-xr-x. 2 avahi avahi 80 Oct 13 12:04 avahi-daemon

drwxr-xr-x. 3 root root 60 Oct 13 12:04 boltd

drwxr-xr-x. 2 root root 40 Oct 13 12:04 console

-rw-r--r--. 1 root root 5 Oct 13 12:04 crond.pid

----------. 1 root root 0 Oct 13 12:04 cron.reboot

drwx------. 2 root root 40 Oct 13 12:04 cryptsetup

drwxr-xr-x. 3 root lp 80 Oct 13 12:04 cups

drwxr-xr-x. 2 root root 60 Oct 13 12:04 dbus

-rw-r--r--. 1 root root 4 Oct 13 15:07 dhclient-ens33.pid

-rw-r--r--. 1 root root 5 Oct 13 15:08 dhclient-ens37.pid

prw-------. 1 root root 0 Oct 13 12:04 dmeventd-client

prw-------. 1 root root 0 Oct 13 12:04 dmeventd-server

-rw-------. 1 root root 0 Oct 13 12:04 ebtables.lock

drwxr-xr-x. 2 root root 40 Oct 13 12:04 faillock

drwxr-x---. 2 root root 40 Oct 13 15:08 firewalld

drwx--x--x. 4 root gdm 100 Oct 13 12:04 gdm

-rw-------. 1 root root 4 Oct 13 12:04 gssproxy.pid

srw-rw-rw-. 1 root root 0 Oct 13 12:04 gssproxy.sock

drwxr-xr-x. 4 root root 100 Oct 13 12:04 initramfs

-rw-r--r--. 1 root root 4 Oct 13 12:04 ksmtune.pid

drwxr-xr-x. 7 root root 240 Oct 13 12:04 libvirt

-rw-r--r--. 1 root root 4 Oct 13 12:04 libvirtd.pid

drwxr-xr-x. 8 root root 220 Oct 13 13:19 lock

drwxr-xr-x. 3 root root 60 Oct 13 12:04 log

drwxrwxr-x. 3 root libstoragemgmt 60 Oct 13 12:04 lsm

drwx------. 2 root root 80 Oct 13 12:04 lvm

-rw-r--r--. 1 root root 4 Oct 13 12:04 lvmetad.pid

drwxr-xr-x. 2 mysql mysql 40 Oct 13 12:04 mariadb

srwxr-xr-x. 1 root root 0 Oct 13 12:04 mcelog-client

-rw-r--r--. 1 root root 3 Oct 13 12:04 mcelog.pid

drwx--x---. 2 root root 40 Oct 13 12:04 mdadm

drwxr-xr-x. 2 root root 40 Oct 13 12:04 media

drwxr-xr-x. 2 root root 40 Oct 13 12:04 mount

drwxrwxr-x. 2 root root 40 Oct 13 12:04 netreport

drwxr-xr-x. 4 root root 140 Oct 13 12:04 NetworkManager

drwxr-xr-x. 2 root root 40 Oct 13 12:05 plymouth

drwxr-xr-x. 2 root root 40 Oct 13 12:04 ppp

drwxr-xr-x. 2 radvd radvd 40 Oct 13 12:04 radvd

drwx------. 2 rpc rpc 40 Oct 13 12:04 rpcbind

-r--r--r--. 1 root root 0 Oct 13 12:04 rpcbind.lock

srw-rw-rw-. 1 root root 0 Oct 13 12:04 rpcbind.sock

drwxr-xr-x. 2 root root 40 Oct 13 12:04 samba

drwxrwxr-x. 2 root screen 40 Oct 13 12:04 screen

drwxr-xr-x. 2 root root 40 Oct 13 12:04 sepermit

drwxr-xr-x. 2 root root 40 Oct 13 12:04 setrans

drwx--x--x. 2 setroubleshoot setroubleshoot 40 Oct 13 12:04 setroubleshoot

-rw-------. 1 root root 5 Oct 13 12:04 sm-notify.pid

drwxr-xr-x. 2 root root 40 Oct 13 12:04 spice-vdagentd

drwxr-xr-x. 2 squid squid 40 Oct 13 12:04 squid

-rw-r--r--. 1 root squid 5 Oct 13 12:04 squid.pid

-rw-r--r--. 1 root root 5 Oct 13 12:04 sshd.pid

drwx--x--x. 3 root root 60 Oct 13 12:04 sudo

drwxr-xr-x. 2 root root 60 Oct 13 12:04 sysconfig

-rw-------. 1 root root 4 Oct 13 12:04 syslogd.pid

drwxr-xr-x. 18 root root 440 Oct 13 12:05 systemd

drwxr-xr-x. 2 root root 60 Oct 13 12:04 tmpfiles.d

drwxr-xr-x. 2 root root 60 Oct 13 12:04 tuned

drwxr-xr-x. 7 root root 160 Oct 13 12:06 udev

drwx------. 2 root root 40 Oct 13 12:04 udisks2

drwxr-xr-x. 4 root root 80 Oct 13 12:05 user

-rw-rw-r--. 1 root utmp 1920 Oct 13 12:08 utmp

drwxr-xr-x. 2 root root 60 Oct 13 12:04 vmware

-rw-------. 1 root root 0 Oct 13 12:04 xtables.lock

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/320397
推荐阅读
相关标签
  

闽ICP备14008679号