본문 바로가기

Infrastructure

[Linux/Centos7] 자주쓰는 기본 명령어

자주쓰는 명령어 모음

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'


※ 자세한 정보

General Commands

CommandDescription

arpaname translate IP addresses to the corresponding ARPA names
delv DNS lookup and validation utility
dig DNS lookup utility
dnstap-read print dnstap data in human-readable form
host DNS lookup utility
nslookup query Internet name servers interactively
nsupdate Dynamic DNS update utility

System Administration

CommandDescription

ddns-confgen ddns key generation tool
genrandom generate a file containing random data
isc-hmac-fixup fixes HMAC keys generated by older versions of BIND
named-checkzone zone file validity checking or converting tool
named-compilezone alias for named-checkzone
named-nzd2nzf Convert an NZD database to NZF text format
nsec3hash generate NSEC3 hash
tsig-keygen alias for ddns-confgen

 


리눅스의 명령어와 디렉토리가 가지는 의미를 디테일하게 알 수 있는 곳

https://no05s.tistory.com/34


리눅스 명령어 (디테일한 설명)

https://se.uzoogom.com/97


자주쓰는 리눅스 명령어 모음

https://itholic.github.io/linux-basic-command/

'Infrastructure' 카테고리의 다른 글

CentOS7 Node.js Install  (0) 2020.06.01
Network  (0) 2020.01.22
[Linux]CentOS7 콘솔 키보드 조작  (0) 2020.01.08
[Linux] CentOS7 디렉토리 역할  (1) 2020.01.08
[Linux] CentOS7 네트워크 설정하기  (0) 2020.01.07