linux 명령어

이현빈·2023년 5월 17일
0

CE blog

목록 보기
15/21

현재 디렉토리 확인

  • pwd를 통해 현재 위치를 확인할 수 있다.

디렉토리 이동

  • cd target_directory_path
  • 접근을 막아 놓은 디렉토리를 제외하고는 어느 디렉토리로든 이동이 가능하다.

디렉토리 내용 보기

  • ls [option] file_or_dir_path

디렉토리 만들기

  • mkdir [option] directory_path

디렉토리 삭제

  • rmdir [option] directory_path

파일이나 디렉토리 삭제

  • rm [option] target_path

복사

  • cp [option] src_path target_path

이름변경 또는 이동

  • mv [option] src_path target_path

(text) 출력

  • cat target
  • 파일의 내용 또는 환경변수의 내용을 출력한다.

특정 패턴 검색

  • grep pattern

파일 권한 변경

  • chmod mode target
  • 권한은 rwx를 나타내는 이진수를 팔진수로 표시한다.
  • 소유자, 그룹, 그외 사용자 순으로 지정한다.
  • e.g. chmod 777 target_path

소유자 변경

  • chown [option] [user][:group] target_path

프로세스 및 리소스 모니터링

  • top

네트워크 인터페이스 정보 확인

  • ifconfig

reference
mkdocs

0개의 댓글