If you're working from the command line (shell),
mkdir
touch
(or any editor)I should be in the home directory ~
right after I log in, so
$mkdir doc
$ touch doc/file.txt# 0 byte file created
$ You can start the vidoc/file.txt# editor and write whatever you want.
You may want to move the current directory before you operate it
$mkdir doc
$ cd doc
$ file.txt
vi
(or any other editor) Find out how to use it yourself (you can ask a different question)
© 2024 OneMinuteCode. All rights reserved.