본문 바로가기
반응형

OS/Linux73

[Linux/Unix] find 의 고급기능 파일을 찾을 때 find 명령어와 xargs 명령어를 파이프(|)로 묶어서 여러가지 기능을 사용을 했었는데 find 명령어에 대해서 자세히 찾아보니 다른 블로그에서 쉽게 보지 못했던 기능들이 있어서 정리를 해둔다. find 는 기본적으로 다음의 방법으로 사용을 한다. // 문법 $ find path operators // 현재 디렉토리(하위포함 이후 표현 동일함)에서 이름이 *.c 에 해당하는 결과 $ find . -name *.c // 루트(/) 디렉토리에서 최근 3일 이내에 수정된 자료의 결과 $ find / -mtime -3 // 사이즈가 512byte 보다 큰 결과 $ find . -size +512 // .o 로 끝나는 파일을 찾아서 모두 삭제 $ find . -name "*.o" -exec r.. 2022. 1. 8.
exec와 xargs 차이 exec와 xargs 차이 find . -name H* -exec ls -l {} \; executes the command ls -l on each individual file. find . -name H* | xargs ls -l constructs an argument list from the output of the find commend and passes it to ls. consider if the ouput of the find command produced: H1 H2 H3 the first command would execute ls -l H1 ls -l H2 ls -l H3 but the second would execute ls -l H1 H2 H3 2022. 1. 8.
centos8 docker install # docker install dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo dnf list docker-ce dnf install docker-ce docker-ce-cli containerd.io --nobest systemctl start docker systemctl enable docker # docker-compose install curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod 75.. 2020. 8. 31.
How to Install Java on Linux Mint 19 How to Install Java on Linux Mint 19 Table of Contents Prerequisites 1. Install Default OpenJDK 2. Install OpenJDK 8, 10, or 11 3. Install Oracle Java With apt 4. Install Java From Oracle Website on Linux Mint 19 5. Setting up default Java Version on Linux Mint 19 6. Set the JAVA_HOME Environment Variable Conclusion Install Java on Linux Mint 19 Java is the popular programming language owned by .. 2020. 1. 11.
반응형