Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a MacBook Pro with an Italian keyboard, and I need to type ` character in a bash script. But I cannot get the right key sequence. How can I type this character?

share|improve this question
1  
When in doubt, use Ukelele: scripts.sil.org/cms/scripts/… –  Lohoris Dec 2 '10 at 12:21

3 Answers 3

up vote 7 down vote accepted

If you have an international english keyboard, it's to the right of the left shift key.

If you have neither US nor Int'l English keyboard layout, now would be a good time to tell us what you have instead. Or, open System Preferences, click on Language & Text, Input Sources (*), then check both Keyboard & Character Viewer and Show Input menu in menu bar. Now you can open the Keyboard Viewer from the new menu bar item and look up all characters. Press Shift and/or Option to see what characters are written when those modifiers are pressed.

*: This is also where you would look up your keyboard layout.

If your keyboard layout doesn't have this key at all, in Character Palette you can find it searching for GRAVE ACCENT.

share|improve this answer
    
I have italian keyboard and cannot see that key –  Cris Oct 25 '10 at 14:01
1  
@Cris Wow, that is one funky layout. Backtick is on the same key as 9 in the number row, you need to press alt (not shift though). It is only available as a deadkey, so you need to press Space afterwards. Otherwise, e.g. an e would be transformed to an è. –  Daniel Beck Oct 25 '10 at 14:08
1  
@Cris if you use "Italian Pro" layout instead of "Italian" (see my answer on how to find this out), a non-deadkey version is between Esc and Tab, but you need to press Option/Alt to get it. –  Daniel Beck Oct 25 '10 at 14:09
    
Thank you Daniel, alt+9 did the trick ! –  Cris Oct 25 '10 at 14:30

That's an accent and is normally found on the same as the tilde key (right under esc).

Note that this is not a Mac keyboard, but the placement should be the same.

accent key placement

share|improve this answer
    
I have a MacBookPro and can confirm that the placement IS the same. Photo images.apple.com/macbookpro/images/… –  Doug Harris Oct 25 '10 at 13:25

I think the real answer is pretty hidden so i will state it clearly for the next users:

The backtick is Alt+\ on the Italian keyboard layout of a Mac OS X 10.7.5.

It's also available as Alt+9 then Space (dead key).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.