반응형
Notice
Recent Posts
Recent Comments
Link
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Archives
Today
Total
관리 메뉴

for Time in Life:

Find all path for my python 본문

개발 환경

Find all path for my python

rooter 2023. 2. 10. 21:40

Default python executable

most of you know this.

which python

This command returns the path to the default Python executable in your system's PATH environment variable.

 

All the pythons installed

ls -la $(which -a python)

This command returns a list of all the Python executables in your system, with additional information about each file, such as its permissions and the time of its last modification. The which -a part of the command returns all the paths to executables named python, and ls -la lists the details of each file.

 

Another way to find python

find /usr -name "python*" -type f -executable

This command searches the /usr directory and its subdirectories for files that match the specified criteria:

  • -name "python*": the file name starts with "python"
  • -type f: the file is a regular file
  • -executable: the file is executable The find command returns the paths of all files that match these criteria.
반응형

'개발 환경' 카테고리의 다른 글

Mac, 보조 키 어떻게 사용할 것인가  (1) 2024.02.13
Unzip file in Linux  (0) 2023.02.10
Difference between apt & apt-get  (0) 2023.02.10
Difference between Chromedriver and Chromium-Chromedriver  (0) 2023.02.10
Dockerfile for python  (0) 2023.02.10