this post was submitted on 11 Jul 2023
125 points (100.0% liked)
Linux
48052 readers
726 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I didn't see this mentioned, but by far the thing I depend on tmux for the most is being able to quickly copy and paste text from the terminal. e.g. grabbing a file name from the output of
git diff
. How does everyone else do this?Another cool one is being able to attach to a session on my phone to check on something, and have it automatically resize without disconnecting my desktop.
I copy by pressing ctrl+shift+C. Some terminal emulators copy on select. A terminal multiplexer isn't needed to copy.
I suspect what they meant was copy and paste from the console and not a terminal.
I don't know how else somebody could do copy and paste at the console. And I don't necessarily know that tmux can do this (I still haven't graduated from 'screen'), but this interpretation makes the most sense.
If it can do this, presumably with just the keyboard, that's a pretty decent feature.
Yeah, doing it with the keyboard is key. I know some terminals have a way to do it, but it's so ingrained in my muscle memory that I struggle without it, and having something that works everywhere (including try) is nice.
I'm not familiar with the terminology. What's the distinction between a terminal and a console?
Tmux does let you copy from a shell to your system clipboard using the keyboard, which is nice. But many terminal emulators like mobaxterm on windows let you copy as well.
@karlthemailman @piranhaphish I think of the console as the terminal where the system writes. For example, when it boots.
The console is the virtual terminal (VT) seen initially at boot before the desktop login starts up, or where you land if there is no desktop, and where the kernel spits its raw output. It could even be configured to be a physical serial port.
I'm using the term in a similar manner to describe the virtual terminals spawned at boot (typically 7 of them) and occupied either by a login prompt (getty) or the desktop session, and switchable with Alt-Left/Right or using the
chvt
command. These are analogous to the real terminals of old such as VT100 or even typewriters.This is in contrast to what we normally call a terminal like xterm or Konsole which runs in the GUI where it is resizable, zoomable, etc. The console, and virtual terminals, are pretty limited in the interactivity they have. For instance, there's no mouse interaction or copy-paste functionality, at least not without some exotic setup.