11
votes
5answers
861 views

How to jump back to the first character in *nix command line?

When writing a long command in the *nix command line and having to go back to the first character, in order to add something at the beginning (for instance a nohup, when you realize the process will ...
1
vote
3answers
387 views

Delete last word (Ctrl-W): Make bash shell behave like vim command line

Among the many useful keyboard shortcuts available in the bash shell, there is Ctrl-W to delete the word to the left of the cursor. Let's suppose my command line looks like the following: cp ...
4
votes
0answers
380 views

Why doesn't windows command prompt still support ctrl + v? [closed]

This is just one of those things that I started wondering about. Why aren't the copy/paste keyboard shortcuts (that we all love) in command prompt not aligned with the rest of the software ...
3
votes
1answer
76 views

irssi: What to do if I have more than 19 irssi windows?

I hang out on several separate networks, and on several channels on each network, and in the end, this results in more than 19 windows within irssi. (I use irssi within tmux, if it matters.) ...
0
votes
1answer
793 views

Shortcut to paste text in command prompt [duplicate]

How can I paste a text in command prompt through shortcuts? Normally if we press ctrl + v, it won't paste text on Windows command prompt. Is there any alternative shortcut or any way I can define a ...
1
vote
2answers
100 views

What is the command line shortcut to comment out the current line

I am looking for the command line shortcut to comment out the current line in the terminal. For example, I might enter git commit -am "a comm and then realize I don't actually want to commit yet. I'd ...
1
vote
0answers
94 views

Gnome 3 copy/paste with a Mac keyboard

I want to use a Mac keyboard in Linux with Gnome 3. What I essentially want is to have Cmd/Ctrl keys behave like in Mac: do all copy/cut/paste, window switch and etc. using Cmd key but in Terminal ...
0
votes
0answers
587 views

Are there any other ways to adjust screen brightness other than the control panel or keyboard shortcut?

On my Lenovo y500, I'm unable to adjust the brightness using the control panel. Even when I try the keyboard shortcut to adjust brightness, I see the meter change, but the brightness remains the same: ...
4
votes
1answer
295 views

readline / bash: How to map Escape key and Arrow keys?

From another piece of command-line driven software, I'm used to the following behavior: Arrow up / down go through the command history, matching lines that match the characters typed so far on the ...
0
votes
1answer
805 views

Shortcut to “Select all” in Windows 7 Command Prompt?

Is there any shortcut to Edit -> Select all in command prompt in Windows 7?
3
votes
1answer
10k views

Clear windows command prompt screen using keyboard shortcuts

Is there any way of clearing the command prompt screen in windows using keyboard shortcuts?
0
votes
2answers
155 views

Search forward in command line history

With Ctrl + R you can search in previous commands. If you hit Ctrl + R again, it will displays older previous commands. The problem it that this search is "one way", it always displays older results ...
2
votes
2answers
1k views

bash home/end/delete key inserting tilde, or if preceded by escape key, [1~ [3~

bash home/end/delete key inserting tilde, or if preceded by escape key, [1~ say I type echo hellp, move cursor to hel|lp and type delete, and bam, i got ~tilde say I type echo hellp, move cursor to ...
2
votes
3answers
252 views

Is there a shortcut to run a suggested command in a terminal?

If I type in a command for a program that is not installed I might get a message like this: [user]~$ program The program 'program' is currently not installed. You can install it by typing: sudo ...
2
votes
1answer
399 views

How do you assign a shortcut key to Command Prompts so that it can open multiple windows?

On every Windows machine that I've ever owned (or used at work), I've assigned a Shortcut key to open a Command Prompt window on entering the shortcut key. If you enter this shortcut key several ...
1
vote
0answers
354 views

What are the missing features in Sublime Text 2 that are available in vim? [closed]

I'm a Sublime Text 2 user who tried switching to vim because everyone swears by it. In the first few hours I realized I need to install a lot of plugins what essentially end up emulating GUI in the ...
0
votes
1answer
226 views

How to clear the current line in Cisco IOS quickly?

The title says it all. How can I clear the current line of text/commands quickly while using Cisco's IOS command line interface? If still clueless, this SuperUser question is very similar but it's for ...
3
votes
1answer
1k views

Easy way to swap characters in command line with emacs key bindings?

If I'm in vi, and I see that I've transposed two characters, it is easily fixed by putting the cursor over the first and typing x followed by p in command mode. Is there a similar trick that works at ...
8
votes
3answers
4k views

Equivalent to ^D (in bash) for cmd.exe?

Is there an equivalent key-stroke for exiting a command prompt on Windows (launched via Start->Run : cmd) to the bash standby of Ctrl-d to prevent needing to type exit to leave the shell?
17
votes
5answers
7k views

Is there a Keyboard shortcut to close a Command Prompt window?

Is there any keyboard shortcut to close the Command Prompt window in Windows 7? Alt+F4 does not seem to work on a Command Prompt window. I close it right now by typing exit and Enter at the prompt. ...
13
votes
4answers
5k views

Windows - Open command prompt window without holding shift

When you hold shift while right-clicking a folder in Windows, the context menu includes the option to "Open a command window here". Is there a registry tweak, or extension\add-on, which frees you from ...
14
votes
3answers
3k views

Why doesn't alt+F4 close cmd?

In windows, alt+F4 does not close cmd (As in: WindowsKey+R, cmd, Enter) How different is the command window from a normal window?
4
votes
5answers
2k views

Use Ctrl+Backspace to delete word in Windows command line?

How could I erase the whole word with using Ctrl-Backspace in Windows XP command line? Is it possible at all?
48
votes
6answers
77k views

How to open command Prompt in current folder by keyboard shortcut?

How to open command Prompt in current folder by keyboard shortcut in Windows 7? Is there any way to implement this. I think Autohotkey could do this, but don't know how
3
votes
2answers
710 views

How can I create keyboard shortcuts to run commands in a terminal?

I was wondering is it possible to bind say F5 to output sudo apt-get update so I can press one key to write this into the terminal?
5
votes
2answers
4k views

How can you select text in a windows command prompt without using the mouse?

Does anyone know how to select a portion of text within a windows command prompt without using a mouse? e.g. shift + left/right arrow. I have tried lots of different command prompts (cmd, powershell, ...
2
votes
4answers
994 views

Keyboard shortcuts in Bash shell [closed]

I know some useful Bash shell shortcuts, and I am wondering if there are others. The ones I know: CTRL + W: delete until beginning of word CTRL + U: delete until beginning of line Up / Down: ...
17
votes
2answers
13k views

Assign a shortcut to running a script in OS X

Does OS X provide an easy way to bind key combinations to commands which are typically run on the command line? For example, is there some way to assign ⌘ Cmd+L as a global shortcut for ...
3
votes
1answer
183 views

Delete until previous punctuation mark in Bash

In Bash, Ctrl + W will erase the last word. Bash considers words to be delimited by spaces. This means that if the cursor is at the end of the string "cd /dir1/dir2/dir3" and you hit Ctrl + W you ...
6
votes
4answers
1k views

Can I open a command prompt with admin privleges in Vista WITHOUT my mouse?

I'm accustomed to opening a shell in Windows with the keyboard, but when I want admin privileges, the only way I know is to right click on the start menu icon. There must be a keyboard-only way, ...