inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 4, 2011 13:39:33 GMT -8
Is there a command in Fedora Linux in the terminal that would create a file for you? I know there is one that will create a directory(folder)...
mkdir foldername
That makes a folder but how to I make a file like file.txt using the terminal. Is it possible or do I have to open up like gedit and just save it and make it that way?
Thanks
|
|
inherit
fishgomoo
85493
0
Nov 19, 2012 13:59:58 GMT -8
dude
cows go glug
2,539
July 2006
dudelicious
|
Post by dude on Mar 4, 2011 14:17:20 GMT -8
touch file.txt
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 4, 2011 14:38:24 GMT -8
Thanks worked great. I look in man but I couldn't find it in there...so you know what page that is on by chance?
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Mar 4, 2011 16:10:14 GMT -8
vi /directory/to/file/file.txt ftw To edit, hit the "i" key, when done, hit escape, and then type :wq and press enter, and you've got a new file.
|
|
inherit
fishgomoo
85493
0
Nov 19, 2012 13:59:58 GMT -8
dude
cows go glug
2,539
July 2006
dudelicious
|
Post by dude on Mar 5, 2011 5:19:06 GMT -8
Thanks worked great. I look in man but I couldn't find it in there...so you know what page that is on by chance? Not a clue but it's worth noting that touch does more than just create files - it's main function is to change what time the file was last modified at (if the file already exists). It just so happens that it's also quite useful for creating files. As far as I'm aware there isn't any other way of creating files in unix without just using a program to open them e.g. gedit file.txt
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 5, 2011 8:53:38 GMT -8
Thanks worked great. I look in man but I couldn't find it in there...so you know what page that is on by chance? Not a clue but it's worth noting that touch does more than just create files - it's main function is to change what time the file was last modified at (if the file already exists). It just so happens that it's also quite useful for creating files. As far as I'm aware there isn't any other way of creating files in unix without just using a program to open them e.g. gedit file.txt Ok, well that is fine it worked great and that was all I needed. So thanks so much for your help!
|
|