1

I cannot seem to find out how to hit the ctrl key on a Mac. When I open a terminal and I want to exit an editor such as nano as I cannot since I don't know how to exit and save. How would I do this? I am using OS X 10.5.

Cajunluke
  • 17,704
sharif
  • 77
  • 1
  • 1
  • 2
  • 5
    What happens if you type the ctrl key? – Michiel May 24 '12 at 11:52
  • 3
    Please, tell me this is not a "I can't find the 'any' key". – Thecafremo May 24 '12 at 13:15
  • Make sure the Control Key is enabled in System Preferences / Keyboard / Keyboard / Modifier Keys. – lhf May 24 '12 at 13:34
  • 1
    See also http://apple.stackexchange.com/questions/40192/how-can-i-tell-exactly-what-keys-are-being-pressed-on-the-mac – lhf May 24 '12 at 13:49
  • 3
    @Michiel I think he is asking how to exit or save while using the editor nano inside Terminal. Really kinda need the OP to clarify as the question is difficult to understand. – E1Suave May 24 '12 at 15:39

4 Answers4

13

Different keyboard layouts have used different labels on the CTRL or Control key. It might be marked control or CTRL or even ^. Additionally, the behavior of that key can be easily reassigned using System Preferences, which means that the control key on your keyboard could be remapped to do something else (or nothing); if you are not getting results when you post, that could be the problem.

enter image description here

I've created an instructional video on how to press the control key on a mid-2011 MacBook Air.

Daniel
  • 34,803
1

I understand the problem. For me, my Mac mapped the control key to Mission Control. Open up Mission Control in Settings, and disable the control key. That's it. The Control key will work now.

1

When working in the editor nano (within Terminal) your ctrl key combinations are listed at the bottom of said terminal window.

NOTE: The following key combinations consist of only letters.

The key combinations you are searching for are:

ctrl + o = Save (Will provide a prompt to chose name to save as)

ctrl + x = Exit

Other popular combinations while on the standard nano editor are:

ctrl + g = Get Help

ctrl + r = Read file (Insert file from specific location)

ctrl + k = Cut Text (Will cut the entire line of text that your cursor is on)

ctrl + w = Where Is (Search current nano page)

ctrl + c = Current Position (Locates the current position your cursor is on and reports the line column and character)

E1Suave
  • 2,179
  • 2
  • 15
  • 18
0

Have you ever done a ^c to exit a program? It's the same key that the caret stands for. On my keyboard it is on the bottom left of the keyboard. CTRL stands for control, which is what is written on the key. If that doesn't work, try checking the System Preferences to see if it is enabled.