answersLogoWhite

0


Best Answer

You can use cat to create files by specifying an input for it and redirecting its output to a new file.

cat file1 > file2

That would make a copy of file1 and call it file2. To join two or more files, you can simply add more files for cat to read. cat file1 file2 file3 file4 > file5

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

That would depend entirely on what type of file you are trying to create. echo text > file.txt would create a text file with the text "text". Other types of files, such as database dumps, program binaries, and even video can be created with various programs.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a file using terminal in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you open an iso file using Linux?

From a terminal: mkdir mountpoint mount -o loop YourImage.iso mountpoint


What is stat command in Linux?

Displays the detailed status of a particular file or a file system. You can always refer manual pages for linux commands using the terminal using the "man" keyword before the actual command. ex:- man stat


Simplest utility for viewing file content?

The simplest utility for viewing file content in the Linux Terminal, (Terminal as command promt also called DOS in Windows) its called the file command. The simplest utility for viewing file content in the Linux Terminal, (Terminal as command promt also called DOS in Windows) its called the file command.


What command in Linux do you use run an executable file?

if the file is allready runnable you can type in the terminal: ./filename


What command in Linux do you use to run executable file?

if the file is allready runnable you can type in the terminal: ./filename


How do you assing permisson in Linux?

in terminal u use : #chmod [option] file


Which Linux command is used to copy a file?

in terminal it is : #cp file_a file_b


How do you create a file in Linux with write-only permissions?

Create a file and set it's permissions to 222


How can you create a file named -i in Linux?

Type at a terminal prompt: touch filenameType lsThe new file, filename, will appear in the list of directories.Typing touch -i (as in your question) will fail with the error message touch: invalid option


How do you highlight a particular word in a text file via Linux terminal?

On an ordinary text file this cannot be done via any OS or terminal, as the file cannot store such attributes. On other files, this depends on the software used to edit the file.


How do you back up the inittab file in Linux?

using i cloud


What is the terminal app for the palm pre?

The Palm Pre line are based on Linux. To access Linux commands, there is a terminal app. There is also an app called Internalz Pro that allows file and folder browsing. precentral.net has more info.