본문 바로가기
728x90
반응형

프로그래밍21

[mac] 터미널 기본 명령어 #1 "pwd, cd, ls, mkdir" MAC Terminal Basic Command Lines 1. Print Working Directory (현재 경로 출력)$ pwd/Users/user 2. Change Directory (디렉토리/폴더 이동)$ cd "path/to/directory/"$ cd ../ # 부모(이전)디렉토리로 이동Example:$ pwd/Users/user$ cd Desktop$ pwd/Users/user/Desktop$ cd ..//Users/user 3. Listing Directory (디렉토리 내용 출력)- 현재 디렉토리 안에 있는 폴더와 파일들 목록을 출력.$ ls # 현재 위치해있는 디렉토리의 내용 출력$ ls "path/to/directory" # 지정하는 디렉토리의 내용 출력Example (1.. 2024. 5. 14.
[leetcode] Flipping an Image Given an n x n binary matrix image, flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means that each row of the image is reversed. For example, flipping [1,1,0] horizontally results in [0,1,1]. To invert an image means that each 0 is replaced by 1, and each 1 is replaced by 0. For example, inverting [0,1,1] results in [1,0,0]. Example 1: .. 2023. 4. 12.
[Mac] Docker Installation Install Docker Desktop: (https://docs.docker.com/engine/install/) Check --> Mac with Apple silicon vs Mac with Intel chip Download Docker Desktop for Mac with Apple silicon $ softwareupdate --install-rosetta **두가지 설치방법 중 한가지 골라서 설치 (https://docs.docker.com/desktop/install/mac-install/) Install interactively Double-click Docker.dmg to open the installer, then drag the Docker icon to the Applicati.. 2023. 4. 12.
[Ubuntu] docker 에러 해결 "docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock" docker 설치 후, 명령어를 실행했을 때 아래와 같은 에러가 발생.$ fmriprep-dockerdocker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.See 'docker run --help'.Could not detect memory capacity of Docker container.Do you have permission to run .. 2023. 4. 12.
728x90
반응형