I am trying to clarify my understanding of terminal here.  Terminal is actually a device (keyboard+monitor). When in CLI mode, the input from your keyboard goes directly to shell and also displayed on monitor.  Meanwhile, when using GUI mode, you have to open terminal emulator program to interact with shell. The input from your keyboard goes to terminal emulator program and also displayed on terminal emulator window on monitor. The input does not directly goes to shell. The terminal emulator program will relay the input from your keyboard to shell. The terminal emulator program communicates with the shell using pseudo-terminal.  There is no terminal emulator program involved when you go straight to CLI from boot.  Please comment and correct me if anything wrong with my understanding.  Update: I read back . I think what I should ask is the difference between text terminal (boot straight to text mode) and GUI terminal because I thought terminal=text terminal, terminal emulator=GUI terminal e.g. Gnome Terminal, which are wrong. From the answers in regards to before this update, a user is actually using terminal emulator program (user space) too like in GUI mode. May I know is it TTY program because I found TTY process when running command 'ps aux'. I never knew there is terminal emulator program involved too (not referring to terminal emulator in kernel space) in text mode.  Update2: I read . According to it, text mode is console, meanwhile terminal software in GUI mode is terminal emulator. Well, it makes sense and it is same with my understanding before. However, according , terminal emulator is in the kernel space instead of user space. Interestingly, the diagram refers to text mode.
4292
I think these terms almost refer to the same thing, when used loosely:   terminal shell tty console   What exactly does each of these terms refer to?
6943
I have a program that takes input from   stdin and also takes some parameters   from command line. It looks like this:  cat input.txt &gt; myprogram -path "/home/user/work"       I try to debug the code with gdb   inside emacs, by M-x gdb, I try to   load the program with the command:  gdb cat input.txt &gt; myprogram -path "/home/user/work"       However, gdb does not like it.   Question cribbed from . Unfortunately I don't understand the solution and am not sure what to do beyond compiling with the -g option and running the command M-x gdb.
50634
I use the command line a lot and I would like a widget (possibly integrating itself into the desktop) to provide access to a terminal.  Like this:
66418
The problem I had was to get the .bashrc and .bash_profile and/or .profile scripts to execute by default when using the native Gnome terminal application.  I found a number of references which told me in order to get these to "run" you needed to have an interactive session with login but none of the threads I found explained how to do this with the native terminal application.  So my question is how do you get the .bashrc and .bash_profile scripts to run on Centos every time you use the Terminal Application on the Gnome desktop?
81787
I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas.  This is what I understand so far:   The emulated terminal makes different system calls to /dev/ptmx, the master part of the pseudo-terminal. The master part of the pseudo terminal allocates a file in /dev/pts/[0-N], corresponding to the obsolete serial port, and "attaches" a slave pseudo terminal to it. The slave pseudo terminal keeps information such as session Id, foreground job, screen size.   Here are my questions:   Has ptmx any purpose besides allocating the slave part? Does it provide some kind of "intelligence", or the emulated terminal (xterm for instance) has all the intelligence of behaving like a terminal? Why does xterm has to interact with the master part, as it only forwards the stdout and stdin of the slave part? Why can't it directly write and read from the pts file? Is a session ID always attached to one pts file and vice versa? Could I type a ps command and found 2 sessionId for the same /dev/pts/X? What other information does the pts store? Does Xterm update all fields by himself, or does the ptm add some "intelligence" on it?     1. I base my understanding on the , and the  posts, as on several other
71291
I have this setup where I have computer with ssh and a display where I have a user logged in to terminal. What I want to do is send commands like I was using that local session with keyboard. I tried to echo to /dev/tty1 but it just shows what I typed instead executing it. Which makes sense. The system only has bash so no GUI or anything like that.
2249
Recently I installed ubuntu in my laptop for using c programming. but when I open the terminal and typed vi test.c, It open it but it will not work properly. when i pressed backspace it will not work and when i press arrow key it will print some alphabets. What will i do to work properly. please anybody help for this related problem. thank you
37507
I want to write a program that can "draw" in the terminal the same way as htop or emacs. By that I mean "get rid of the prompt and make the output dependent on the current size of the terminal".   To make this a bit more clear:   I want to use the terminal this way:     in stead of this way:
177
What is a terminal? How do I open a terminal window? How do I use the terminal?
51198
I  that the default shell that I use when I start Terminal (with Ctrl+Alt+T) is /bin/bash.   And running the built-in command  on  as:   type -p bash   returns the result as:  /bin/bash   Suggesting the same executable is run when I do Ctrl+Alt+T or say bash.  This shell is the same as an invocation of the command  with some of its options passed to it right? If yes, what are these options?   As an example, perhaps the -i option gets passed so as to make the bash shell interactive?   PS: Maybe  is related too, but I cannot seem to piece together all the pieces here.
113632
I wanted a daemon to start on boot so I added a line to /etc/rc.local that ended in "&amp;"  I did that so it would run in the background.  The daemon is loaded and working fine but when the daemon is running you can press keys that do other important things.  When I am finally logged in I wanted to resume process or send it a terminal (tty2) so I can do a couple of things.  I'm new to linux and not sure how to do this.  I do a ps -aux |grep uox to work out which PID it is. But not sure how to resume.
64413
When I press Ctrl+Alt+T the Terminal opens after around 30 seconds. That's pretty annoying. If I open it with Alt+F2 and enter gnome-terminal the window appears instantly as usual.  I'm using Ubuntu 16.04 with gnome3.  Thank you for your help in advance!
36324
When we want to open an application or file from the terminal, we type, say,  okular file.dvi   This opens the application, but also shows the status of the application. We cannot close the terminal, because it kills the process. Unfortunately, if you're trying to, for example, create a LaTeX file, you will need one tab for the text editor, one for the dvi file, and so on. And if you're trying to open all windows from the terminal, you can forget it. I'm trying use the terminal as much as possible, and while I have Yakuake, it is still a bother having so many tabs and seeing which of those have an application I've killed and so on.  So, is there a way to open an application/file from the terminal so that the status doesn't show and immediately gives the prompt so that we can use it to open more applications?
5524
Is there any application (or sequence of commands) for this function: seeing the result of the actions, while using a GUI interface, being automatically translated into a Terminal (or similar CLI environment) on the same machine.  I saw this in action long years ago in VBA for Applications (for example the Macros in Excel). I wonder if there is same function in Linux.
1459
I would like to open a terminal, split it to lets say 9 parts (3x3) and execute some bash script. But for each terminal part different script.   Can this be done using perl, python or even bash?  How can I switch between those little terminals without using keyboard shortcuts?  Oh, by the way, I'm using terminator. And if there is some other terminal emulator that enables such a functionality, which is it?
70861
How can I minimize the Terminal window using a command? For example: I use the clear command to clear the terminal output, which command can I have to use to minimize the terminal window?
84588
I have a terminal open and want to launch another one. I hit the Windows key, type 'terminal' and hit Enter...and I'm warped to my first terminal.  I can hit Control+Enter to launch a new terminal. This is unnatural to me. Can I change the key bindings so that Enter will launch a new instance and Control+Enter will warp to the existing one?  Edit: I'm interested in all applications, not just a terminal.