지속적으로 내용 추가 중입니다.

Linux Bash 명령어 정리

명령어 옵션 설명
ls [path]   [path]에 있는 파일과 디렉토리를 출력한다. [path]를 적지 않으면 기본설정은 현재 디렉토리(“.”)이다.
  -a [path]에 있는 모든 파일과 디렉토리를 출력한다.
  -l [path]에 있는 파일과 디렉토리를 한줄에 한개씩 보여준다.
cd [path]   현재 디렉토리를 [path]로 변경한다.
alias [nickname]=[command]   [command] 대신 [nickname]을 입력하여도 [command]를 사용 가능하도록 설정한다.
echo [content]   [content]를 출력한다.
pwd   현재 디렉토리를 출력한다.
chmod [mod] [path]   [path]의 접근권한을 [mod]로 변경한다.
mv [path1] [path2]   [path1]을 [path2]로 이동한다.
cp [path1] [path2]   [path1]을 [path2]로 복사한다.
touch [file]   [file]의 수정한 날짜를 최신화한다. [file]가 없을 시 생성한다.
mkdir [path]   [path]에 해당 directory를 만든다.
cat [file]   [file]의 내용을 출력한다.
head -[line] [file]   [file]의 내용을 앞에서부터 [line]줄 만큼 출력한다.
  -f [file]의 내용이 변경될 시 변경 사항이 반영된다.
tail -[line] [file]   [file]의 내용을 뒤에서부터 [line]줄 만큼 출력한다.
  -f [file]의 내용이 변경될 시 변경 사항이 반영된다.
ps   현재 실행중인 프로세스를 보여준다
netstat   현재 열려 있는 네트워크 포트를 보여준다
history   작성한 명령어 history를 보여준다.
stat [filename]   [filename]의 정보를 보여준다.
wc [filename]   [filename]을 읽어 글자수를 보여준다.
  -l [filename]을 읽어 줄 수를 보여준다.
     
     
     
     

Linux Directory Path

Symbol Meanning
. 현재 디렉토리
.. 부모 디렉토리
~ 홈 디렉토리