본문 바로가기

[Shell] 요약 정리 (1) : bash 기준

by ds31x 2023. 10. 2.
728x90

Shell script file 의 작성시 첫번째 라인 (shebang line) 작성법 : env 사용하기

2023.06.20 - [개발환경] - [Shell] env and Shebang line

 

[Shell] env and Shebang line

env 명령어는 주로 environment variable들을 확인하거나 특정 명령어 수행할 때 특정 environment variable을 지정해주는데 사용된다. The env command allows you to display your current environment or run a specified command in a

ds31x.tistory.com

 

변수 설정반복 구문 작성하기

2023.07.19 - [개발환경] - [bash] shell 기본 : 변수 설정 및 반복구문

 

[bash] shell 기본 : 변수 설정 및 반복구문

shell script란 shell에서 동작하는 script로, 여러 command 들을 하나의 파일로 저장하고 해당 파일을 line별로 interpreting하여 수행시킬 수 있게 해주는 것을 가르킴. (py파일이 python interptreter에 의해 동작

ds31x.tistory.com

 

명령어 치환을 통한 다른 명령어의 출력으로 특정 위치의 문자열 치환하기

2023.10.01 - [Linux] - [Shell] command substitution

 

[Shell] command substitution

우리나라말로 명령어 치환 이라고 불리며, 특정 명령어의 수행결과를 문자열로 입력받는 형태로 셀프로그래밍 등에서 사용됨. command substition 사용법 아래 예제는 result.txt 를 현재 날짜 정보를

ds31x.tistory.com

 


여러 명령어를 연결하기

2023.09.12 - [Linux] - [Linux] Pipe와 다중 명령어

 

[Linux] Pipe와 다중 명령어

| : Pipe Pipe |는 2개의 processes를 연결해주는 연결 통로로서 pipe 앞의 프로세스의 stdout(표준출력)이 pipe 뒤의 프로세스의 stdin(표준입력)으로 쓰이도록 연결해주는 것임. 예를 들어 ls|sort|more의 경우

ds31x.tistory.com

2023.10.02 - [Linux] - [Bash] 입출력 목적지 변경하기 : Redirection Operation

 

[Bash] 입출력 목적지 변경하기 : Redirection Operation

stdout (표준출력, 1), sdtin(표준입력, 0), stderr(표준에러, 2)을 redirection하는 방법에 대한 문서 서버에서 백그라운드로 명령어 수행시 출력이나 error 메시지 등을 stdout이 아닌 file에 남길 때 유용. redir

ds31x.tistory.com


기본 명령어들

2024.05.20 - [Linux/shell] - [Bash] File과 directory 관련 command

 

[Bash] File과 directory 관련 command

Bash에서 파일과 디렉토리 관련 명령어 튜토리얼이 문서는 비어있는 디렉토리에서 시작하여 파일과 디렉토리를 생성하고, 삭제하는 과정을 단계별로 설명하는 일종의 튜토리얼임. terminal에서

ds31x.tistory.com

 

2023.09.30 - [Linux] - [Linux] 파일 내용확인하기: cat, bat, less, more, head, tail

 

[Linux] 파일 내용확인하기: cat, bat, less, more, head, tail

cat, bat cat (concatenate)은 가장 간단하게 파일 내용을 확인할 수 있게 해준다. stdout에 파일의 내용을 출력해주는 역할을 한다. bat은 cat을 보다 개선한 프로그램이다. 행번호 출력 및 페이지에 맞춰

ds31x.tistory.com

 

2024.05.11 - [Linux] - [linux] find 사용법.

 

[linux] find 사용법.

find 명령어 사용법find 명령어는 UNIX 및 Linux 기반 시스템에서파일이나 디렉토리를 검색할 때 사용하는 S/W.이 명령어는 지정된 "[검색 시작 경로]"에서부터 파일 시스템을 순회하며주어진 조건에

ds31x.tistory.com

 

https://dsaint31.tistory.com/234

 

[Linux] ps 명령어

linux에서 현재 동작하고 있는 process들에 대한 정보(목록 및 상태)를 보여줌. ps aux BSD 형식으로 현재 동작하고 있는 모든 프로세스에 대한 아래의 정보를 출력함. a : BSD 계열 옵션으로 터미널에 연

dsaint31.tistory.com

 

반응형