LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-06-2011, 08:40 AM   #1
texasj
LQ Newbie
 
Registered: Feb 2011
Posts: 23

Rep: Reputation: 2
Angry keyboard shortcut for changing the shorcut


Hi everybody...!
I am using Red Hat Enterprise Linux Server release 5.4 (Tikanga) I eagerly want to know whether there is any keyboard shortcut for changing the case of command while typing command on the command line.
For example: I want to modify the the file 'DEMO.txt'
but I wrongly typed 'demo.txt'
$ vi demo.txt
So how can I change demo.txt to DEMO.txt using keyboard on same line without clearing the existing command.
I have searched a lot for this but didn't get any solution..:-(

Hope some one will have solution for this..!
 
Old 12-06-2011, 09:19 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Shortcuts will be dependent on terminals. Which terminal you are using ? Are you working on linux directly or connecting through a terminal (like putty/telnet) from windows ?
 
0 members found this post helpful.
Old 12-08-2011, 02:54 AM   #3
texasj
LQ Newbie
 
Registered: Feb 2011
Posts: 23

Original Poster
Rep: Reputation: 2
Thanks Raju for the reply..!
I am using putty as well as working on linux terminal directly.
 
Old 12-08-2011, 03:19 AM   #4
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Code:
set -o vi
1.type command / navigate to required command

2.press escape to change to vi command mode

3.pressing ~ will change case of given
 
0 members found this post helpful.
Old 12-08-2011, 06:44 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by texasj View Post
Hi everybody...!
I am using Red Hat Enterprise Linux Server release 5.4 (Tikanga) I eagerly want to know whether there is any keyboard shortcut for changing the case of command while typing command on the command line.
if you want to change the case or any other thing related to commands then you need to use

Code:
#alias LS='ls -l'
this one is temporary but for permanent changes

Code:
#vi /root/.bashrc
(make an entry)
alias LS='ls -l'
Quote:
Originally Posted by texasj View Post
For example: I want to modify the the file 'DEMO.txt'
but I wrongly typed 'demo.txt'
This doesn't seems command if you are talking about renaming file name then

Code:
#mv demo.txt DEMO.txt
Quote:
Originally Posted by texasj View Post
$ vi demo.txt
So how can I change demo.txt to DEMO.txt using keyboard on same line without clearing the existing command.
If you are talking about changing case inside vi editor then the place for you is

Code:
#man vi

Last edited by deep27ak; 12-08-2011 at 06:58 AM.
 
0 members found this post helpful.
Old 12-08-2011, 06:52 AM   #6
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
@deep27ak - You might want to read Original post again

Last edited by asimba; 12-08-2011 at 07:03 AM. Reason: made it easier for original poster to get to bones
 
0 members found this post helpful.
Old 12-08-2011, 06:57 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by asimba View Post
@deep27ak - You might want to read Original post again
I would be really glad if you clarify me because as per my last post I replied to every line of OP

changing the case in what sense??
Code:
using CAPS LOCK?

using mv command(to rename a file?)

Last edited by deep27ak; 12-08-2011 at 07:00 AM.
 
0 members found this post helpful.
Old 12-09-2011, 01:16 AM   #8
texasj
LQ Newbie
 
Registered: Feb 2011
Posts: 23

Original Poster
Rep: Reputation: 2
Well thanks Asimba & Deep27ak for the reply...
The issue is still not resolved....!
Using vi, mv we can change the case but the question was to use keyboard shortcut while typing the command & changing the case of typed word on that same line & of course without using 'caps lock'.
Is there any shortcut you guise know for this?

e.g: if I press shift + ~ character it will change the case of the word in vi editor mode for that you have to be in the vi editor, and I want same functionality for changing the case of the words on command line itself..?

And please accept my regrets if I was unable to put my question in right manner...!

Last edited by texasj; 12-09-2011 at 01:17 AM.
 
Old 12-09-2011, 01:33 AM   #9
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Quote:
Originally Posted by texasj View Post
Well thanks Asimba & Deep27ak for the reply...
The issue is still not resolved....!
Using vi, mv we can change the case but the question was to use keyboard shortcut while typing the command & changing the case of typed word on that same line & of course without using 'caps lock'.
Is there any shortcut you guise know for this?

e.g: if I press shift + ~ character it will change the case of the word in vi editor mode for that you have to be in the vi editor, and I want same functionality for changing the case of the words on command line itself..?

And please accept my regrets if I was unable to put my question in right manner...!
You might want to read my earlier post again

I will repost that - you need to follow instructions thats all

Type following command at prompt
Code:
set -o vi
Next

1.type command / navigate to required command

2.press "escape" to change to vi command mode

3.pressing ~ will change case of given


You need not run vi editor at all.
 
Old 12-11-2011, 09:01 AM   #10
texasj
LQ Newbie
 
Registered: Feb 2011
Posts: 23

Original Poster
Rep: Reputation: 2
Thumbs up solved

Great...! you done it..!
Your solution works, it solved my problem...!


THaaaaaaaaaaaaaaaaanKKKKKKKKKsssssSSSSSSSS....!
 
1 members found this post helpful.
Old 12-11-2011, 11:36 AM   #11
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
I am glad I could help you!
 
Old 12-11-2011, 07:26 PM   #12
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Quote:
Originally Posted by texasj View Post
Great...! you done it..!
Your solution works, it solved my problem...!
Good ! now go to thread tools -> make it as SOLVED.
 
1 members found this post helpful.
Old 12-17-2011, 09:10 AM   #13
texasj
LQ Newbie
 
Registered: Feb 2011
Posts: 23

Original Poster
Rep: Reputation: 2
Lightbulb thanks for update

Hello raju.mopidevi
Thanks for updating me.. (threads tools ) I was unaware of this..!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 RudraB Linux - Newbie 1 02-13-2009 06:19 AM
Keyboard shorcut "Ctrl + Enter" in Linux with Mozilla or FireFox linux_linux Linux - Newbie 5 03-15-2008 08:51 PM
Keyboard Shortcut wildcat22 Linux - General 1 09-27-2004 10:33 AM
Keyboard Shorcut for Terminal?? spacemonk Red Hat 0 07-30-2004 04:03 AM


All times are GMT -5. The time now is 11:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration