LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2014, 07:02 PM   #1
madao
LQ Newbie
 
Registered: Oct 2014
Posts: 13

Rep: Reputation: Disabled
Reset a shell to a fresh clean one but does not need to close and open?


Hi,

I am wondering if there is a way to easily reset a shell (especially dedicated for a job) to a fresh clean shell, but does not need to close and open a new shell?

The reason I am asking it is because I work in some jobs that update their environments frequently (like twice a day), and I have so many tabs/shells open, so I have to rename the tag for a particular task. However, often I have to exit my current job shell, open a new fresh one as a tab and job in again to adapt the new environment changes, while my naming for the old tab is gone. This is getting annoying with more and more tabs open and close every day, so I am wondering if there is a way to reset the shell without close and reopen, which will retain the named tabs?

Thanks,
 
Old 12-11-2014, 10:51 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'm not entirely clear on where tabs come into creating new clean shells envs, but this will do that at the cmd line https://unix.stackexchange.com/quest...onment-in-bash

Hmm maybe this instead https://stackoverflow.com/questions/...or-bash-script

Last edited by chrism01; 12-11-2014 at 11:01 PM.
 
Old 12-12-2014, 11:37 AM   #3
madao
LQ Newbie
 
Registered: Oct 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
I'm not entirely clear on where tabs come into creating new clean shells envs, but this will do that at the cmd line https://unix.stackexchange.com/quest...onment-in-bash

Hmm maybe this instead https://stackoverflow.com/questions/...or-bash-script
Sorry, my bad. When I say tabs, I mean tabs in Konsole. I always thought it is just terminal until now. Basically I treat a new tab as a new terminal shell, hope I am not wrong.

For your links, I think they work as my job settings, so I got this part. The questions is after, how to reset it with the same but updated setting. It could be multiple files to source, so I tend to not source them one by one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which distro? Fresh and clean, minimalist J1tterBug Linux - Distributions 17 02-20-2014 09:45 PM
Close or reset a serial port sacbravo Linux - Newbie 1 12-19-2011 09:58 PM
using a shell script to close a minicom log file and open a new one. sd_read Linux - Software 2 08-16-2011 04:04 PM
telnet to reset modem > can't close CQ1ST Linux - Newbie 2 01-01-2010 07:32 PM
How to open/close ports in a shell prog ? kruemel Linux - Networking 3 12-09-2005 03:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration