What setting controls moving the cursor on the command line?Shell: how to go to the beginning of line when you are inside a screen?Moving through history of commands on command line?bash command line editing (Emacs shortcuts)What is the meaning of (^| )ABC( |$) as an extended REGEX ?how to move by a word in command line in tcsh?What are the keyboard shortcuts for the command-line?How to copy text from command line to clipboard without using the mouse?Do all different Linux distributions have the same command lines?Command-line diff toolWhat is the theoretical upper limit of commands a user can execute in one line?
SQL counting distinct over partition
How to communicate to my GM that not being allowed to use stealth isn't fun for me?
Why are trash cans referred to as "zafacón" in Puerto Rico?
Is a lack of character descriptions a problem?
Is it a problem if <h4>, <h5> and <h6> are smaller than regular text?
1980s live-action movie where individually-coloured nations on clouds fight
When would it be advantageous not apply Training Ground's cost reduction?
You have (3^2 + 2^3 + 2^2) Guesses Left. Figure out the Last one
Fixing obscure 8080 emulator bug?
Active low-pass filters --- good to what frequencies?
What is the maximum number of net attacks that one can make in a round?
Is using haveibeenpwned to validate password strength rational?
What makes Ada the language of choice for the ISS's safety-critical systems?
Bent Peugeot Carbolite 103 Frame
Why doesn't Adrian Toomes give up Spider-Man's identity?
Thread Pool C++ Implementation
Implement Own Vector Class in C++
How to safely destroy (a large quantity of) valid checks?
Can Rydberg constant be in joules?
I have a problem assistant manager, but I can't fire him
Arriving at the same result with the opposite hypotheses
How do governments keep track of their issued currency?
English word for "product of tinkering"
Soft question: Examples where lack of mathematical rigour cause security breaches?
What setting controls moving the cursor on the command line?
Shell: how to go to the beginning of line when you are inside a screen?Moving through history of commands on command line?bash command line editing (Emacs shortcuts)What is the meaning of (^| )ABC( |$) as an extended REGEX ?how to move by a word in command line in tcsh?What are the keyboard shortcuts for the command-line?How to copy text from command line to clipboard without using the mouse?Do all different Linux distributions have the same command lines?Command-line diff toolWhat is the theoretical upper limit of commands a user can execute in one line?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?
linux command-line
add a comment |
On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?
linux command-line
add a comment |
On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?
linux command-line
On some Unix systems, I can type Ctrl-A or Ctrl-E to move to the beginning or end of the line. On some Unix systems I can not and just prints ^A or ^E, etc. What controls whether this keystoke works as I expect (move around the command line), or prints the ^A, ^E, etc. character?
linux command-line
linux command-line
edited 8 hours ago
Rui F Ribeiro
42.8k1688148
42.8k1688148
asked 8 hours ago
ClassifiedClassified
20858
20858
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).
Also it depends on shell itself.
E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs
(normally it's a default one) or set -o vi
You can find more information in your specific shell documentation.
add a comment |
tl;dr
set -o emacs
will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.
The shell may not have any line editing capabilities, or may be in the vi
editing mode (the only one specified by the standard).
When not in emacs
editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl
stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A
, ^X
, etc, "caret" notation.
Many shells (like ksh
or zsh
) will determine the default editing mode (vi or emacs) based on the values of VISUAL
and EDITOR
environment variables (in this order of precedence, and also handling variants like vim
, elvis
, xemacs
, etc).
This was broken (very annoyingly!) in mksh
, but it's also still the case in other pdksh
-derived shells.
Other shells like bash
or tcsh
default to the emacs
editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi
in ~/.inputrc
for the readline library used by bash
).
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523146%2fwhat-setting-controls-moving-the-cursor-on-the-command-line%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).
Also it depends on shell itself.
E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs
(normally it's a default one) or set -o vi
You can find more information in your specific shell documentation.
add a comment |
It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).
Also it depends on shell itself.
E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs
(normally it's a default one) or set -o vi
You can find more information in your specific shell documentation.
add a comment |
It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).
Also it depends on shell itself.
E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs
(normally it's a default one) or set -o vi
You can find more information in your specific shell documentation.
It all depends on specific shell implementation (you might have different default shell on different systems or even for different users within a single system, e.g. bash, ksh, tcsh, etc).
Also it depends on shell itself.
E.g. bash supports two modes: emacs and vi. Each mode has its own shortcuts (emacs or vi like). To change it you have to execute set -o emacs
(normally it's a default one) or set -o vi
You can find more information in your specific shell documentation.
edited 7 hours ago
answered 7 hours ago
rushrush
20k46697
20k46697
add a comment |
add a comment |
tl;dr
set -o emacs
will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.
The shell may not have any line editing capabilities, or may be in the vi
editing mode (the only one specified by the standard).
When not in emacs
editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl
stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A
, ^X
, etc, "caret" notation.
Many shells (like ksh
or zsh
) will determine the default editing mode (vi or emacs) based on the values of VISUAL
and EDITOR
environment variables (in this order of precedence, and also handling variants like vim
, elvis
, xemacs
, etc).
This was broken (very annoyingly!) in mksh
, but it's also still the case in other pdksh
-derived shells.
Other shells like bash
or tcsh
default to the emacs
editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi
in ~/.inputrc
for the readline library used by bash
).
add a comment |
tl;dr
set -o emacs
will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.
The shell may not have any line editing capabilities, or may be in the vi
editing mode (the only one specified by the standard).
When not in emacs
editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl
stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A
, ^X
, etc, "caret" notation.
Many shells (like ksh
or zsh
) will determine the default editing mode (vi or emacs) based on the values of VISUAL
and EDITOR
environment variables (in this order of precedence, and also handling variants like vim
, elvis
, xemacs
, etc).
This was broken (very annoyingly!) in mksh
, but it's also still the case in other pdksh
-derived shells.
Other shells like bash
or tcsh
default to the emacs
editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi
in ~/.inputrc
for the readline library used by bash
).
add a comment |
tl;dr
set -o emacs
will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.
The shell may not have any line editing capabilities, or may be in the vi
editing mode (the only one specified by the standard).
When not in emacs
editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl
stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A
, ^X
, etc, "caret" notation.
Many shells (like ksh
or zsh
) will determine the default editing mode (vi or emacs) based on the values of VISUAL
and EDITOR
environment variables (in this order of precedence, and also handling variants like vim
, elvis
, xemacs
, etc).
This was broken (very annoyingly!) in mksh
, but it's also still the case in other pdksh
-derived shells.
Other shells like bash
or tcsh
default to the emacs
editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi
in ~/.inputrc
for the readline library used by bash
).
tl;dr
set -o emacs
will enable the Ctrl-A, Ctrl-E, Ctrl-B, etc emacs key bindings in most shells you're likely to use.
The shell may not have any line editing capabilities, or may be in the vi
editing mode (the only one specified by the standard).
When not in emacs
editing mode, the Ctrl-A and Ctrl-E have no special significance. If the echoctl
stty/termios setting is on, all control keys which are not handled specially will be displayed in the ^A
, ^X
, etc, "caret" notation.
Many shells (like ksh
or zsh
) will determine the default editing mode (vi or emacs) based on the values of VISUAL
and EDITOR
environment variables (in this order of precedence, and also handling variants like vim
, elvis
, xemacs
, etc).
This was broken (very annoyingly!) in mksh
, but it's also still the case in other pdksh
-derived shells.
Other shells like bash
or tcsh
default to the emacs
editing mode, but that may also be overridden from the configuration file of the editing library (eg. set editing-mode vi
in ~/.inputrc
for the readline library used by bash
).
edited 5 hours ago
answered 6 hours ago
mosvymosvy
12.8k11543
12.8k11543
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523146%2fwhat-setting-controls-moving-the-cursor-on-the-command-line%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown