1. 파일 소유자가 mini 인 파일을 찾는다
[root@JeongYD01 find]# find / -user mini
find: '/proc/8165/task/8165/fd/7': No such file or directory
find: '/proc/8165/task/8165/fdinfo/7': No such file or directory
find: '/proc/8165/fd/8': No such file or directory
find: '/proc/8165/fdinfo/8': No such file or directory
find: '/run/user/1000/gvfs': Permission denied
/var/spool/mail/mini
/home/mini
/home/mini/.mozilla
/home/mini/.mozilla/extensions
/home/mini/.mozilla/plugins
/home/mini/.bash_logout
/home/mini/.bash_profile
/home/mini/.bashrc
2. 파일 소유자가 mini인 파일을 cp 하여 /tmp/find 에 복사
[root@JeongYD01 find]# find / -user mini -exec cp {} /tmp/find \;
find: '/proc/8040/task/8040/fd/6': No such file or directory
find: '/proc/8040/task/8040/fdinfo/6': No such file or directory
find: '/proc/8040/fd/7': No such file or directory
find: '/proc/8040/fdinfo/7': No such file or directory
find: '/run/user/1000/gvfs': Permission denied
cp: -r not specified; omitting directory '/home/mini'
cp: -r not specified; omitting directory '/home/mini/.mozilla'
cp: -r not specified; omitting directory '/home/mini/.mozilla/extensions'
cp: -r not specified; omitting directory '/home/mini/.mozilla/plugins'
[root@JeongYD01 find]# ls -al
total 72
drwxr-xr-x. 2 root root 119 Dec 7 03:42 .
drwxrwxrwt. 18 root root 4096 Dec 7 03:40 ..
-rw-r--r--. 1 root root 18 Dec 7 03:42 .bash_logout
-rw-r--r--. 1 root root 141 Dec 7 03:42 .bash_profile
-rw-r--r--. 1 root root 312 Dec 7 03:42 .bashrc
-rw-r-----. 1 root root 0 Dec 7 03:42 mini
'Linux' 카테고리의 다른 글
[Linux] RHCSA tuned profile (0) | 2020.12.10 |
---|---|
[Linux] RHCSA chrony 설정(ntp) (0) | 2020.12.10 |
[Linux] RHCSA SELinux http Listen 포트 추가 (0) | 2020.12.08 |
[Linux] RHCSA Virtual Data Optimizer (VDO) volume 만들기 (1) | 2020.12.07 |
[Linux] RHCSA ssh-keygen (0) | 2020.11.25 |