what is the commnand to create fike

How can i create file in text mode
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

> FileName

would create a blank text file.
In linux there is not a separate text mode, binary mode and text mode are
the same, just a carriage return terminates a line of text (this is different
from windows where carriage-return+line-feed  is required in a special
'text' mode)

You can create a new blank file at the shell by using the touch command
at a shell prompt

touch (filename goes here)

i.e.  touch blah.txt

creates blah.txt  if it did not exist before.
(If blah.txt already exists, then it updates its timestamp without
changing the contents of the file

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Be careful with

unless your shell supports and has noclobber enabled,  >Filename
would wipeout the existing contents of the file if you accidentally used
it on a filename that already existed.
touch filename.ext will create a new blank file if filename.txt does not exist already, if it exists already, it will update the system access records as can be seen when doing an ls -l on the directory in which the file resides.

I'm guessing that you actually want to know how to make a new text file with contents inside?

Most people use vi for this.

Simply issue vi filename.txt in the folder where you want to create the new text file.

In a nutshell:\

vi filename.txt

(now press i to put vi into "insert mode")

type the contents of the text file.

When done, hit the escape key and type :wq
This will write the text into the file and put you back on the command prompt, repeat the process to edit the file, if you made a mistake, hit escape and type :q! to quit without saving changes.
An easier text editor that you might prefer is pico.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.