리눅스 명령어 test 사용
디렉토리 존재 여부
$ sudo test -d /mnt && echo "Directory exists." || echo "Directory does not exist."
Directory exists.
파일은 -f 옵션 사용
'Ubuntu' 카테고리의 다른 글
ldconfig (0) | 2024.12.13 |
---|---|
기본 Library PATH의 설정 (0) | 2024.12.13 |
TMUX를 이용한 프로그램 실행 (0) | 2024.05.16 |
Source Compile로 설치된 프로그램의 Dock등록방법 (0) | 2023.12.24 |
Ubuntu Package uninstall (0) | 2023.12.20 |