기술노트

기술노트

게시물 상세
Modern command line(for Ubuntu 22.04)
작성자 : 관리자(jieun@ehostidc.co.kr)  작성일 : 2022-04-27   조회수 : 2435

현재 많이 사용되고 있는 CL명령어들은 작성된 시점이 오래되어 현재 환경에서 사용하기가 불편한점이 있습니다

이를 대체하기 위한 새로운 CLI명령어들 중 몇가지만 간략하게 소개합니다

 

1)  cat 명령어의 대체 명령어 - bat

기존 명령어(cat)와 비교

root@user:~# apt install bat

root@user:~# batcat /var/log/syslog

l  우분투 / 데비안 OSbat명령어가 아닌 batcat명령어로 실행

 

 

 

2)  ls 명령어의 대체 명령어 - exa

기존 명령어(ls)와 비교

root@user:~# apt install bat

root@user:~# exa -l /var/log/

 

 

3)  du 명령어의 대체 명령어 - dust

기존 명령어(du)와 비교

root@user:~# apt install curl

root@user:~# bash -c "$(curl -fsSL https://git.io/JsADh || wget -q https://git.io/JsADh -O -)"

user@user:~$ pacstall -I dust-bin

l  Pacstallroot 계정으로 사용이 불가능합니다.

root@user:~# dust /var/log/

 

 

4)  df 명령어의 대체 duf

기존 명령어(df)와 비교

root@user:~# apt install duf

root@user:~# duf

 

 

5)  tree 명령어의 대체 broot

기존 명령어(tree)와 비교

root@user:~# echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ bullseye main" | sudo tee /etc/apt/sources.list.d/azlux.list

root@user:~# apt install broot

root@user:~# broot /var/log/ 또는br /var/log/

 

 

이전글 Apache Guacamole 설치
다음글 CentOS 8에서 Alma Linux 마이그레이션