botang 发表于 2019-8-13 20:11:11

课程第16次

find命令:

login as: root
root@192.168.0.3's password:
Last login: Mon Aug 12 22:06:41 2019 from server65.example.com
# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:999:998:User for polkitd:/:/sbin/nologin
libstoragemgmt:x:998:996:daemon account for libstoragemgmt:/var/run/lsm:/sbin/no                                                                           login
colord:x:997:995:User for colord:/var/lib/colord:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin
saslauth:x:996:76:Saslauthd user:/run/saslauthd:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
rtkit:x:172:172:RealtimeKit:/proc:/sbin/nologin
pulse:x:171:171:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
chrony:x:995:990::/var/lib/chrony:/sbin/nologin
radvd:x:75:75:radvd user:/:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
unbound:x:994:989:Unbound DNS resolver:/etc/unbound:/sbin/nologin
gluster:x:993:988:GlusterFS daemons:/run/gluster:/sbin/nologin
qemu:x:107:107:qemu user:/:/sbin/nologin
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev                                                                           /null:/sbin/nologin
usbmuxd:x:113:113:usbmuxd user:/:/sbin/nologin
geoclue:x:992:986:User for geoclue:/var/lib/geoclue:/sbin/nologin
setroubleshoot:x:991:985::/var/lib/setroubleshoot:/sbin/nologin
saned:x:990:984:SANE scanner daemon user:/usr/share/sane:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
gnome-initial-setup:x:989:983::/run/gnome-initial-setup/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
student:x:1000:1000:student:/home/student:/bin/bash
sssd:x:988:982:User for sssd:/:/sbin/nologin
# su - student
Last login: Sat Jun 29 06:20:38 CST 2019 on :0
$ ls
DesktopDocumentsDownloadsMusicPicturesPublicTemplatesVideos
$ ls -ld *
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Desktop
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Documents
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Downloads
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Music
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Pictures
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Public
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Templates
drwxr-xr-x. 2 student student 6 Jun 29 06:20 Videos
$ exit
logout
# cd /var/spool/
# cd mail/
# ls
rpcstudent
# ls -l
total 0
-rw-rw----. 1 rpc   mail 0 Jun 29 05:54 rpc
-rw-rw----. 1 student mail 0 Jun 29 06:20 student
# userdel student
# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:999:998:User for polkitd:/:/sbin/nologin
libstoragemgmt:x:998:996:daemon account for libstoragemgmt:/var/run/lsm:/sbin/no                                                                           login
colord:x:997:995:User for colord:/var/lib/colord:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin
saslauth:x:996:76:Saslauthd user:/run/saslauthd:/sbin/nologin
abrt:x:173:173::/etc/abrt:/sbin/nologin
rtkit:x:172:172:RealtimeKit:/proc:/sbin/nologin
pulse:x:171:171:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
chrony:x:995:990::/var/lib/chrony:/sbin/nologin
radvd:x:75:75:radvd user:/:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
unbound:x:994:989:Unbound DNS resolver:/etc/unbound:/sbin/nologin
gluster:x:993:988:GlusterFS daemons:/run/gluster:/sbin/nologin
qemu:x:107:107:qemu user:/:/sbin/nologin
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev                                                                           /null:/sbin/nologin
usbmuxd:x:113:113:usbmuxd user:/:/sbin/nologin
geoclue:x:992:986:User for geoclue:/var/lib/geoclue:/sbin/nologin
setroubleshoot:x:991:985::/var/lib/setroubleshoot:/sbin/nologin
saned:x:990:984:SANE scanner daemon user:/usr/share/sane:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
gnome-initial-setup:x:989:983::/run/gnome-initial-setup/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
sssd:x:988:982:User for sssd:/:/sbin/nologin
# cd /home/
# cd student/
# pwd
/home/student
# ls -ld *
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Desktop
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Documents
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Downloads
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Music
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Pictures
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Public
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Templates
drwxr-xr-x. 2 1000 1000 6 Jun 29 06:20 Videos
# cd /var/spool/
# cd mail/
# ls
rpcstudent
# ls -l
total 0
-rw-rw----. 1 rpcmail 0 Jun 29 05:54 rpc
-rw-rw----. 1 1000 mail 0 Jun 29 06:20 student
# cd /
# find / -nouser -o -nogroup
find: ‘/proc/65645/task/65645/fd/5’: No such file or directory
find: ‘/proc/65645/task/65645/fdinfo/5’: No such file or directory
find: ‘/proc/65645/fd/6’: No such file or directory
find: ‘/proc/65645/fdinfo/6’: No such file or directory
/var/spool/mail/student
/home/student
/home/student/.mozilla
/home/student/.mozilla/extensions
/home/student/.mozilla/plugins
/home/student/.bash_logout
/home/student/.bash_profile
/home/student/.bashrc
/home/student/.cache
/home/student/.cache/gdm
/home/student/.cache/gdm/session.log
/home/student/.cache/imsettings
/home/student/.cache/imsettings/log
/home/student/.cache/libgweather
/home/student/.cache/evolution
/home/student/.cache/evolution/addressbook
/home/student/.cache/evolution/addressbook/trash
/home/student/.cache/evolution/calendar
/home/student/.cache/evolution/calendar/trash
/home/student/.cache/evolution/mail
/home/student/.cache/evolution/mail/trash
/home/student/.cache/evolution/memos
/home/student/.cache/evolution/memos/trash
/home/student/.cache/evolution/sources
/home/student/.cache/evolution/sources/trash
/home/student/.cache/evolution/tasks
/home/student/.cache/evolution/tasks/trash
/home/student/.cache/gnome-shell
/home/student/.cache/gnome-shell/update-check-3.28
/home/student/.cache/event-sound-cache.tdb.8b1775a78c084eb8bdd8106aea565d4e.x86_                                                                           64-redhat-linux-gnu
/home/student/.cache/tracker
/home/student/.cache/tracker/db-version.txt
/home/student/.cache/tracker/meta.db
/home/student/.cache/tracker/db-locale.txt
/home/student/.cache/tracker/meta.db-wal
/home/student/.cache/tracker/meta.db-shm
/home/student/.cache/tracker/ontologies.gvdb
/home/student/.cache/tracker/parser-sha1.txt
/home/student/.cache/tracker/locale-for-miner-user-guides.txt
/home/student/.cache/tracker/locale-for-miner-apps.txt
/home/student/.cache/tracker/last-crawl.txt
/home/student/.cache/tracker/first-index.txt
/home/student/.cache/abrt
/home/student/.cache/abrt/applet_dirlist
/home/student/.cache/abrt/lastnotification
/home/student/.cache/yelp
/home/student/.cache/yelp/WebKitCache
/home/student/.cache/yelp/WebKitCache/Version 12
/home/student/.cache/yelp/WebKitCache/Version 12/salt
/home/student/.cache/yelp/WebKitCache/Version 12/Blobs
/home/student/.cache/media-art
/home/student/.cache/gstreamer-1.0
/home/student/.cache/gstreamer-1.0/registry.x86_64.bin
/home/student/.cache/flatpak
/home/student/.cache/flatpak/system-cache
/home/student/.cache/gnome-software
/home/student/.cache/gnome-software/shell-extensions
/home/student/.cache/gnome-software/odrs
/home/student/.dbus
/home/student/.dbus/session-bus
/home/student/.dbus/session-bus/8b1775a78c084eb8bdd8106aea565d4e-0
/home/student/.config
/home/student/.config/imsettings
/home/student/.config/gnome-session
/home/student/.config/gnome-session/saved-session
/home/student/.config/gnome-initial-setup-done
/home/student/.config/dconf
/home/student/.config/dconf/user
/home/student/.config/goa-1.0
/home/student/.config/pulse
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-device-volumes.tdb
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-stream-volumes.tdb
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-card-database.tdb
/home/student/.config/pulse/cookie
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-default-sink
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-default-source
/home/student/.config/ibus
/home/student/.config/ibus/bus
/home/student/.config/ibus/bus/8b1775a78c084eb8bdd8106aea565d4e-unix-0
/home/student/.config/evolution
/home/student/.config/evolution/sources
/home/student/.config/evolution/sources/system-proxy.source
/home/student/.config/user-dirs.dirs
/home/student/.config/user-dirs.locale
/home/student/.config/gconf
/home/student/.config/gtk-3.0
/home/student/.config/gtk-3.0/bookmarks
/home/student/.config/yelp
/home/student/.config/yelp/yelp.cfg
/home/student/.config/nautilus
/home/student/.config/nautilus/desktop-metadata
/home/student/.config/abrt
/home/student/.config/gtk-4.0
/home/student/.config/autostart
/home/student/.ICEauthority
/home/student/.local
/home/student/.local/share
/home/student/.local/share/gvfs-metadata
/home/student/.local/share/gvfs-metadata/root
/home/student/.local/share/gvfs-metadata/home
/home/student/.local/share/gvfs-metadata/root-5d054d29.log
/home/student/.local/share/gvfs-metadata/home-645feef8.log
/home/student/.local/share/keyrings
/home/student/.local/share/keyrings/login.keyring
/home/student/.local/share/keyrings/user.keystore
/home/student/.local/share/gnome-shell
/home/student/.local/share/evolution
/home/student/.local/share/evolution/addressbook
/home/student/.local/share/evolution/addressbook/trash
/home/student/.local/share/evolution/addressbook/system
/home/student/.local/share/evolution/addressbook/system/contacts.db
/home/student/.local/share/evolution/addressbook/system/photos
/home/student/.local/share/evolution/calendar
/home/student/.local/share/evolution/calendar/trash
/home/student/.local/share/evolution/calendar/system
/home/student/.local/share/evolution/calendar/system/calendar.ics
/home/student/.local/share/evolution/mail
/home/student/.local/share/evolution/mail/trash
/home/student/.local/share/evolution/memos
/home/student/.local/share/evolution/memos/trash
/home/student/.local/share/evolution/tasks
/home/student/.local/share/evolution/tasks/trash
/home/student/.local/share/telepathy
/home/student/.local/share/telepathy/mission-control
/home/student/.local/share/telepathy/mission-control/accounts.cfg
/home/student/.local/share/telepathy/mission-control/accounts-goa.cfg
/home/student/.local/share/sounds
/home/student/.local/share/gsettings-data-convert
/home/student/.local/share/applications
/home/student/.local/share/icc
/home/student/.local/share/gnome-settings-daemon
/home/student/.local/share/gnome-settings-daemon/input-sources-converted
/home/student/.local/share/tracker
/home/student/.local/share/tracker/data
/home/student/.local/share/tracker/data/tracker-store.journal
/home/student/.local/share/tracker/data/tracker-store.ontology.journal
/home/student/.local/share/webkitgtk
/home/student/.local/share/webkitgtk/localstorage
/home/student/.local/share/nautilus
/home/student/.local/share/nautilus/scripts
/home/student/.local/share/flatpak
/home/student/.local/share/flatpak/db
/home/student/.local/share/flatpak/repo
/home/student/.local/share/flatpak/repo/config
/home/student/.local/share/flatpak/repo/tmp
/home/student/.local/share/flatpak/repo/tmp/cache
/home/student/.local/share/flatpak/repo/extensions
/home/student/.local/share/flatpak/repo/state
/home/student/.local/share/flatpak/repo/refs
/home/student/.local/share/flatpak/repo/refs/heads
/home/student/.local/share/flatpak/repo/refs/mirrors
/home/student/.local/share/flatpak/repo/refs/remotes
/home/student/.local/share/flatpak/repo/objects
/home/student/.local/share/flatpak/.changed
/home/student/.local/share/recently-used.xbel
/home/student/.esd_auth
/home/student/Desktop
/home/student/Downloads
/home/student/Templates
/home/student/Public
/home/student/Documents
/home/student/Music
/home/student/Pictures
/home/student/Videos
/home/student/.bash_history
#

# find / -nouser-nogroup
find: ‘/proc/65894/task/65894/fd/5’: No such file or directory
find: ‘/proc/65894/task/65894/fdinfo/5’: No such file or directory
find: ‘/proc/65894/fd/6’: No such file or directory
find: ‘/proc/65894/fdinfo/6’: No such file or directory
/home/student
/home/student/.mozilla
/home/student/.mozilla/extensions
/home/student/.mozilla/plugins
/home/student/.bash_logout
/home/student/.bash_profile
/home/student/.bashrc
/home/student/.cache
/home/student/.cache/gdm
/home/student/.cache/gdm/session.log
/home/student/.cache/imsettings
/home/student/.cache/imsettings/log
/home/student/.cache/libgweather
/home/student/.cache/evolution
/home/student/.cache/evolution/addressbook
/home/student/.cache/evolution/addressbook/trash
/home/student/.cache/evolution/calendar
/home/student/.cache/evolution/calendar/trash
/home/student/.cache/evolution/mail
/home/student/.cache/evolution/mail/trash
/home/student/.cache/evolution/memos
/home/student/.cache/evolution/memos/trash
/home/student/.cache/evolution/sources
/home/student/.cache/evolution/sources/trash
/home/student/.cache/evolution/tasks
/home/student/.cache/evolution/tasks/trash
/home/student/.cache/gnome-shell
/home/student/.cache/gnome-shell/update-check-3.28
/home/student/.cache/event-sound-cache.tdb.8b1775a78c084eb8bdd8106aea565d4e.x86_64-redhat-linux-gnu
/home/student/.cache/tracker
/home/student/.cache/tracker/db-version.txt
/home/student/.cache/tracker/meta.db
/home/student/.cache/tracker/db-locale.txt
/home/student/.cache/tracker/meta.db-wal
/home/student/.cache/tracker/meta.db-shm
/home/student/.cache/tracker/ontologies.gvdb
/home/student/.cache/tracker/parser-sha1.txt
/home/student/.cache/tracker/locale-for-miner-user-guides.txt
/home/student/.cache/tracker/locale-for-miner-apps.txt
/home/student/.cache/tracker/last-crawl.txt
/home/student/.cache/tracker/first-index.txt
/home/student/.cache/abrt
/home/student/.cache/abrt/applet_dirlist
/home/student/.cache/abrt/lastnotification
/home/student/.cache/yelp
/home/student/.cache/yelp/WebKitCache
/home/student/.cache/yelp/WebKitCache/Version 12
/home/student/.cache/yelp/WebKitCache/Version 12/salt
/home/student/.cache/yelp/WebKitCache/Version 12/Blobs
/home/student/.cache/media-art
/home/student/.cache/gstreamer-1.0
/home/student/.cache/gstreamer-1.0/registry.x86_64.bin
/home/student/.cache/flatpak
/home/student/.cache/flatpak/system-cache
/home/student/.cache/gnome-software
/home/student/.cache/gnome-software/shell-extensions
/home/student/.cache/gnome-software/odrs
/home/student/.dbus
/home/student/.dbus/session-bus
/home/student/.dbus/session-bus/8b1775a78c084eb8bdd8106aea565d4e-0
/home/student/.config
/home/student/.config/imsettings
/home/student/.config/gnome-session
/home/student/.config/gnome-session/saved-session
/home/student/.config/gnome-initial-setup-done
/home/student/.config/dconf
/home/student/.config/dconf/user
/home/student/.config/goa-1.0
/home/student/.config/pulse
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-device-volumes.tdb
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-stream-volumes.tdb
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-card-database.tdb
/home/student/.config/pulse/cookie
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-default-sink
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-default-source
/home/student/.config/ibus
/home/student/.config/ibus/bus
/home/student/.config/ibus/bus/8b1775a78c084eb8bdd8106aea565d4e-unix-0
/home/student/.config/evolution
/home/student/.config/evolution/sources
/home/student/.config/evolution/sources/system-proxy.source
/home/student/.config/user-dirs.dirs
/home/student/.config/user-dirs.locale
/home/student/.config/gconf
/home/student/.config/gtk-3.0
/home/student/.config/gtk-3.0/bookmarks
/home/student/.config/yelp
/home/student/.config/yelp/yelp.cfg
/home/student/.config/nautilus
/home/student/.config/nautilus/desktop-metadata
/home/student/.config/abrt
/home/student/.config/gtk-4.0
/home/student/.config/autostart
/home/student/.ICEauthority
/home/student/.local
/home/student/.local/share
/home/student/.local/share/gvfs-metadata
/home/student/.local/share/gvfs-metadata/root
/home/student/.local/share/gvfs-metadata/home
/home/student/.local/share/gvfs-metadata/root-5d054d29.log
/home/student/.local/share/gvfs-metadata/home-645feef8.log
/home/student/.local/share/keyrings
/home/student/.local/share/keyrings/login.keyring
/home/student/.local/share/keyrings/user.keystore
/home/student/.local/share/gnome-shell
/home/student/.local/share/evolution
/home/student/.local/share/evolution/addressbook
/home/student/.local/share/evolution/addressbook/trash
/home/student/.local/share/evolution/addressbook/system
/home/student/.local/share/evolution/addressbook/system/contacts.db
/home/student/.local/share/evolution/addressbook/system/photos
/home/student/.local/share/evolution/calendar
/home/student/.local/share/evolution/calendar/trash
/home/student/.local/share/evolution/calendar/system
/home/student/.local/share/evolution/calendar/system/calendar.ics
/home/student/.local/share/evolution/mail
/home/student/.local/share/evolution/mail/trash
/home/student/.local/share/evolution/memos
/home/student/.local/share/evolution/memos/trash
/home/student/.local/share/evolution/tasks
/home/student/.local/share/evolution/tasks/trash
/home/student/.local/share/telepathy
/home/student/.local/share/telepathy/mission-control
/home/student/.local/share/telepathy/mission-control/accounts.cfg
/home/student/.local/share/telepathy/mission-control/accounts-goa.cfg
/home/student/.local/share/sounds
/home/student/.local/share/gsettings-data-convert
/home/student/.local/share/applications
/home/student/.local/share/icc
/home/student/.local/share/gnome-settings-daemon
/home/student/.local/share/gnome-settings-daemon/input-sources-converted
/home/student/.local/share/tracker
/home/student/.local/share/tracker/data
/home/student/.local/share/tracker/data/tracker-store.journal
/home/student/.local/share/tracker/data/tracker-store.ontology.journal
/home/student/.local/share/webkitgtk
/home/student/.local/share/webkitgtk/localstorage
/home/student/.local/share/nautilus
/home/student/.local/share/nautilus/scripts
/home/student/.local/share/flatpak
/home/student/.local/share/flatpak/db
/home/student/.local/share/flatpak/repo
/home/student/.local/share/flatpak/repo/config
/home/student/.local/share/flatpak/repo/tmp
/home/student/.local/share/flatpak/repo/tmp/cache
/home/student/.local/share/flatpak/repo/extensions
/home/student/.local/share/flatpak/repo/state
/home/student/.local/share/flatpak/repo/refs
/home/student/.local/share/flatpak/repo/refs/heads
/home/student/.local/share/flatpak/repo/refs/mirrors
/home/student/.local/share/flatpak/repo/refs/remotes
/home/student/.local/share/flatpak/repo/objects
/home/student/.local/share/flatpak/.changed
/home/student/.local/share/recently-used.xbel
/home/student/.esd_auth
/home/student/Desktop
/home/student/Downloads
/home/student/Templates
/home/student/Public
/home/student/Documents
/home/student/Music
/home/student/Pictures
/home/student/Videos
/home/student/.bash_history
# find / -nouser -a-nogroup
find: ‘/proc/65936/task/65936/fd/5’: No such file or directory
find: ‘/proc/65936/task/65936/fdinfo/5’: No such file or directory
find: ‘/proc/65936/fd/6’: No such file or directory
find: ‘/proc/65936/fdinfo/6’: No such file or directory
/home/student
/home/student/.mozilla
/home/student/.mozilla/extensions
/home/student/.mozilla/plugins
/home/student/.bash_logout
/home/student/.bash_profile
/home/student/.bashrc
/home/student/.cache
/home/student/.cache/gdm
/home/student/.cache/gdm/session.log
/home/student/.cache/imsettings
/home/student/.cache/imsettings/log
/home/student/.cache/libgweather
/home/student/.cache/evolution
/home/student/.cache/evolution/addressbook
/home/student/.cache/evolution/addressbook/trash
/home/student/.cache/evolution/calendar
/home/student/.cache/evolution/calendar/trash
/home/student/.cache/evolution/mail
/home/student/.cache/evolution/mail/trash
/home/student/.cache/evolution/memos
/home/student/.cache/evolution/memos/trash
/home/student/.cache/evolution/sources
/home/student/.cache/evolution/sources/trash
/home/student/.cache/evolution/tasks
/home/student/.cache/evolution/tasks/trash
/home/student/.cache/gnome-shell
/home/student/.cache/gnome-shell/update-check-3.28
/home/student/.cache/event-sound-cache.tdb.8b1775a78c084eb8bdd8106aea565d4e.x86_64-redhat-linux-gnu
/home/student/.cache/tracker
/home/student/.cache/tracker/db-version.txt
/home/student/.cache/tracker/meta.db
/home/student/.cache/tracker/db-locale.txt
/home/student/.cache/tracker/meta.db-wal
/home/student/.cache/tracker/meta.db-shm
/home/student/.cache/tracker/ontologies.gvdb
/home/student/.cache/tracker/parser-sha1.txt
/home/student/.cache/tracker/locale-for-miner-user-guides.txt
/home/student/.cache/tracker/locale-for-miner-apps.txt
/home/student/.cache/tracker/last-crawl.txt
/home/student/.cache/tracker/first-index.txt
/home/student/.cache/abrt
/home/student/.cache/abrt/applet_dirlist
/home/student/.cache/abrt/lastnotification
/home/student/.cache/yelp
/home/student/.cache/yelp/WebKitCache
/home/student/.cache/yelp/WebKitCache/Version 12
/home/student/.cache/yelp/WebKitCache/Version 12/salt
/home/student/.cache/yelp/WebKitCache/Version 12/Blobs
/home/student/.cache/media-art
/home/student/.cache/gstreamer-1.0
/home/student/.cache/gstreamer-1.0/registry.x86_64.bin
/home/student/.cache/flatpak
/home/student/.cache/flatpak/system-cache
/home/student/.cache/gnome-software
/home/student/.cache/gnome-software/shell-extensions
/home/student/.cache/gnome-software/odrs
/home/student/.dbus
/home/student/.dbus/session-bus
/home/student/.dbus/session-bus/8b1775a78c084eb8bdd8106aea565d4e-0
/home/student/.config
/home/student/.config/imsettings
/home/student/.config/gnome-session
/home/student/.config/gnome-session/saved-session
/home/student/.config/gnome-initial-setup-done
/home/student/.config/dconf
/home/student/.config/dconf/user
/home/student/.config/goa-1.0
/home/student/.config/pulse
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-device-volumes.tdb
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-stream-volumes.tdb
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-card-database.tdb
/home/student/.config/pulse/cookie
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-default-sink
/home/student/.config/pulse/8b1775a78c084eb8bdd8106aea565d4e-default-source
/home/student/.config/ibus
/home/student/.config/ibus/bus
/home/student/.config/ibus/bus/8b1775a78c084eb8bdd8106aea565d4e-unix-0
/home/student/.config/evolution
/home/student/.config/evolution/sources
/home/student/.config/evolution/sources/system-proxy.source
/home/student/.config/user-dirs.dirs
/home/student/.config/user-dirs.locale
/home/student/.config/gconf
/home/student/.config/gtk-3.0
/home/student/.config/gtk-3.0/bookmarks
/home/student/.config/yelp
/home/student/.config/yelp/yelp.cfg
/home/student/.config/nautilus
/home/student/.config/nautilus/desktop-metadata
/home/student/.config/abrt
/home/student/.config/gtk-4.0
/home/student/.config/autostart
/home/student/.ICEauthority
/home/student/.local
/home/student/.local/share
/home/student/.local/share/gvfs-metadata
/home/student/.local/share/gvfs-metadata/root
/home/student/.local/share/gvfs-metadata/home
/home/student/.local/share/gvfs-metadata/root-5d054d29.log
/home/student/.local/share/gvfs-metadata/home-645feef8.log
/home/student/.local/share/keyrings
/home/student/.local/share/keyrings/login.keyring
/home/student/.local/share/keyrings/user.keystore
/home/student/.local/share/gnome-shell
/home/student/.local/share/evolution
/home/student/.local/share/evolution/addressbook
/home/student/.local/share/evolution/addressbook/trash
/home/student/.local/share/evolution/addressbook/system
/home/student/.local/share/evolution/addressbook/system/contacts.db
/home/student/.local/share/evolution/addressbook/system/photos
/home/student/.local/share/evolution/calendar
/home/student/.local/share/evolution/calendar/trash
/home/student/.local/share/evolution/calendar/system
/home/student/.local/share/evolution/calendar/system/calendar.ics
/home/student/.local/share/evolution/mail
/home/student/.local/share/evolution/mail/trash
/home/student/.local/share/evolution/memos
/home/student/.local/share/evolution/memos/trash
/home/student/.local/share/evolution/tasks
/home/student/.local/share/evolution/tasks/trash
/home/student/.local/share/telepathy
/home/student/.local/share/telepathy/mission-control
/home/student/.local/share/telepathy/mission-control/accounts.cfg
/home/student/.local/share/telepathy/mission-control/accounts-goa.cfg
/home/student/.local/share/sounds
/home/student/.local/share/gsettings-data-convert
/home/student/.local/share/applications
/home/student/.local/share/icc
/home/student/.local/share/gnome-settings-daemon
/home/student/.local/share/gnome-settings-daemon/input-sources-converted
/home/student/.local/share/tracker
/home/student/.local/share/tracker/data
/home/student/.local/share/tracker/data/tracker-store.journal
/home/student/.local/share/tracker/data/tracker-store.ontology.journal
/home/student/.local/share/webkitgtk
/home/student/.local/share/webkitgtk/localstorage
/home/student/.local/share/nautilus
/home/student/.local/share/nautilus/scripts
/home/student/.local/share/flatpak
/home/student/.local/share/flatpak/db
/home/student/.local/share/flatpak/repo
/home/student/.local/share/flatpak/repo/config
/home/student/.local/share/flatpak/repo/tmp
/home/student/.local/share/flatpak/repo/tmp/cache
/home/student/.local/share/flatpak/repo/extensions
/home/student/.local/share/flatpak/repo/state
/home/student/.local/share/flatpak/repo/refs
/home/student/.local/share/flatpak/repo/refs/heads
/home/student/.local/share/flatpak/repo/refs/mirrors
/home/student/.local/share/flatpak/repo/refs/remotes
/home/student/.local/share/flatpak/repo/objects
/home/student/.local/share/flatpak/.changed
/home/student/.local/share/recently-used.xbel
/home/student/.esd_auth
/home/student/Desktop
/home/student/Downloads
/home/student/Templates
/home/student/Public
/home/student/Documents
/home/student/Music
/home/student/Pictures
/home/student/Videos
/home/student/.bash_history
#
------------------------------------------------------# ls -l
total 0
-rwxrw-r--. 1 root root 0 Aug 13 20:19 file1
--wx-w-r--. 1 root root 0 Aug 13 20:20 file2
-r--r---w-. 1 root root 0 Aug 13 20:20 file3
-rwxrwxr--. 1 root root 0 Aug 13 20:21 file4
-rwxrwx-w-. 1 root root 0 Aug 13 20:21 file5
find ./ -perm /777
以上命令表示三科任何一科满足都行,其中7表示每科中(r,w,x)任何一个权限满足都行。
/代表两层“any”的含义,所以7代表“any”
-代表“all”,所以0代表“any”

# ls
file1file2file3file4file5file6file7
# find ./ -perm -4000   -o   -2000
find: unknown predicate `-2000'
# find ./ -perm -4000   -o-perm-2000
./file6
./file7
# find ./ -perm -4000    -perm-2000
# find ./ -perm -4000-o-perm-2000
./file6
./file7
# find ./ -perm 4000-o-perm2000
# find ./ -perm /4000-o-perm/2000
./file6
./file7
# find ./ -perm -4000-o-perm-2000
./file6
./file7
# find ./ -perm /4777-o-perm/2777
./
./file1
./file2
./file3
./file4
./file5
./file6
./file7
#

#
# /etc/fstab
# Created by anaconda on Fri Jun 28 17:51:42 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rhel-root   /                     xfs   defaults      0 0
UUID=cae2eaaa-59ea-4c63-9c87-8e5358b6d9ac /boot                   xfs   defaults      0 0
/dev/mapper/rhel-swap   swap                  swap    defaults      0 0
/dev/sdb2               swap                  swap    defaults       0 0
LABEL="ext4_label"    /mnt                  ext4    defaults   0 0
/root/swapfile      swap                   swap   defaults   0 0
tmpfs                  /dev/shm            tmpfs      size=1200M0 0
~

页: [1]
查看完整版本: 课程第16次