본문 바로가기

운영체제/리눅스(CentOS)51

CentOS 7.6 에 redis 설치 /usr/local/src로 이동후 wget 명령으로 파일을 다운로드하고 압축을 푼 후 차례대로 실행합니다. wget http://download.redis.io/redis-stable.tar.gz tar -zxvf redis-stable.tar.gz cd redis-stable make make install [root@localhost redis-stable]# make install cd src && make install make[1]: Entering directory `/usr/local/src/redis-stable/src' Hint: It's a good idea to run 'make test' ;) INSTALL redis-server INSTALL redis-benchmark INST.. 2021. 12. 2.
whatis 명령어 간략하게 무엇을 하는 명령어인지 설명을 해주는 명령어입니다. man 명령어 매뉴얼의 첫문장 내용을 가져온다. [root@localhost ~]# whatis cp cp (1) - copy files and directories [root@localhost ~]# whatis man man (1) - an interface to the on-line reference manuals [root@localhost ~]# 2021. 8. 26.
help 명령어 리눅스 명령어에 대한 사용법을 알려주는 명령어이다. [root@localhost ~]# help GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) These shell commands are defined internally. Type `help' to see this list. Type `help name' to find out more about the function `name'. Use `info bash' to find out more about the shell in general. Use `man -k' or `info' to find out more about commands not in this list. A star (*) ne.. 2021. 8. 5.
find 명령어 파일이나 디렉토리를 찾을때 사용하는 명령어 [root@localhost test]# find / -name "testfile2" /data/test/testfile2 [root@localhost test] 제가 실무에서 자주 쓰는 명령어 인데요. xargs, grep 하고 같이 사용하면 편리합니다. [root@localhost test]# find ./ -name "*" | xargs grep -n --color=auto "반갑습니다" 2>/dev/null ./testfile2:1:반갑습니다. [root@localhost test]# xargs는 앞 명령어의 결과를 다음 명령어의 입력으로 사용할때 적용하는 명령어 입니다. grep는 문자열이 있는 행을 찾아 출력하는 명령어 입니다. 2021. 6. 29.