Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to create file using cat in Ubuntu?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 177
    Comment on it

    Hello friends, I am writing this blog which will let you know how to create a file using cat command.

    Using cat to create a file

    cat is useful for creating a file. Enter the command cat, followed by the > (the right chevron) character and the filename (for example, amuk):

     

    $ cat > amuk
    This is my new file in Ubuntu 14.04 LTS.
    This file will create my new file.
    [Ctrl-d]
    $ _                             Prompt returns

     

    Press Enter to terminate the command. cat will wait for user to enter input. Now enter your text and press Ctrl+d to tell the system that this is the eof.  cat is the command which is used to create, append and concatenate files.

     

    I think this blog will be helpful to understand the basic concept of creating files using cat command.

     

    Thanks for reading the blog.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: