how to work on same terminal in which file is opened in linux code example
Example 1: how to open a file using terminal
open ~/Desktop/filename.txt
Example 2: open text file debian
vim RESULTS.txt
open ~/Desktop/filename.txt
vim RESULTS.txt