How to delete one word forward in bash?

MarkMark

Delete one word backward:

Ctrl + w

Delete one word forward:

?

Can anyone answer the above or do I need to add a command to stty as I can see by running the following command:

stty -a

that the action associated with Ctrl + w is defined there.

Kusalananda

The key sequence is M-d in bash, i.e. Alt+D or Esc+D.

This invokes the kill-word Readline function:

kill-word (M-d)

Kill from point to the end of the current word, or if between words, to the end of the next word. Word boundaries are the same as those used by forward-word.

The above is taken from the bash manual.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

perl one liners + match word and delete string after separator

분류에서Dev

how to delete a word that has a dot in it in vim

분류에서Dev

How to "forward" dns ip addresses one level deeper?

분류에서Dev

How does tr translate one word to another?

분류에서Dev

How does one generate vertical quotes in Word?

분류에서Dev

How to delete selected results from bash history?

분류에서Dev

How to delete all lines which contain a word with TextWrangler?

분류에서Dev

How to delete MS Word table cell contents but not cells

분류에서Dev

Delete a word of attributedtext on textview

분류에서Dev

How does one correctly kill processes in bash

분류에서Dev

How to force a Bash word to reference an alias, function, file, etc?

분류에서Dev

how to read files listed by ls command one by one in bash?

분류에서Dev

How to know if string contains more than one same word

분류에서Dev

How to reduce title to one line in MS Word using VBA

분류에서Dev

How to grep a word after /summary/ in a variable and store the word in a new variable in bash script

분류에서Dev

How to delete all files and subdirectories in Bash including edge cases

분류에서Dev

How can I capitalize a letter from a word one at a time, then add each instance of the word with a caps letter into a array?

분류에서Dev

How to reset id's every time I delete one element?

분류에서Dev

How to delete multiple XML elements using one loop?

분류에서Dev

How to delete a row where there are only one of the kind in MySql?

분류에서Dev

How to Make MoveToTrash mean Delete Permanently by One-liner?

분류에서Dev

Replace backslash("\") with forward slash("/") in a variable in bash

분류에서Dev

How to run Java program in Bash script and give it one argument?

분류에서Dev

Matching word boundary with Bash regex

분류에서Dev

In Python, how might one replace a word within a string with a random item from a list?

분류에서Dev

Microsoft Word: delete blank lines or empty paragraphs

분류에서Dev

Repeat word with delete and space in MySQL query

분류에서Dev

zsh : kill-word 및 forward-word / backward-word에 대해 다른 WORDCHARS 사용

분류에서Dev

How to do a fast-forward merge on GitHub?

Related 관련 기사

  1. 1

    perl one liners + match word and delete string after separator

  2. 2

    how to delete a word that has a dot in it in vim

  3. 3

    How to "forward" dns ip addresses one level deeper?

  4. 4

    How does tr translate one word to another?

  5. 5

    How does one generate vertical quotes in Word?

  6. 6

    How to delete selected results from bash history?

  7. 7

    How to delete all lines which contain a word with TextWrangler?

  8. 8

    How to delete MS Word table cell contents but not cells

  9. 9

    Delete a word of attributedtext on textview

  10. 10

    How does one correctly kill processes in bash

  11. 11

    How to force a Bash word to reference an alias, function, file, etc?

  12. 12

    how to read files listed by ls command one by one in bash?

  13. 13

    How to know if string contains more than one same word

  14. 14

    How to reduce title to one line in MS Word using VBA

  15. 15

    How to grep a word after /summary/ in a variable and store the word in a new variable in bash script

  16. 16

    How to delete all files and subdirectories in Bash including edge cases

  17. 17

    How can I capitalize a letter from a word one at a time, then add each instance of the word with a caps letter into a array?

  18. 18

    How to reset id's every time I delete one element?

  19. 19

    How to delete multiple XML elements using one loop?

  20. 20

    How to delete a row where there are only one of the kind in MySql?

  21. 21

    How to Make MoveToTrash mean Delete Permanently by One-liner?

  22. 22

    Replace backslash("\") with forward slash("/") in a variable in bash

  23. 23

    How to run Java program in Bash script and give it one argument?

  24. 24

    Matching word boundary with Bash regex

  25. 25

    In Python, how might one replace a word within a string with a random item from a list?

  26. 26

    Microsoft Word: delete blank lines or empty paragraphs

  27. 27

    Repeat word with delete and space in MySQL query

  28. 28

    zsh : kill-word 및 forward-word / backward-word에 대해 다른 WORDCHARS 사용

  29. 29

    How to do a fast-forward merge on GitHub?

뜨겁다태그

보관