Skip to content

Commit b3bcdde

Browse files
committed
MOD Linux.md sed 명령어 사용법 추가
1 parent a76abc8 commit b3bcdde

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎_wiki/Linux.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout : wiki
33
title : Linux
44
summary : linux 활용에 관한 모든것
55
date : 2018-08-21 18:28:36 +0900
6-
updated : 2019-12-23 11:37:50 +0900
6+
updated : 2019-12-26 14:42:13 +0900
77
tags : linux
88
toc : true
99
public : true
@@ -52,6 +52,15 @@ grep -A라인수 -B 라인수 # A: 뒤 몇라인, B: 앞 몇라인
5252
while true ; do echo -n "$(date) " ; ss -s | grep timewait ; sleep 1 ; done
5353
```
5454

55+
* sed
56+
* [sed 명령어](https://m.blog.naver.com/PostView.nhn?blogId=minki0127&logNo=220677180665&proxyReferer=https%3A%2F%2Fwww.google.com%2F)
57+
58+
```bash
59+
$ sed '$d' fileName # file의 마지막 라인 삭제
60+
$ sed '1d' fileName # file의 첫번째 라인만 삭제
61+
$ sed '1,3d' fileName # file의 1~3번째 라인만 삭제
62+
```
63+
5564
### 시스템 모니터링
5665

5766
* top
@@ -66,3 +75,4 @@ while true ; do echo -n "$(date) " ; ss -s | grep timewait ; sleep 1 ; done
6675
* [logroate 설정방법](https://www.manualfactory.net/10547)
6776
* supervisor : process 관리 해주는 도구
6877
* [참고](https://jwkcp.github.io/2016/11/07/how-to-use-supervisor-in-one-minute/)
78+

0 commit comments

Comments
 (0)