LinuxQuestions.org
Help answer threads with 0 replies.
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, 08: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, 11:51 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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-12-2014 at 12:01 AM.
 
Old 12-12-2014, 12:37 PM   #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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:45 PM
Close or reset a serial port sacbravo Linux - Newbie 1 12-19-2011 10: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 05:04 PM
telnet to reset modem > can't close CQ1ST Linux - Newbie 2 01-01-2010 08:32 PM
How to open/close ports in a shell prog ? kruemel Linux - Networking 3 12-09-2005 04:14 AM


All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration