LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Simple Terminal question (https://www.linuxquestions.org/questions/linux-newbie-8/simple-terminal-question-368787/)

itz2000 10-01-2005 01:30 PM

Simple Terminal question
 
how do I make a completly new file, I.E I would like to make a new text file named gjwp.txt in /home/user


I'd like to know how to do it from terminal... after I create I would be able to edit it with VI but I don't know how to create...


THanks alot guys!

youngstorm 10-01-2005 01:44 PM

Hi,
to create a file use the 'touch' command.
Ex.: 'touch /home/user/gjwp.txt'

if you want to skip that step do 'vi gjwp.txt' and go from there.
vi will automatically create a file if you type 'vi <filename>' and
enter text to the file.


enjoy
Michael

itz2000 10-01-2005 02:26 PM

10x bro


All times are GMT -5. The time now is 11:22 PM.