본문 바로가기
반응형

Development Solutions/Linux15

[ubuntu][bash] How to do when tab autocomplete expansion does not work (tab 자동완성 확장이 안될 때 방법) [Solved][ubuntu][bash] How to do when tab autocomplete expansion does not work (tab 자동완성 확장이 안될 때 방법) step 1. sudo apt-get install bash-completion step 2. sudo vi /root/.bashrc step 3. 아래 코드 부분의 주석을 제거 (Uncomment the below code part) if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion step 4. reboot 2022. 8. 30.
[linux] 'ripgrep' more than 3x faster than grep (grep보다 3배 이상 빠른 ripgrep) [linux] 'ripgrep' more than 3x faster than grep (grep보다 3배 이상 빠른 ripgrep) [linux][shell] grep보다 3배 이상 빠른 ripgrep ripgrep github page https://github.com/BurntSushi/ripgrep#installation GitHub - BurntSushi/ripgrep: ripgrep recursively searches directories for a regex pattern while respecting your gitignore ripgrep recursively searches directories for a regex pattern while respecting your gitignore.. 2022. 8. 24.
[Solved][Linux] Count grep results: wc command (grep 결과의 개수 세기: wc 명령어) [Solved][Linux] Count grep results: wc command (grep 결과의 개수 세기: wc 명령어) grep의 결과가 너무 많아서 카운트하기 어려울 때 wc -l 옵션을 사용하면 간단히 grep 결과의 전체 라인 행 수를 셀 수 있습니다. ex) grep -r "mem" ./ | wc -l wc 명령어 옵션 -c 지정 파일의 byte -m 지정 파일의 문자 개수 -l 지정 파일의 총 행 개수 -w 지정 파일의 총 단어 개수 -L 지정 파일의 모든 행 중, 가장 길이가 긴 행의 문자 개수 (When there are too many grep results to count, The wc -l option allows you to simply count the total numbe.. 2022. 8. 24.
[Solved][Linux] source Command Description (source 명령 설명) [Solved][Linux] source Command Description source 명령 설명 source는 쉘 스크립트 명령이 childe 프로세스가 아닌, 현재 실행중인 프로세스에서 실행되도록 하는 명령어! 덕분에 스크립트가 끝났을때 바로 명령어를 적용시킬 수 있음 ex) source ./bashrc (source is a command that allows shell script commands to be executed in a currently running process, not in a child process! This allows you to apply the command as soon as the script is finished ex) source ./bashrc) 2022. 8. 24.
반응형