Reopen a last closed tab in gnome terminal? Announcing the arrival of Valued Associate #679:...
Why are both D and D# fitting into my E minor key?
Using audio cues to encourage good posture
2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?
Fantasy story; one type of magic grows in power with use, but the more powerful they are, they more they are drawn to travel to their source
Is it a good idea to use CNN to classify 1D signal?
How to tell that you are a giant?
What are the out-of-universe reasons for the references to Toby Maguire-era Spider-Man in ITSV
What do you call the main part of a joke?
Wu formula for manifolds with boundary
What is homebrew?
Is it fair for a professor to grade us on the possession of past papers?
How do I stop a creek from eroding my steep embankment?
Can melee weapons be used to deliver Contact Poisons?
Is there a kind of relay only consumes power when switching?
Trademark violation for app?
What causes the direction of lightning flashes?
Is it common practice to audition new musicians 1-2-1 before rehearsing with the entire band?
Amount of permutations on an NxNxN Rubik's Cube
Crossing US/Canada Border for less than 24 hours
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
What is the escape velocity of a neutron particle (not neutron star)
When a candle burns, why does the top of wick glow if bottom of flame is hottest?
Using et al. for a last / senior author rather than for a first author
How do I make this wiring inside cabinet safer? (Pic)
Reopen a last closed tab in gnome terminal?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionCan I reopen closed panes in GNU Screenindistinguishable active tab in gnome terminalHow to scroll in a terminal by line in GNOME Terminal 2.31.3?How can I remap the shortcut keys for scroll down/up in gnome terminalxfce4 terminal: disable individual shortcutCan I create a new Gnome terminal tab without leaving a symlink to a directory?How are keys passed to emacs and gnome terminal?After closing a tab in Gnome terminal, how to retrieve the command history in it?Gnome Terminal unreliable on tab switchKeyboard shortcut to duplicate tab in pantheon-terminal?Recommended mutli-tab terminal
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Can we reopen an accidentally closed tab in gnome terminal? Assume the closed tab is the last closed one.
In firefox, we can use Ctrl-shift-t to do that. But I haven't found away in gnome terminal yet. Thanks.
terminal gnome-terminal
add a comment |
Can we reopen an accidentally closed tab in gnome terminal? Assume the closed tab is the last closed one.
In firefox, we can use Ctrl-shift-t to do that. But I haven't found away in gnome terminal yet. Thanks.
terminal gnome-terminal
Check here,you might get some help from here.
– serenesat
Mar 3 '15 at 12:57
1
firefox will get (more or less) static page content from cache. when you close a gnome terminal tab, I suspect its content is throw away. I wouldn't have too much hope.
– Archemar
Mar 3 '15 at 14:31
add a comment |
Can we reopen an accidentally closed tab in gnome terminal? Assume the closed tab is the last closed one.
In firefox, we can use Ctrl-shift-t to do that. But I haven't found away in gnome terminal yet. Thanks.
terminal gnome-terminal
Can we reopen an accidentally closed tab in gnome terminal? Assume the closed tab is the last closed one.
In firefox, we can use Ctrl-shift-t to do that. But I haven't found away in gnome terminal yet. Thanks.
terminal gnome-terminal
terminal gnome-terminal
edited Mar 3 '15 at 12:58
Tim
asked Mar 3 '15 at 12:45
TimTim
28.8k79270495
28.8k79270495
Check here,you might get some help from here.
– serenesat
Mar 3 '15 at 12:57
1
firefox will get (more or less) static page content from cache. when you close a gnome terminal tab, I suspect its content is throw away. I wouldn't have too much hope.
– Archemar
Mar 3 '15 at 14:31
add a comment |
Check here,you might get some help from here.
– serenesat
Mar 3 '15 at 12:57
1
firefox will get (more or less) static page content from cache. when you close a gnome terminal tab, I suspect its content is throw away. I wouldn't have too much hope.
– Archemar
Mar 3 '15 at 14:31
Check here,you might get some help from here.
– serenesat
Mar 3 '15 at 12:57
Check here,you might get some help from here.
– serenesat
Mar 3 '15 at 12:57
1
1
firefox will get (more or less) static page content from cache. when you close a gnome terminal tab, I suspect its content is throw away. I wouldn't have too much hope.
– Archemar
Mar 3 '15 at 14:31
firefox will get (more or less) static page content from cache. when you close a gnome terminal tab, I suspect its content is throw away. I wouldn't have too much hope.
– Archemar
Mar 3 '15 at 14:31
add a comment |
3 Answers
3
active
oldest
votes
Unfortunately, you cannot open old tabs in the Gnome-Terminal. Because Firefox is a web browser when you open a previous tab like that it just goes to the history file and goes to the website as the last entry. It is reloaded from the ground up.
The Gnome-Terminal does not activate/go to set pages, instead it is just an interface to the console so you cannot go to previous pages.
If you just want to have all the commands you had previously run ran again so you could be in a certain place with certain things set, you can go to you .bash_history file (sometimes it is called .history). This contains a list of all your previous commands and is how you can click the up arrow key to go through your command history. You can just copy-paste out of that with ctrl-shift-c and ctrl-shift-v in the gnome terminal.
If it something you want to run as a script to "set you up" in your previous state you can make a bash script out of the lines of history that you need.
If you want it to run every time bash launches then add those lines to the end of your .bahsrc file.
add a comment |
A Terminal Tab once closed flushes out all the output that was available on the screen. Plus, there is nothing that keeps a tab on what output was shown to which tab under normal circumstances. That is why, there is no functionality to go back.
Though Firefox allows to re-open the Closed tab, it first looks into Cache, otherwise it requests the Server again. In our case, Terminal doesn't know such thing as cache to fall back and it certainly cannot issue a request(commands) because nothing keeps a tab on output.
There exists ways by which you can log all the output automatically into a file in case, you want to take a look again at output. One way is TermRecord, but discussing it would be out of the context of this question.
add a comment |
As it's clear that there is no functionality of reopening accidentally closed tab in gnome terminal, you can do another thing.
Hold the terminal open when command exits (ctrl + D or exit command)
Menu > Edit > Profile Preferences > (tab) Title and Command > When command exits : Hold the terminal openChange the keyboard shortcuts of closing tab and closing window other than ctrl + w and alt + f4 respectively as you are habitual of pressing them frequently
Now your tab will not close accidentally, and keep it open until you are sure that you don't need it again
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f187902%2freopen-a-last-closed-tab-in-gnome-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Unfortunately, you cannot open old tabs in the Gnome-Terminal. Because Firefox is a web browser when you open a previous tab like that it just goes to the history file and goes to the website as the last entry. It is reloaded from the ground up.
The Gnome-Terminal does not activate/go to set pages, instead it is just an interface to the console so you cannot go to previous pages.
If you just want to have all the commands you had previously run ran again so you could be in a certain place with certain things set, you can go to you .bash_history file (sometimes it is called .history). This contains a list of all your previous commands and is how you can click the up arrow key to go through your command history. You can just copy-paste out of that with ctrl-shift-c and ctrl-shift-v in the gnome terminal.
If it something you want to run as a script to "set you up" in your previous state you can make a bash script out of the lines of history that you need.
If you want it to run every time bash launches then add those lines to the end of your .bahsrc file.
add a comment |
Unfortunately, you cannot open old tabs in the Gnome-Terminal. Because Firefox is a web browser when you open a previous tab like that it just goes to the history file and goes to the website as the last entry. It is reloaded from the ground up.
The Gnome-Terminal does not activate/go to set pages, instead it is just an interface to the console so you cannot go to previous pages.
If you just want to have all the commands you had previously run ran again so you could be in a certain place with certain things set, you can go to you .bash_history file (sometimes it is called .history). This contains a list of all your previous commands and is how you can click the up arrow key to go through your command history. You can just copy-paste out of that with ctrl-shift-c and ctrl-shift-v in the gnome terminal.
If it something you want to run as a script to "set you up" in your previous state you can make a bash script out of the lines of history that you need.
If you want it to run every time bash launches then add those lines to the end of your .bahsrc file.
add a comment |
Unfortunately, you cannot open old tabs in the Gnome-Terminal. Because Firefox is a web browser when you open a previous tab like that it just goes to the history file and goes to the website as the last entry. It is reloaded from the ground up.
The Gnome-Terminal does not activate/go to set pages, instead it is just an interface to the console so you cannot go to previous pages.
If you just want to have all the commands you had previously run ran again so you could be in a certain place with certain things set, you can go to you .bash_history file (sometimes it is called .history). This contains a list of all your previous commands and is how you can click the up arrow key to go through your command history. You can just copy-paste out of that with ctrl-shift-c and ctrl-shift-v in the gnome terminal.
If it something you want to run as a script to "set you up" in your previous state you can make a bash script out of the lines of history that you need.
If you want it to run every time bash launches then add those lines to the end of your .bahsrc file.
Unfortunately, you cannot open old tabs in the Gnome-Terminal. Because Firefox is a web browser when you open a previous tab like that it just goes to the history file and goes to the website as the last entry. It is reloaded from the ground up.
The Gnome-Terminal does not activate/go to set pages, instead it is just an interface to the console so you cannot go to previous pages.
If you just want to have all the commands you had previously run ran again so you could be in a certain place with certain things set, you can go to you .bash_history file (sometimes it is called .history). This contains a list of all your previous commands and is how you can click the up arrow key to go through your command history. You can just copy-paste out of that with ctrl-shift-c and ctrl-shift-v in the gnome terminal.
If it something you want to run as a script to "set you up" in your previous state you can make a bash script out of the lines of history that you need.
If you want it to run every time bash launches then add those lines to the end of your .bahsrc file.
edited Apr 6 at 0:34
Rui F Ribeiro
42.1k1484142
42.1k1484142
answered Mar 3 '15 at 15:39
Interesting...Interesting...
1,67531218
1,67531218
add a comment |
add a comment |
A Terminal Tab once closed flushes out all the output that was available on the screen. Plus, there is nothing that keeps a tab on what output was shown to which tab under normal circumstances. That is why, there is no functionality to go back.
Though Firefox allows to re-open the Closed tab, it first looks into Cache, otherwise it requests the Server again. In our case, Terminal doesn't know such thing as cache to fall back and it certainly cannot issue a request(commands) because nothing keeps a tab on output.
There exists ways by which you can log all the output automatically into a file in case, you want to take a look again at output. One way is TermRecord, but discussing it would be out of the context of this question.
add a comment |
A Terminal Tab once closed flushes out all the output that was available on the screen. Plus, there is nothing that keeps a tab on what output was shown to which tab under normal circumstances. That is why, there is no functionality to go back.
Though Firefox allows to re-open the Closed tab, it first looks into Cache, otherwise it requests the Server again. In our case, Terminal doesn't know such thing as cache to fall back and it certainly cannot issue a request(commands) because nothing keeps a tab on output.
There exists ways by which you can log all the output automatically into a file in case, you want to take a look again at output. One way is TermRecord, but discussing it would be out of the context of this question.
add a comment |
A Terminal Tab once closed flushes out all the output that was available on the screen. Plus, there is nothing that keeps a tab on what output was shown to which tab under normal circumstances. That is why, there is no functionality to go back.
Though Firefox allows to re-open the Closed tab, it first looks into Cache, otherwise it requests the Server again. In our case, Terminal doesn't know such thing as cache to fall back and it certainly cannot issue a request(commands) because nothing keeps a tab on output.
There exists ways by which you can log all the output automatically into a file in case, you want to take a look again at output. One way is TermRecord, but discussing it would be out of the context of this question.
A Terminal Tab once closed flushes out all the output that was available on the screen. Plus, there is nothing that keeps a tab on what output was shown to which tab under normal circumstances. That is why, there is no functionality to go back.
Though Firefox allows to re-open the Closed tab, it first looks into Cache, otherwise it requests the Server again. In our case, Terminal doesn't know such thing as cache to fall back and it certainly cannot issue a request(commands) because nothing keeps a tab on output.
There exists ways by which you can log all the output automatically into a file in case, you want to take a look again at output. One way is TermRecord, but discussing it would be out of the context of this question.
answered Mar 3 '15 at 15:42
FirelordFirelord
264112
264112
add a comment |
add a comment |
As it's clear that there is no functionality of reopening accidentally closed tab in gnome terminal, you can do another thing.
Hold the terminal open when command exits (ctrl + D or exit command)
Menu > Edit > Profile Preferences > (tab) Title and Command > When command exits : Hold the terminal openChange the keyboard shortcuts of closing tab and closing window other than ctrl + w and alt + f4 respectively as you are habitual of pressing them frequently
Now your tab will not close accidentally, and keep it open until you are sure that you don't need it again
add a comment |
As it's clear that there is no functionality of reopening accidentally closed tab in gnome terminal, you can do another thing.
Hold the terminal open when command exits (ctrl + D or exit command)
Menu > Edit > Profile Preferences > (tab) Title and Command > When command exits : Hold the terminal openChange the keyboard shortcuts of closing tab and closing window other than ctrl + w and alt + f4 respectively as you are habitual of pressing them frequently
Now your tab will not close accidentally, and keep it open until you are sure that you don't need it again
add a comment |
As it's clear that there is no functionality of reopening accidentally closed tab in gnome terminal, you can do another thing.
Hold the terminal open when command exits (ctrl + D or exit command)
Menu > Edit > Profile Preferences > (tab) Title and Command > When command exits : Hold the terminal openChange the keyboard shortcuts of closing tab and closing window other than ctrl + w and alt + f4 respectively as you are habitual of pressing them frequently
Now your tab will not close accidentally, and keep it open until you are sure that you don't need it again
As it's clear that there is no functionality of reopening accidentally closed tab in gnome terminal, you can do another thing.
Hold the terminal open when command exits (ctrl + D or exit command)
Menu > Edit > Profile Preferences > (tab) Title and Command > When command exits : Hold the terminal openChange the keyboard shortcuts of closing tab and closing window other than ctrl + w and alt + f4 respectively as you are habitual of pressing them frequently
Now your tab will not close accidentally, and keep it open until you are sure that you don't need it again
edited 6 hours ago
Rui F Ribeiro
42.1k1484142
42.1k1484142
answered Mar 4 '16 at 16:34
Rohail AbbasRohail Abbas
706
706
add a comment |
add a comment |
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.
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%2f187902%2freopen-a-last-closed-tab-in-gnome-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
Check here,you might get some help from here.
– serenesat
Mar 3 '15 at 12:57
1
firefox will get (more or less) static page content from cache. when you close a gnome terminal tab, I suspect its content is throw away. I wouldn't have too much hope.
– Archemar
Mar 3 '15 at 14:31