LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2017, 06:27 PM   #1
salilsurendran
LQ Newbie
 
Registered: May 2015
Posts: 16

Rep: Reputation: Disabled
Consistent shortcut keys to navigate command line in Linux


Hello,
I use one set of keys to navigate the command line of my local desktop but when I ssh into another machine those same set of shortcuts don't work. For eg. Alt + f/b takes me forward/back on the command line of my local shell but not a remote machine. Even worse even on my local machine when I access terminal via IntelliJ on my local desktop the same shortcut keys don't work. Is there any way to set the same set of shortcut keys to do the same actions for different terminals.
 
Old 09-05-2017, 12:36 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by salilsurendran View Post
Hello,
I use one set of keys to navigate the command line of my local desktop but when I ssh into another machine those same set of shortcuts don't work. For eg. Alt + f/b takes me forward/back on the command line of my local shell but not a remote machine. Even worse even on my local machine when I access terminal via IntelliJ on my local desktop the same shortcut keys don't work. Is there any way to set the same set of shortcut keys to do the same actions for different terminals.
There are some good keyboard combo's in the following link: https://www.linux.com/learn/intro-to...tion-shortcuts

These should work with bash and Linux in general, the CTRL ALT F1, F2, etc should work with any distro (and work on mine, CentOS 7, at the moment).
 
Old 09-05-2017, 12:50 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
There are shortcuts for your desktop environment, there are shortcuts for your terminal emulator, and lastly there are shortcuts for your shell. If you stick to only the shortcuts available as part of your shell then you have maximum portability. However, there are so many that this is not limiting in any way.

Your shell is probably bash, but ksh and zsh also have a lot of features.

See lists like the one in #2 above and this:

https://ss64.com/bash/syntax-keyboard.html

Also try to delve into the manual page for bash occasionally. It is the authoritative source, even if it is not the most pleasant or clear to read:

Code:
man bash
Look in particular at the sections on "Commands for Manipulating the History" and many of the sections right before or after that.

One of the most important things to learn in bash, ksh, or zsh is tab completion. Start typing and press tab. If you have typed something unique then it will fill in the rest of the letters automatically. If not, press tab again and it will offer options if there are any.
 
Old 09-05-2017, 12:51 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
this is functionality of the shell.
i suspect the remote shell isn't set up properly.
i have this problem on one machine i ssh into occasionally.
 
  


Reply

Tags
command line, terminal



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard shortcut for last entered param in command line ? hongkildong Linux - Newbie 6 11-22-2012 04:16 AM
Access to command line and navigate on the web jsuarez12 Linux - Newbie 4 06-19-2012 03:45 PM
how to switch to command line from GUI using keyboard shortcut tj_linux Linux - Newbie 16 05-16-2010 07:29 AM
[SOLVED] Shut down Puppy Linux 4.20 from command line or keyboard shortcut without freezing ubume2 Linux - Newbie 2 09-18-2009 12:27 PM
Command Line for creating shortcut icons indraveni Linux - General 20 05-08-2006 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration