Score:0

How to create a new file / an empty file using command or shortcut or without command?

cm flag

How to create a new file / an empty file using command or shortcut or without command?

Like To create new Folder,

shortcut: Ctrl + Shift + N
Right click and create New Folder
guiverc avatar
cn flag
`touch` will create a file, but what do you mean without command?
Sahil Thummar avatar
cm flag
@guiverc Like To create new Folder, we can use shortcut: Ctrl + Shift + N or Right click and create New Folder without any commands.
bac0n avatar
cn flag
you can create an empty file with a redirect output `> empty.txt` dont see an advantage using shortcut for this.
Score:2
cn flag

There is the "Templates" mechanism, which still works but is kind of hidden nowadays.

In your home directory, create a "Templates" folder. In that folder, you can place for example an empty file called "Plain Text.txt".

Once this directory exists and contains at least a file, you will have a right-click menu item "New Document" when you right-click an empty space in the folder. You can select your "Plain Text" menu entry, and that will create a copy of the empty "Plain Text.txt" in your current folder.

You can place different template files there, e.g. another one with an empty Writer file, letter templates, etc.

In standard Ubuntu, no Templates folder is created by default. Then, Files does not provide a right-click menu item. That makes it difficult to discover this feature, which exists for a long time.

Score:2
ar flag
  1. Using touch filename.fileextention

    touch filename.fileextention
     For ex. - touch test.txt
    
  2. Using >filename.fileextention

    >filename.fileextention
    For ex. - >test.txt
    
  3. create any fileextention template in Home/Templates and you can access that template to create file. For ex. create test.txt file in Home/Templates folder. Now wherever you wants to create an .txt extention file you can simply create using right click-> New Document- -> test

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.