3
votes
"set editing-mode vi" v/s "set -o vi" what is the difference?
.inputrc (and /etc/inputrc) is the configuration file of the GNU readline library. readline is developed alongside bash and both are currently maintained by Chet Ramey, but it's also used by many ...
3
votes
"set editing-mode vi" v/s "set -o vi" what is the difference?
The .inputrc settings will take effect in all applications that use libreadline, including but not limited to bash.
set -o vi in .bashrc will affect bash only.
3
votes
In terminal, how to delete a word when cursor is within the word?
If you are using a shell which uses readline(3) as bash, you have either to combine two shortcuts:Alt-dAlt-Backspace
Or you define a key which is not already in use, see the output of the command ...
3
votes
Accepted
How to run the command "sudo sh /path/to/script.sh" by double clicking?
EDIT
Since you edited your comment to provide more information, I can now give you a complete answer. I verified with my friend who runs KDE plasma, and he says that the default behavior is that ...
2
votes
How to change the line spacing in Terminator?
Nowadays, Terminator luckily supports this. In Preferences/Global, you can set the "cell height". It does exactly what @egmont described in his answer. I've actually been browsing the source ...
2
votes
Accepted
Unexpected terminal behavior after SSH session ends unexpectedly
Use ESC [?1000l to disable mouse events:
printf '\e[?1000l'
The reason you need to do this is because the application enabled mouse events but was unable to disable them in the normal manner ("...
2
votes
Accepted
Different name on terminal than on file manager
What you're observing is a common behavior in many Linux distributions, including Red Hat. The discrepancy in file names between the graphical file manager and the terminal is due to the way desktop ...
2
votes
Different name on terminal than on file manager
The name you see in the terminal will always be the real one. Presumably, your file manager is hiding the extension. Then, since this is a .desktop file, it probably contains its own display name ...
2
votes
Accepted
groff -mandoc creating "ESC[1m" versus overstriking with backspace for bold text
Debian Bookworm configures groff 1.22 for the old backspace-overwrite behavior you see there, and documents it in their patched grotty manual page along with how to revert to the newer SGR (\e[1m-like)...
1
vote
Bash customization only take place after interacting with the terminal for the first time
Starship applies its configuration each time you execute any command (see starship init bash --full-code-print for one example of it setting up $PROMPT_COMMAND) but as far as I can see not in the ....
1
vote
What happens if you put /dev/urandom into a shell script and run it?
Literally anything at all can happen, so you probably shouldn't do it. However, you should probably expect mostly syntax errors though.
Pipe /dev/urandom to sh if you want to see this. You can try ...
1
vote
In terminal, how to delete a word when cursor is within the word?
zsh's line editor supports all of vim's [cd][ai][wW] (even an extra [cd][ia]a as a bonus) out of the box when in vi mode (entered with bindkey -v like in tcsh or set -o vi like in ksh).
See info zsh '...
1
vote
is it possible to auto wrap the log output when check the linux service log
If you don't mind losing the colors, you can just pipe to cat which should result in your terminal wrapping the output. Compare:
systemctl status thermald.service
systemctl status thermald.service | ...
1
vote
Weird spaces left on KDE terminals
As @jsotola and @egmont said, it had to do with fonts. However, I found that I had to change it inside konsole: I had to create a profile with a monofont and set it as default.
Kate and dolphin are ...
1
vote
groff -mandoc creating "ESC[1m" versus overstriking with backspace for bold text
You can abuse script and less to convert the backspace sequences:
script --return --quiet -c "printf '.Dd today\n.Sh NAME\n' | groff -mandoc -Tutf8 | less" /dev/null | od -c
…
0000200 1 ...
1
vote
How to interpret \e[H\e[2J ANSI escapes sequence from Linux terminal?
\e[H moves the cursor home (top left corner) and \e[2J clears the screen (the regularly viewed part, but not the scrollback).
In many terminal emulators \e[2J simply clears the regularly viewed part ...
1
vote
Any command in my terminal that exits with non-zero code closes my terminal window
In my case, the set -e was not in any of my bash startups and appending set +e to my .bashrc was not fixing it.
It turns out the set -e was in a bash script that I frequently run for my project, and I ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
terminal × 4270bash × 784
linux × 643
shell × 443
command-line × 313
macos × 245
ubuntu × 226
shell-script × 203
colors × 201
ssh × 200
tty × 169
tmux × 162
zsh × 153
debian × 147
gnome-terminal × 138
terminal-emulator × 130
keyboard-shortcuts × 125
gnu-screen × 114
console × 99
escape-characters × 99
xterm × 94
vim × 91
centos × 79
process × 79
scripting × 74