How do you close and launch X Window in the Bash shell?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do you close and launch X Window in the Bash shell?
# 1  
Old 07-16-2010
How do you close and launch X Window in the Bash shell?

What is the Unix command(s) to close the X Window in the Bash shell to get me into text mode. Also need the command to relaunch it from the text mode. Thanks.

Last edited by jacatone; 07-16-2010 at 10:36 PM..
# 2  
Old 07-18-2010
If you have enabled X11 forwarding in PuTTY (through "Connection > SSH > X11" and tick the checkbox) configuration, then you can launch X Window by typing the command 'xterm' in your putty terminal session. Make sure, X Server application like 'Xming', 'Cygwin' or 'hummingbird' is running before you run this command.

Note: the DISPLAY environment variable should be set by default, once you run any X Server applications.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Terminal running bash/rsync script does not close with exit (MacOS High SIerra)

Hello, I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using, #!/bin/bash # main backup location, trailing slash included backup_loc="/Volumes/Archive_Volume/00_macos_backup/" # generic backup function function backup {... (12 Replies)
Discussion started by: LMHmedchem
12 Replies

2. Shell Programming and Scripting

Script to launch a KDE Konsole window with multiple tabs

Gents, I found this script to to launch a KDE Konsole window with multiple tabs.. #!/bin/bash # # Create my standard konsole windows. if ]; then profile=Shell fi sessions=( sh1 $profile 'clear; bash' sh1 $profile 'clear; bash' su1 $profile 'clear; su'... (1 Reply)
Discussion started by: jiam912
1 Replies

3. UNIX for Dummies Questions & Answers

How to regain the focus back to the launch window?

Consider this code snippet below:- char=`which afplay` if then xterm -e 'while true; do clear; echo "Press Ctrl-C to Quit..."; afplay /tmp/pulse.wav; done' & > /dev/null 2>&1 fi This launches a second terminal window that generates a specific waveform for the next calibration of... (4 Replies)
Discussion started by: wisecracker
4 Replies

4. Shell Programming and Scripting

Close the Run window after script is done

Hello to all, I am a Newcomer in Solaris and have the following problem. I have a small shell script in my home folder, which I have moved to my desktop and from there I can start the script with a double mouse click. If I do a double click on the symbol for the script in workspace, a... (5 Replies)
Discussion started by: Mike Newbie
5 Replies

5. UNIX for Dummies Questions & Answers

Bash/vi: Make file go away once I close it.

Hi Everyone, It's a little difficult to explain what exactly I am looking for. When I open a file in vi, and then close it, I get back the prompt, but I can still see the file on top. I don't want that. I want to be able to see all the previous commands which I have typed. For example: I... (4 Replies)
Discussion started by: the_learner
4 Replies

6. Shell Programming and Scripting

Update ksh .profile to launch bash

Hi I don't have chsh option. I want to launch bash instead of ksh ( or launch bash from ksh .profile) how can I do this ? (1 Reply)
Discussion started by: Sivaswami
1 Replies

7. UNIX Desktop Questions & Answers

Remote desktop, close window

I have remote access to a desktop that runs a java application. I want to terminate the application. I tried to close the application window (through the 'X') but it won;t close. I tried 'jobs' command but it does not list any jobs (?). Is there anyway to list the current jobs and terminate the... (0 Replies)
Discussion started by: FelipeAd
0 Replies

8. Shell Programming and Scripting

How to close a window using shell?

hi, suppose i have many windows open like two image files, a terminal , a firefox. and using command line i want to exit specifically 1 of these.. how can i do this? is there any shell command to do this? thanx... i am waiting for reply. its urgent! m using ubuntu 9.04 (2 Replies)
Discussion started by: sarosh
2 Replies

9. Shell Programming and Scripting

BASH: how to launch a program with parameters

Hi, I'm a pretty big fan of BASH scripting. I've got a bunch I use for random things and lately a couple issues have been plaguing me. Both are somewhat related, in that they deal with filenames with spaces and "escaped" characters and with launching a program with command line arguements... (5 Replies)
Discussion started by: TinCanFury
5 Replies

10. Solaris

Script to launch terminal window?

Hi, I am a newbie here. Trying to find a way of writing a script to launch multiple terminal or console windows on solaris 9. I used to be able to do this using cmdtool on older versions of solaris and it was even possible to configure the size and screen position of the window and the title. ... (5 Replies)
Discussion started by: omerta
5 Replies
Login or Register to Ask a Question