Create file using command in DOS or Linux (default command)

개요

노트패드나 VI에디터같은 툴이 없을때 기본명령만으로 파일을 에디트 해야할때가 있다. 이런때 사용할 수 있는 명령어다. 

Sometimes, You have to edit files without use GUI or tools like notepad or VI editors in a restricted environment.
I'll show you how to create a file just using the default command in Linux or DOS systems.



    DOS Command (Copy con filename)

    c:\>copy con filename.txt (enter)
    desc~~~~~~
    textdesc~~~
    Ctrl+Z






    Linux Command (Cat >filename)

    #cat >filename (enter)
    desc~~~~~~
    textdesc~~~
    Ctrl+D






    참조

    내용 : http://andrewault.blogspot.com/2008/03/unix-equivalent-of-dos-copy-con.html 

    댓글

    이 블로그의 인기 게시물

    공조설비에 대한 이해

    자동제어 기본 교육자료 정리1 DDC 및 설비계통

    RS485통신과 데이지체인(DaisyChain) 결선방식