A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
1
vote
0answers
17 views
How to change a font/background color in transparent windows?
When you select something, the color of the selection usually changes to the font color, and the font color is being set to backgroud color. So, if you have a black background in a terminal, and the ...
3
votes
2answers
59 views
How to change the cursor theme in CLI?
I want to change the cursor to be block-shaped.
All applications (nano,vi,vim,…) should should have a square-style cursor like the picture above.
1
vote
1answer
33 views
Repeating a text-output terminal command, in a scrollable ncurses-like interface?
man ps says:
If you want a repetitive update of the selection and the displayed information, use top(1) instead.
... however, in some cases, I don't like the output of top - I would instead like ...
1
vote
2answers
40 views
Copy & paste in a terminal without SHIFT
In all terminal emulators that I know of, Ctrl is used for sending control codes such as Ctrl+C and Ctrl+Z. On most systems this conflicts with common keyboard shortcuts.
Thus on all those systems ...
1
vote
1answer
38 views
Cat and Less give different output
I executed the following command
# top > /home/user/top_output.txt
Nothing Happened for a while and then i pressed Ctrl+C. When i checked the file that was created, it had the contents in it. So ...
1
vote
0answers
15 views
How do I temporarily make Weechat's message area “full width” like irssi?
Coming from irssi, I'm used to being able to copy and paste messages from the message view of my terminal (PuTTY) running irssi with relative ease without having hard wraps on the text. This works ...
1
vote
1answer
77 views
How can I pipe commands to any terminal?
I often use more than one terminal (or terminal emulator) at a time; and while in X I can copy-paste commands, besides not being very practical, it obviously does not work on the real TTY. The first ...
1
vote
2answers
49 views
Why the duplications in the command line output
Entering the following command prints duplicates as shown below. Not all lines print twice but some do. What gives?
XXXX:~ XXXX$ man -k pid
pid(ntcl) - Retrieve process identifiers
...
7
votes
3answers
1k views
Why 'echo $0' gives different result for two different terminals?
I opened a terminal on Ubuntu using Ctrl+Alt+T and a different terminal by going to a directory and then right clicking and choosing "Open in Terminal".
I did an echo $0 in both cases.
In the ...
0
votes
1answer
59 views
Bash script for copying text currently entered to prompt
I'm trying to minimize using of mouse. Copying text in terminal is the mostly inconvenient activity for mouse avoiding. Now, tmux helping me to obtain this purpose. However, I regularly needs to copy ...
3
votes
1answer
49 views
What's the problem with terminals vs colors?
I'm a long time linux/unix user, as almost anyone working with this kind of OSs I use the terminal or a terminal emulator a lot, but I never understood why it's so hard for any GNU/Linux distribution ...
2
votes
4answers
69 views
Incrementing a variable each time the system boots up
The idea is to initialize a variable and set it to 0. Then create a script that executes on boot and increments that variable by 1 each time the system boots up again.
Sounds simple enough right?
5
votes
3answers
143 views
How to merge two files with different number of rows in shell?
I have file1 like this:
CHR SNP TEST A1 A2 GENO O(HET) E(HET) P
0 AFFX-SNP-000541 ALL 0 0 0/0/0 ...
0
votes
1answer
39 views
set tab color in a tabbed terminal emulator
I would like to set in my terminal emulator (i.e. gnome-terminal) the color of the tabs like in the osx's terminal emulator. Is there this feature in any of the linux terminal emulator plethora?
...
1
vote
1answer
26 views
How to have longer key bindings for stty
If I want to have more than 2 key sequence for binding to the suspend signal, how would I do that? To clarify, Ctrlz is for suspending. But if I want Ctrlz and a k with the previous 2 keys depressed ...