How to Create a File in a Directory in Linux?
Contents

How do I create a file folder in Ubuntu?

Open the Ubuntu command line, the Terminal, either through the system Dash or the Ctrl+Alt+T shortcut.

Once you do so, a right-click menu option will be created by the name of New Document through which you can open this empty text file named Untitled Document.

How do you create a directory in Linux?

Type “mkdir [directory]” at the command prompt to make the directory. Use the name of your new directory in place of the [directory] command line operator. For example, to create a directory called “business,” type “mkdir business.” Be aware that this will create the directory within the current working directory.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest