How to create & edit a file in Unix?

How to create & edit a file in Unix?

Senior Developer Asked on December 7, 2017 in UNIX.
Add Comment
1 Answer(s)

    Creating a file using cat command

    Here I create a file named welcome.txt and enter some text.Type Control+d to stop and save the file.

    
    cat > welcome.txt
    
    Hi user! Thank you for viewing my answer.
    
    ^D
    
    
    Team Leader Answered on December 31, 2017.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.