change terminal title
I want to make a shell alias that starts a certain program and also changes the title of the terminal to the name of the program. How can I do that?
I want to make a shell alias that starts a certain program and also changes the title of the terminal to the name of the program. How can I do that?
How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname?
I start a new process from GNOME Terminal and then this process fork a child.
But when I killed the parent process the orphaned process’s parent id became something other than 1 which represent init --user pid.
When I do this in virtual terminals, the parent pid is 1 which represent init process.
How can I execute new process from GNOME Terminal so that when it is died, the child process’s parent pid became 1 and not pid of init --user process?
Thanks a lot.
I am confused about how Ctrl-key combinations work in terminal. In bash man page, there are various combinations such as:
In ZSH prompt expansion, the command %E is supposed to “Clear to end of line.”
I have a color scheme that I like for when I’m in a terminal, but I ssh into the machine I work on from multiple sources (locally, PuTTY, my netbook, etc.) and I want to maintain the same color scheme throughout. Is this possible?
On a Debian Jessie system with systemd, how can I configure the terminals so that a message like Press enter to activate this console is displayed and the login prompt does not appear before hitting enter?
I’m wondering how some terminal magic works internally.
Is there a way to clear up what is displayed on the shell console (in ubuntu linux) in just a single key or two? When I get flood of lines from grep and that exceeds the height of the window, I want to quickly scroll back to the position where I typed the command after the prompt. I can do so if I had opened a fresh terminal before I type the command, and just go to the initial position. But if keep using the same terminal window, I have to manually find the position. Ctrl+l is not an answer because it just scrolls, and the contents of the terminal remains. I cannot use less because the colored output of grep does not show up in color.
There are common pairings of escape sequences to ASCII control characters, such as Ctrl-C and Ctrl-Z to ETX and SUB, respectively.