우분투에서 파일 검색하는 방법은 여러 가지가 있는데요.


그중에서 locate로 검색하는 것도 편리하더라구요.


사용 방법은 아래와 같아요.


locate test.py


아래와 같이 파일 시스템 전체에서 test.py를 검색해서 출력해줍니다.


/usr/local/lib/python2.7/dist-packages/django/core/management/commands/test.py

/usr/local/lib/python2.7/dist-packages/django/core/management/commands/test.pyc

/usr/local/lib/python2.7/dist-packages/django/test/_doctest.py

/usr/local/lib/python2.7/dist-packages/django/test/_doctest.pyc

/usr/share/checkbox/plugins/manual_test.py

/usr/share/checkbox/plugins/manual_test.pyc

/usr/share/checkbox/plugins/metric_test.py

/usr/share/checkbox/plugins/metric_test.pyc

/usr/share/checkbox/plugins/shell_test.py

/usr/share/checkbox/plugins/shell_test.pyc

/usr/share/doc/obex-data-server/examples/ods-bip-test.py.gz

/usr/share/doc/obex-data-server/examples/ods-session-test.py.gz

/usr/share/doc/python-pam/examples/pamtest.py

/usr/share/pyshared/chardet/test.py

/usr/share/pyshared/lxml/usedoctest.py

/usr/share/pyshared/lxml/html/usedoctest.py

/usr/share/pyshared/mx/DateTime/mxDateTime/test.py

/usr/share/pyshared/mx/Tools/mxTools/test.py

/usr/share/pyshared/numpy/testing/numpytest.py

/usr/share/pyshared/reportlab/graphics/barcode/test.py

/usr/share/pyshared/setuptools/command/test.py

/usr/share/pyshared/setuptools/tests/doctest.py

/usr/share/pyshared/speechd/_test.py

/usr/share/pyshared/twisted/trial/unittest.py

/usr/share/pyshared/twisted/trial/test/mockdoctest.py

/usr/share/pyshared/twisted/trial/test/moduletest.py

/usr/share/pyshared/twisted/trial/test/scripttest.py

/usr/share/pyshared/twisted/trial/test/test_doctest.py

/usr/share/pyshared/werkzeug/test.py

/usr/share/pyshared/werkzeug/testsuite/test.py




+ Recent posts