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 ...
Stéphane Chazelas's user avatar
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.
telcoM's user avatar
  • 90.5k
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 ...
Erich's user avatar
  • 385
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 ...
renzev's user avatar
  • 71
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 ...
usretc's user avatar
  • 584
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 ("...
Chris Davies's user avatar
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 ...
Kristtof V88's user avatar
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 ...
terdon's user avatar
  • 238k
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)...
egmont's user avatar
  • 5,790
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 ....
Chris Davies's user avatar
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 ...
Justine Krejcha's user avatar
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 '...
Stéphane Chazelas's user avatar
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 | ...
terdon's user avatar
  • 238k
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 ...
Miguel Fernández's user avatar
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 ...
Chris Davies's user avatar
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 ...
egmont's user avatar
  • 5,790
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 ...
jewbix.cube's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible