open a terminal in a specified folder
From a script I want to launch a terminal that opens in a specified folder.
Thanks to #linux, I got two solutions:
A1) I use konsole, which has an option for this:
konsole --workdir /tmp
It will open a terminal in the /tmp directory.
A2) Change directory to the specified folder and launch the terminal:
cd /tmp; konsole
If you want to do it from a script, the idea remains the same.
B) If you want to execute a command automatically in the opening terminal, use this:
konsole -e mc
C) Set the title of Konsole to a specified text:
konsole -p tabtitle='NVIM server'
Find more info here.