강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

편집할 대상파일명을 지정하여 vi 실행하기(내용이 있는 기존파일)

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

편집할 대상파일명을 지정하여 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

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  98 명