# 유용한 1줄 쉘 커맨드들

> Clean Markdown view of GeekNews topic #4190. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4190](https://news.hada.io/topic?id=4190)
- GeekNews Markdown: [https://news.hada.io/topic/4190.md](https://news.hada.io/topic/4190.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-05-04T10:25:06+09:00
- Updated: 2021-05-04T10:25:06+09:00
- Original source: [muhammadraza.me](https://muhammadraza.me/2021/Oneliners/)
- Points: 25
- Comments: 4

## Topic Body

$ ps aux | convert label:@- process.png

ㅤ→ 쉘 아웃풋을 이미지로

$ curl ipinfo.io

ㅤ→ 외부 IP주소

$ git log --format='%aN' | sort -u

ㅤ→ 컨트리뷰터 보기

$ history | awk '{print $2}' | sort | uniq -c | sort -rn | head.

ㅤ→ 가장 자주 쓰는 명령들 보고, alias로 추가 가능

$ ls -d */

ㅤ→ 디렉토리만 보기

$ du -hs */ | sort -hr | head

ㅤ→ 현재 폴더 하위에서 가장 큰 폴더 10개 보기

$ ss -p

ㅤ→ 네트웍 사용중인 앱들 리스트 보기

$ rm -f !(test.txt).

ㅤ→ 특정 파일 제외하고 나머지 다 지우기

$ python3 -m http.server

ㅤ→ 현재 폴더에서 웹서버 실행

$ mkfifo hello; script -f hello

ㅤ→ 터미널 세션 실시간 공유

## Comments



### Comment 5101

- Author: functor
- Created: 2021-05-06T12:55:44+09:00
- Points: 1

fzf (https://github.com/junegunn/fzf)를 사용합시다.

### Comment 5087

- Author: regentag
- Created: 2021-05-04T14:28:23+09:00
- Points: 1

HTTP Static server가 필요한 일이 꽤 있나보군요.

서비스용이라면 아파치나 ngunx를 쓸테니 그건 아닌것 같고, 시스템 운영자에게 필요한걸까요?

### Comment 5088

- Author: dbeat999
- Created: 2021-05-04T15:03:48+09:00
- Points: 1
- Parent comment: 5087
- Depth: 1

개발머신에서 산출물들(HTML, CSS, JS, WASM, ...) 간단히 테스트하고 싶을 때 저만한 도구가 없습니다.

저거랑 npx serve 도 종종 쓰네요

### Comment 5083

- Author: xguru
- Created: 2021-05-04T10:25:13+09:00
- Points: 2

- The Art of Command Line [번역] https://news.hada.io/topic?id=137

- 유용한 Zsh 팁들 https://news.hada.io/topic?id=3764

- 요즘 유용한 커맨드 라인 도구 모음 https://news.hada.io/topic?id=793

- 한줄짜리 HTTP Static Server 모음 https://news.hada.io/topic?id=1325

- .vimrc 파일에 꼭 넣는 5줄 https://news.hada.io/topic?id=3397
