Sample Header Ad - 728x90

How to delete in terminal from "/" to "/"?

0 votes
4 answers
581 views
Im using Kitty emulator and bash shell. I know that Ctrl+w I can delete **a word** in terminal (like Ctrl+Backspace). But what if I have something like this:
sh /home/user/dir1/dir2/file.sh
I just want to delete the file.sh? I can't delete with Ctrl+w because then the **whole line will be deleted** and I don't want to delete it manually. Any advice how to delete from only one path element?
Asked by AutisticAllosaurus (65 rep)
Aug 31, 2022, 10:04 AM
Last activity: Dec 15, 2023, 02:11 PM