# How use command+backspace to delete a line in the terminal (MacOS version)

**URL:** https://community.royalapps.com/t/how-use-command-backspace-to-delete-a-line-in-the-terminal-macos-version/1796
**Category:** Royal TSX (for macOS)
**Created:** [August 12, 2023, 5:29pm UTC](https://community.royalapps.com/t/how-use-command-backspace-to-delete-a-line-in-the-terminal-macos-version/1796 "2023-08-12T17:29:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vladimirxbogdanov](https://community.royalapps.com/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@vladimirxbogdanov](https://community.royalapps.com/u/vladimirxbogdanov)
#### Post date: [August 12, 2023, 5:29pm UTC](https://community.royalapps.com/t/how-use-command-backspace-to-delete-a-line-in-the-terminal-macos-version/1796/1 "2023-08-12T17:29:29Z")

</div>

I am using Royal TS on Mac OS, but unfortunately, when trying to delete a line in the terminal using the command+backspace combination, a window pops up suggesting to delete an object, which is a virtual machine in this case. Could you please assist me with this issue (I want to erase using this specific command, not ctrl+u)?

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [August 21, 2023, 7:07am UTC](https://community.royalapps.com/t/how-use-command-backspace-to-delete-a-line-in-the-terminal-macos-version/1796/2 "2023-08-21T07:07:28Z")

</div>

Hi there,

you can achieve this by doing the following:

- Open the properties of your terminal connection

- Switch to the “Input - Key Mappings” section

- Add a new mapping from Command+Backspace to “Send Hex Code” and enter `0x15` as the value.

- Open System Settings

- Go to “Keyboard - Keyboard Shortcuts - App Shortcuts”

- Click the “+” icon to add a new shortcut

- Select “Royal TSX” as the target application

- In the “Menu Title” field enter “Delete”

- Set any keyboard shortcut you like but NOT “Command+Backspace”

Hope that helps!

cheers,

Felix

---

<div class="post-metadata">

### Author: ![nasatik](https://community.royalapps.com/letter_avatar_proxy/v4/letter/n/ebca7d/32.png) [@nasatik](https://community.royalapps.com/u/nasatik)
#### Post date: [April 1, 2024, 1:57am UTC](https://community.royalapps.com/t/how-use-command-backspace-to-delete-a-line-in-the-terminal-macos-version/1796/3 "2024-04-01T01:57:44Z")

</div>

Is there a way to make this the default behavior for all SSH connections? With this method I would need to manually update all of my existing configs

Thanks!

---

<div class="post-metadata">

### Author: ![felix\_deimel](https://community.royalapps.com/user_avatar/community.royalapps.com/felix_deimel/32/18_2.png) [@felix\_deimel](https://community.royalapps.com/u/felix_deimel)
#### Post date: [April 2, 2024, 7:27am UTC](https://community.royalapps.com/t/how-use-command-backspace-to-delete-a-line-in-the-terminal-macos-version/1796/4 "2024-04-02T07:27:27Z")

</div>

Hi Nasatik, yes, that’s what bulk-edit is for. See [https://www.royalapps.com/go/kb-ts-mac-bulkedit](https://www.royalapps.com/go/kb-ts-mac-bulkedit) for more details. Cheers, Felix
