본문 바로가기

Infra/OS

자주 사용하는 Linux 명령어

자주쓰는 명령어 모음

pwd (print working directory)

현재 위치한 디렉토리 출력

$ pwd /c/Users/Snetsystems

 

cd (change directory)

경로 이동

$ cd

 

ls (list)

현재 위치한 디렉토리 내의 목록을 확인

$ ls

 

cat (concatenate)

파일 보기

$ cat

 

mkdir (make directory)

디렉토리 생성

$ mkdir

 

touch

최신 수정일로 변경

$ touch

 

rm (remove)

삭제

$ rm

 

head

해당 파일 열람

$ head

 

tail

해당 파일 열람

$ tail

 

find

문자로 파일, 폴더 찾기

$ find

 

grep

$ grep


시스템/프로세스 관련

top

문자로 파일, 폴더 찾기

$ top

 

shutdown

ACPI 신호를 보내 시스템 전원을 끔으로써 시스템 종료

$ shutdown -h now

 

halt

하드웨어가 CPU 사용을 중지함으로써 시스템 종료

$ halt

 

reboot

시스템 재부팅

$ reboot

 

tar

centOS 압축 프로그램

$ tar

 

arp (address resolution protocol)

문자로 파일, 폴더 찾기

$ arq

 


네트워크 관련

ping(Packet Internet Groper)

문자로 파일, 폴더 찾기

$ ping

 

ifconfig(interface config)

문자로 파일, 폴더 찾기

$ ifconfig

 

route

문자로 파일, 폴더 찾기

$ route

 

netstat

시스템에 연결된 소켓정보 출력

$ netstat

 

traceroute, tracepath

네트워크 경로 추적

$ tranceroute //tracepath

 

hostname

host 정보 출력

$ hostname

 

nslookup

$ nslookup

 

다운로드

$ yum install bind-utils

 

명령어로 등록

$ yum provides '\*bin/nslookup'

 

 

출처: https://geometery-programing.tistory.com/45