제목이 좀 이상하긴 하지만,
설치된 Command(예, ls 혹은 openssh-client 등등)의 실행 경로나 정보를 찾는 방법을 공부해 봅니다.
~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games |
~$ which ls /bin/ls |
~$ find /usr -name ls /usr/lib/klibc/bin/ls |
~$ whereis ls ls: /bin/ls /usr/share/man/man1/ls.1.gz |
~$ locate ls /bin/false /bin/ls ... |
~$ apropos ls _llseek (2) - reposition read/write file offset ... ls (1) - list directory contents ... |
~$ man 1 ls |
~$ apt-cache search openssh-client openssh-client - secure shell (SSH) client, for secure access to remote machines ssh-askpass-gnome - interactive X program to prompt users for a passphrase for ssh-add |
~$ dpkg-query -S openssh-client openssh-client: /usr/share/apport/package-hooks/openssh-client.py openssh-server: /usr/share/doc/openssh-client/examples/sshd_config openssh-client: /usr/share/doc/openssh-client/faq.html openssh-client, openssh-server, ssh: /usr/share/doc/openssh-client openssh-client: /usr/share/doc/openssh-client/README.compromised-keys.gz openssh-client: /usr/share/doc/openssh-client/changelog.gz openssh-client: /usr/share/doc/openssh-client/README openssh-client: /usr/share/doc/openssh-client/OVERVIEW.gz openssh-client: /usr/share/doc/openssh-client/copyright openssh-client: /usr/share/doc/openssh-client/README.tun.gz openssh-client: /usr/share/doc/openssh-client/README.Debian.gz openssh-client: /usr/share/doc/openssh-client/README.dns openssh-client: /usr/share/doc/openssh-client/ChangeLog.gssapi openssh-client: /usr/share/doc/openssh-client/changelog.Debian.gz openssh-client: /usr/share/lintian/overrides/openssh-client openssh-client: /usr/share/doc/openssh-client/NEWS.Debian.gz openssh-server: /usr/share/doc/openssh-client/examples |
~$ dpkg -L openssh-client /. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/openssh-client /usr/share/doc /usr/share/doc/openssh-client /usr/share/doc/openssh-client/ChangeLog.gssapi /usr/share/doc/openssh-client/README /usr/share/doc/openssh-client/README.dns /usr/share/doc/openssh-client/changelog.gz /usr/share/doc/openssh-client/faq.html /usr/share/doc/openssh-client/README.Debian.gz /usr/share/doc/openssh-client/changelog.Debian.gz /usr/share/doc/openssh-client/copyright /usr/share/doc/openssh-client/NEWS.Debian.gz /usr/share/doc/openssh-client/OVERVIEW.gz /usr/share/doc/openssh-client/README.tun.gz /usr/share/doc/openssh-client/README.compromised-keys.gz ... /var /var/run /etc /etc/ssh /etc/ssh/ssh_config /etc/ssh/moduli /usr/share/man/man1/slogin.1.gz /usr/bin/slogin |
[출처 : http://greenfishblog.tistory.com/35]
'Academy I > Tech Academy' 카테고리의 다른 글
[Linux]Shell 활용 (03) 간단한 Bash shell script 작성 (0) | 2014.12.31 |
---|---|
[Linux]Shell 활용 (02) redirect, su(sudo), 환경 변수 (0) | 2014.12.31 |
[Linux]Shell 활용 (01) (0) | 2014.12.31 |
[Linux]man 활용 (0) | 2014.12.31 |
Linux Shell Programming (0) | 2014.12.22 |
Linux gdb 사용법 [II] (0) | 2014.12.22 |
Linux make 사용법 [II] (0) | 2014.12.22 |
VirtualBox의 Linux(CentOS)에서 공유폴더 설정 (0) | 2014.12.22 |