Ubuntu: How can I create a new blank file in an occupied directory?



Question:

I am not experiencing the problem in How to create a new blank file in Nautilus 3.6 and above?, perhaps because I have a newer version of Nautilus.

$ nautilus --version  GNOME nautilus 3.14.2  

I can create a blank file very easily in most directories: find some blank space, right click, and select New Document » Empty Document. However, if a folder has enough content to fill the screen, there is no blank space. If I switch to icon mode, there is blank space between the icons, but in list mode there is no blank space anywhere. I don’t recall having this difficulty in the past. Right clicking in list mode used to work. Is there any way I can restore older behaviour?


Solution:1

The easiest method is this keyboard combo: Alt+F, D, E.


This basically mimics Florian Diesch’s answer: Alt+F opens “File”, D opens “New Documents” and E is for “Empty Document”.


Solution:2

If there is no blank space you have to use New Document » Empty Document from the File menu.


Solution:3

The canonical command to create an empty file is indeed touch.

From the command line, enter touch <filename(including full path)>.

(Although, beware arguments containing spaces.)


Solution:4

You could just use the cd command to move to your folder step by step from the terminal and then use any editor to create a file, such as

cd Desktop/../..  nano a  

This opens "a" file. Just save the file by clicking Ctrl+o and exit with Ctrl+x. Two dots ".." is for parent directory.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »