운영체제84 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. cp 명령어 파일이나 폴더를 복사하는 명령어 [root@localhost test]# cp testfile test1/test2/ [root@localhost test]# ls test1/test2/ testfile [root@localhost test]# 2021. 6. 24. mkdir 명령어 make directory디렉토리 생성 명령어 [root@localhost test]# mkdir make_folder [root@localhost test]# ls make_folder test1 testfile2 [root@localhost test]# 2021. 6. 23. mv 명령어 파일이동 및 파일명 변경 명령어 [root@localhost test]# ls test1 testfile testfile2 [root@localhost test]# mv testfile changefile [root@localhost test]# ls changefile test1 testfile2 [root@localhost test]# [root@localhost test]# ls changefile test1 testfile2 [root@localhost test]# mv changefile test1/changefile [root@localhost test]# ls test1 changefile test2 [root@localhost test]# 2021. 6. 22. 이전 1 ··· 16 17 18 19 20 21 다음