- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Re: current shell
 
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-20-2007 02:07 AM
11-20-2007 02:07 AM
			
				
					
						
							current shell
						
					
					
				
			
		
	
			
	
	
	
	
	
How can I understand in which shell I am presently working?
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-20-2007 02:10 AM
11-20-2007 02:10 AM
			
				
					
						
							Re: current shell
						
					
					
				
			
		
	
			
	
	
	
	
	
Rgds...Geoff
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-20-2007 02:13 AM
11-20-2007 02:13 AM
			
				
					
						
							Re: current shell
						
					
					
				
			
		
	
			
	
	
	
	
	
echo $SHELL gives you the actual shell. If you have opend another one e.g. ksh from there then you can type echo $$ and look for the named process id. It will give you the named shell information
Regards
Franky
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-20-2007 02:17 AM
11-20-2007 02:17 AM
			
				
					
						
							Re: current shell
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-20-2007 02:24 AM
11-20-2007 02:24 AM
			
				
					
						
							Re: current shell
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-20-2007 10:32 PM
11-20-2007 10:32 PM
			
				
					
						
							Re: current shell
						
					
					
				
			
		
	
			
	
	
	
	
	
ksh: dfsfsd: not found
(Unfortunately the scummy C shell doesn't.)
>Franky: type echo $$ and look for the named process
You can optimize this to: ps -fp $$
- Tags:
 - scummy C shell
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-05-2008 01:22 AM
03-05-2008 01:22 AM