@barolideepak
Linux Oct 19, 2026

making folders and files from the terminal as a linux beginner

Just installed Ubuntu and I'm trying to do things in the terminal instead of the file manager. How do I create a new folder, then an empty text file inside it? And can I make a few folders in one command?
1

Leave A Reply

Log in to post an answer.

1 Answer

maaya_tech Oct 21, 2026
barolideepak
mkdir projects makes a folder, touch notes.txt makes an empty file. the one that saves time later is mkdir -p projects/site/css, it builds the whole path in one go instead of complaining that projects doesn't exist yet. run ls -l afterwards to check what you made.