1. /practice/file_test/ 디렉토리 생성.
2. /practice/file_test/ 디렉토리 아래 하위 디렉토리 생성. (단, 명령어 한줄이용)
/practice/file_test/bin_a/
/practice/file_test/bin_b/
3. /bin/ 경로에 있는 a로 시작하는 모든 파일을 /practice/file_test/bin_a/ 디렉토리에 복사.
/bin/ 경로에 있는 b로 시작하는 모든 파일을 /practice/file_test/bin_b/ 디렉토리에 복사.
4. /etc/resolv.conf 파일을 /practice/file_test/ 디렉토리로 복사.
5. /practice/file_test/resolv.conf 파일의 내용과 /etc/resolv.conf 파일이 동일한 내용 인지 확인.
6. /practice/backup 디렉토리 생성 후
/practice/file_test/resolv.conf 파일을 /practice/backup/ 으로 이동
7. /practice/backup 디렉토리에 아래와 같이 파일을 생성
- 빈 파일 생성
- 파일1 : yesterday_file
- 파일2 : now_file
1.
/practice/file_test/ 생성
2.
mkdir로 한번에 두개 생성
3. 3가지 방법
명령어를 치고 [TAB]키 두번을 누르면 bin디렉토리에 a로시작하는 파일이 나오는것을 확인.
arch awk 파일이 복사된것을 알수있다.
제일 간단한 방법 cp /bin/b* ./
4.
./현재경로 사용
5.
#cat /practice/file_test/resolv.conf
현재 경로 인 상태 #cat /etc/resolv.conf
6.
확인 결과 file_test에 resolv.conf 파일이 없어진것을 확인
7.
touch 명령어로 빈파일 두개 생성 확인
'Server > Linux' 카테고리의 다른 글
xshell/ 디렉토리 명령어3 (0) | 2017.03.31 |
---|---|
Linux - snapshot 기능 (0) | 2017.03.29 |
xshell/ 디렉토리 명령어2 (0) | 2017.03.28 |
xshell/ 디렉토리 실습1 (0) | 2017.03.19 |
xshell/ 디렉토리 명령어1 (0) | 2017.03.19 |