new Linux users often quickly discover how to open existing files different formats, but have difficulty with the creation of its own.A method of creating a new file depends on the type of data to be stored therein.
- - installed operating system kernel-based Linux.
in programs for Linux, which has a graphical user interface, the process of creating a new file is the same as in Windows.For example, start a text editor OpenOffice.org or Abiword, select the menu item "Save As" and select the file name.Thus it is necessary to consider two aspects.Firstly, the document can read users and Windows, it should be stored in a compatible format (for example, DOC).Secondly, as a place for conservation should choose their own user folder, the path to which is as follows: / home / username, where username - your local user name (login).Within this folder, you can optionally create subdirectories.
To create a new file for opening a console text editor, you can make a copy of
an existing file of the same size, open its program to remove all the contents and replace with your own.But this method is not very convenient.It is much better to use the built-in program by creating a new document.For example, in the Midnight Commander, you can start an editor with the argument as the name of a nonexistent file: mcedit filename, where filename - the name of the file (if necessary - with the required extension) .In the process of editing, you should save the file by pressing F2, and then - Enter.After the first such procedure it will appear in the folder disk from which you called the editor (if you have permission to write to this folder).
If a console text editor does not support substitution as an argument the name of a nonexistent file, create a new document with the following command: cat & gt;filenameVvedite a few characters, and then press Enter, and then - Ctrl + C.Open the resulting file editor, remove it from the characters that you entered, and then enter the new text.
After creating the file, do not be surprised that it will not immediately run the script.If it is just for this, first make it executable: chmod 755 filenamePosle run it this way: ./ filenameV Manager files Midnight Commander files are highlighted in green and stars to the left of the names.To run any of them, move the pointer to it and press Enter.
not create files in the folder, the purpose of which is unknown to you.The same applies to the commands included in the script.