One who has recovered from a serious illness or accident is supposed to bentch gomel during the torah service.  What do you need to know to do this?  Specifically:


When is the right time -- the first torah service that you're able to physically attend, or is there some stricter standard?
What do you do that day in shul?
Is the answer different for a woman or a minor?  (Are they obligated to gomel?  If not obligated, permitted?)



Question: Create and open file with one command?
Answer: Use vim. Just type 

vim newfile.txt


For vim you need to know the hot-keys.

i   - Insert text in the file
esc - return to the command-input-mode
:w  - Write (save)
:q  - Quit (exit)


or (Easier to use Nano):

nano newfile.txt


If you want a GUI type: (Works for ubuntu and other distros)

gedit newfile.txt