편집할 대상파일명을 지정하여 vi 실행하기(내용이 있는 기존파일)
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,090 조회
- 0 추천
- 목록
본문
편집할 대상파일명을 지정하여 vi 실행하기(내용이 있는 기존파일)
다음은 내용이 있는 기존의 파일을 대상으로 편집을 하기 위하여 vi를 시작하는 예 입니다.
즉, 기존의 파일을 대상으로 vi를 시작하면 파일의 내용을 화면에 표시하면서 시작합니다.
아래와 같이 내용을 가지고 있던 testfile파일을 편집하기 위하여 vi를 시작한 예입니다.
[root@RockyLinux01 test]# vi testfile |
아래의 화면은 testfile을 vi로 오픈한 예로서 이미 저장되어 있던 testfile의 내용을 화면에 보여주면서 시작한 예입니다.
[root@RockyLinux01 test]# vi testfile
------------------------------------------------------------ OpenOffice.org 3.0 ReadMe ------------------------------------------------------------
For latest updates to this readme file, see http://www.openoffice.org/welcome/readme.html Dear User
This file contains important information about this program. Please read this information very carefully before starting work.
The OpenOffice.org Community, responsible for the development of this product, would like to invite you to participate as a community member. As a new user, you can check out the OpenOffice.org site with helpful user information at
~ ~ ~ ~ ~ ~ ~ ~ ~ "testfile" 17L, 612B |
관련자료
-
이전
-
다음