I need to close/kill a specifc tab using Ubuntu terminal
up vote
-1
down vote
favorite
Is there any way to close a specific tab using an Ubuntu terminal? I have read that Firefox treats all tabs under one process so I have switched over to Chrome for more flexibility since each tab is treated as its own process. I am creating the tabs also in terminal using -xdg and I see they are given a PID when they are created. The problem is when I create a new one or try to kill that PID it is no longer saying that is existent. I have also tried wmctrl -c "Bing" (looks for a specfic window name) and this is not working either. Is there any type of solution where If I have 10 tabs open that I can focus back on a tab with a specific tab name and close the tab that is focused on. I think trying to close using the PID's is a dead end since they are being wiped right after that tab has been opened.
ubuntu terminal process kill wmctrl
New contributor
add a comment |
up vote
-1
down vote
favorite
Is there any way to close a specific tab using an Ubuntu terminal? I have read that Firefox treats all tabs under one process so I have switched over to Chrome for more flexibility since each tab is treated as its own process. I am creating the tabs also in terminal using -xdg and I see they are given a PID when they are created. The problem is when I create a new one or try to kill that PID it is no longer saying that is existent. I have also tried wmctrl -c "Bing" (looks for a specfic window name) and this is not working either. Is there any type of solution where If I have 10 tabs open that I can focus back on a tab with a specific tab name and close the tab that is focused on. I think trying to close using the PID's is a dead end since they are being wiped right after that tab has been opened.
ubuntu terminal process kill wmctrl
New contributor
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
Is there any way to close a specific tab using an Ubuntu terminal? I have read that Firefox treats all tabs under one process so I have switched over to Chrome for more flexibility since each tab is treated as its own process. I am creating the tabs also in terminal using -xdg and I see they are given a PID when they are created. The problem is when I create a new one or try to kill that PID it is no longer saying that is existent. I have also tried wmctrl -c "Bing" (looks for a specfic window name) and this is not working either. Is there any type of solution where If I have 10 tabs open that I can focus back on a tab with a specific tab name and close the tab that is focused on. I think trying to close using the PID's is a dead end since they are being wiped right after that tab has been opened.
ubuntu terminal process kill wmctrl
New contributor
Is there any way to close a specific tab using an Ubuntu terminal? I have read that Firefox treats all tabs under one process so I have switched over to Chrome for more flexibility since each tab is treated as its own process. I am creating the tabs also in terminal using -xdg and I see they are given a PID when they are created. The problem is when I create a new one or try to kill that PID it is no longer saying that is existent. I have also tried wmctrl -c "Bing" (looks for a specfic window name) and this is not working either. Is there any type of solution where If I have 10 tabs open that I can focus back on a tab with a specific tab name and close the tab that is focused on. I think trying to close using the PID's is a dead end since they are being wiped right after that tab has been opened.
ubuntu terminal process kill wmctrl
ubuntu terminal process kill wmctrl
New contributor
New contributor
edited 2 days ago
Rui F Ribeiro
38.5k1479128
38.5k1479128
New contributor
asked 2 days ago
MrChemical
1
1
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
MrChemical is a new contributor. Be nice, and check out our Code of Conduct.
MrChemical is a new contributor. Be nice, and check out our Code of Conduct.
MrChemical is a new contributor. Be nice, and check out our Code of Conduct.
MrChemical is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f486935%2fi-need-to-close-kill-a-specifc-tab-using-ubuntu-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown