Mac
-
간단한 명령어 정리개발/Unix 2021. 10. 27. 11:44
ls : 현재 위치에 있는 파일과 폴더 목록 ls -l : 파일과 폴더를 보여줄 때 한 줄로 보여주면서 권한, 소유자 등의 상세 정보도 같이 보여준다 ls -l | grep something : something을 찾을 때 사용 cd directory: 디렉토리로 들어가기 cd / : 루트로 가기 cd .. : 한 단계 위로 mv somefiles somefiles_2 : 현재 위치에 있는 somefiles의 이름을 somefiles_2로 변경한다 cp some/loc/files other/loc : 파일 복사 cp -r some/loc/dir other/loc/dir : 디렉토리 복사 rm files : 파일 지우기 rm -r directory : 디렉토리 지우기 (-r이 recursive인데 디렉토리..